Optimization running. Error running optimization. Too many input arguments.
Mostra commenti meno recenti
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
Risposta accettata
Più risposte (3)
b
il 7 Mag 2012
0 voti
Alan Weiss
il 8 Mag 2012
0 voti
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
il 10 Mag 2012
0 voti
Categorie
Scopri di più su Genetic Algorithm in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!