1.如果你的matlab有安装gads toolbox,的确很容易实现,只要键入gatool,
就绘跑出图形接口,让你填入参数,然后按start执行.
2.当然两大关键是,首先你要先写好objective function存成.m file.(也就是你要解的方程式)
[you must first write an M-file that computes the function you want to optimize. The M-file
should accept a vector, whose length is the number of independent variables for the objective
function, and return a scalar.](gads.pdf page 2-2)
3.其次是填入你的限制式(linear or nonlinear constraint)(gads.pdf page 9-5)
其余的参数可先用默认值
,等发现问题后再行调整例如
:selection,reproduction,crossover,…