非常感谢各位,程序已经可以运行了。
但有时取值不当的时候会出现下列提示:
Warning: Large-scale (trust region) method does not currently solve this type of problem,
switching to medium-scale (line search).
> In D:\matlab\toolbox\optim\fmincon.m at line 213
Optimization terminated successfully:
Magnitude of directional derivative in search direction
less than 2*options.TolFun and maximum constraint violation
is less than options.TolCon
No Active Constraints
有谁能告诉我大概是什么意思吗?会是那里出了错误?