About gamultiobj "Undefined function or variable"
显示 更早的评论

clear clc fitnessfcn = @ff_19; % Function handle to the fitness function nvars = 378; % Number of decision variables A= A; b= b; % No linear inequality constraints lb= lb; ub= ub; Aeq= Aeq; beq= beq; % No linear equality constraints options = gaoptimset('ParetoFraction',0.3,'PopulationSize',100,'Generations',200,'StallGenLimit',200,'TolFun',1e-100,'PlotFcns',@gaplotpareto); [x,fval] = gamultiobj(fitnessfcn,nvars, A,b,lb,ub,Aeq,beq,options);
??? Undefined function or variable 'A'.
Hi! Why the result is like this? Could you give me some suggestions? Thanks a lot.
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 PHY Components 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!