MATlab fminunc error too many input arguments
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
I run the code from the simple example in the Optimazation Toolbox user's guide:
>>anonrosen = @(x) (100*(x(2) - x(1)^2)^2 + (1-x(1))^2);
>>options = optimoptions(@fminunc,'Algorithm','quasi-newton');
>>[x fval] = fminunc(anonrosen,[-1;2],options)
I get:
Error using fminunc
Too many input arguments.
I have R2019a with Optimazation toolbox Version 8.3
1 Kommentar
Antworten (0)
Siehe auch
Kategorien
Mehr zu Genetic Algorithm finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!