Optimization running. Error running optimization. Too many input arguments.
Show older comments
I am working on genetic algorithm toolbox but i have a problem with creation function. i want to initialize real valued population by using creation function. my function is ;
function Chrom = crtrp(Nind,FieldDR) Chrom = rand(Nind,Nvar) .* FieldDR; end
in an another m. file, i identified FieldDR for boundaries. Is this a true approach? when i run the program the error occurs as
Error running optimization. Too many input arguments.
i could not understand why this occurs. Thanks.
PS: I am using MATLAB 2010a and Optimization Toolbox 5.0
Accepted Answer
More Answers (3)
b
on 7 May 2012
0 votes
Alan Weiss
on 8 May 2012
0 votes
I am not sure I understand what you mean when you say "I could not create "options" in this function." GA passes the existing options to your creation function, your function can query and use the values if you like, or ignore them if you like.
I do not understand your next statements either. Sorry.
Alan Weiss
MATLAB mathematical toolbox documentation
b
on 10 May 2012
0 votes
Categories
Find more on Genetic Algorithm in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!