Can anyone help me cracking the error in my code which is written for multi objective genetic algorithm solver<

1 次查看(过去 30 天)
clear all; close all; clc options=optimset(@ga); options.TolFun=1e-20; % options.ParetoFraction=0.5; options.Generations=100; options.PopulationSize=200; options.CrossoverFractions=0.8; options.PlotFcns=@gaplotbestf; options.Display='iter'; fitfun=@fun_beam_GA; nvars=5; A=[];b=[]; Aeq=[];beq=[]; Kl=[5e4,5e4,5e4,5e4,5e4]; Ku=[8e4,8e4,8e4,8e4,8e4]; nonlcon=[]; [K,FVAL]=gamultiobj(fitfun,nvars,A,b,Aeq,beq,Kl,Ku,nonlcon,options);
  2 个评论
Sandip More
Sandip More 2014-6-24
The error I am getting is 'Too many input arguments'. The function called FUN_BEAM_GA is a multiobjective function whose size is 2X1.
Alan Weiss
Alan Weiss 2014-6-25
Please format your code with the {}Code tool so we can read it more easily.
Alan Weiss
MATLAB mathematical toolbox documentation

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Genetic Algorithm 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by