- 196
- 0
- 约1.46万字
- 约 79页
- 2017-09-09 发布于湖北
- 举报
启发式算法
gatool Fitness function:@ackleyfcn Number of variables:10 选中‘Plots’中的‘Best fitness’ X = gamultipoj(fitnessfcn,nvars,A,b,Aeq,beq,lb,ub,options) 可以处理线性不等式约束、线性等式约束和有界约束 解多目标规划 function y = simple_multiobjective(x) y(1) = (x+2)^2 - 10; y(2) = (x-2)^2 + 20; FitnessFunction = @simple_multiobjective; numberOfVariables = 1; [x,fval] = gamultiobj(FitnessFunction,numberOfVariables); Optimization terminated: average change in the spread of Pareto solutions less than options.TolFun. size(x) ans = 15 1 size(fval) ans = 15 2 4.4 遗传算法对TSP的应用 load(usborder.mat,x,y,xx,yy); plot(x,y,Color
原创力文档

文档评论(0)