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?
显示 更早的评论
采纳的回答
更多回答(3 个)
Alan Weiss
2015-5-28
0 个投票
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
Torsten
2015-5-29
As objective function, use
function z = vrosenbrock(x)
z = 100*(x(2) - x(1)^2)^2 + (1 - x(1))^2;
Best wishes
Torsten.
类别
在 帮助中心 和 File Exchange 中查找有关 Solver Outputs and Iterative Display 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
