I am getting an error message 'not enough input arguments' on running Rosenbrock's function using the optimization tool box solver 'fmincon' solver. How to correct it?
1 view (last 30 days)
Show older comments
I did the same way as in the optimization toolbox guide.
0 Comments
Accepted Answer
Torsten
on 28 May 2015
Your optimization toolbox guide and your MATLAB version are compatible ?
Best wishes
Torsten.
More Answers (3)
Alan Weiss
on 28 May 2015
For more help, please show us your exact Rosenbrock function, your exact and full fmincon call, and the exact output that you received.
Alan Weiss
MATLAB mathematical toolbox documentation
0 Comments
Torsten
on 29 May 2015
As objective function, use
function z = vrosenbrock(x)
z = 100*(x(2) - x(1)^2)^2 + (1 - x(1))^2;
Best wishes
Torsten.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!