% [BestPop,Trace]=fmaxga(FUN,LB,UB,eranum,popsize,pcross,pmutation)
% Finds a maximum of a function of several variables.
% fmaxga solves problems of the form:
% max F(X) sUBject to: LB <= X <= UB
% BestPop--------最優的群體即為最優的染色體群
% Trace----------最佳染色體所對應的目標函數值
% FUN------------目標函數
% LB-------------自變量下限
% UB-------------自變量上限
% eranum---------種群的代數,取100--1000(默認1000)
% popsize--------每一代種群的規模;此可取50--100(默認50)
% pcross---------交叉的概率,此概率一般取0.5--0.85之間較好(默認0.8)
% pmutation------變異的概率,該概率一般取0.05-0.2左右較好(默認0.1)
% options--------1×2矩陣,options(1)=0二進制編碼(默認0),option(1)~=0十進制編碼,option(2)設定求解精度(默認1e-4)
標簽:
pmutation
BestPop
popsize
maximum
上傳時間:
2015-07-16
上傳用戶:Altman
This routine calls the glpk library to solve a LP/MIP problem. A typical
LP problem has following structure:
[min|max] C x
s.t.
Ax ["="|"<="|">="] b
{x <= UB}
{x >= LB}
The calling syntax is:
[XMIN,FMIN,STATUS,EXTRA]=glpkmex(SENSE,C,A,B,CTYPE,LB,UB,... VARTYPE,PARAM,LPSOLVER,SAVE)
標簽:
problem
following
routine
library
上傳時間:
2014-12-01
上傳用戶:changeboy