matlab如初查看迭代曲线,matlab fmincon优化函数 怎样知道每次得到的迭代点 - 计算模拟 - 小木虫 - 学术 科研 互动社区...

设置 'Display'属性

>> options = optimset('Display','iter','Algorithm','interior-point');

>> X = fmincon(@(x) 3*sin(x(1)-0.2)+exp(x(2)-0.1),[0;0],[],[],[],[],[-1 -1],[],[],options)

First-order      Norm of

Iter F-count            f(x)  Feasibility   optimality         step

0       3   3.088294e-001   0.000e+000   1.420e+000

1       6  -2.226784e+000   0.000e+000   4.191e-001   1.102e+000

2       9  -2.284223e+000   0.000e+000   1.034e-001   2.409e-001

3      12  -2.450365e+000   0.000e+000   5.979e-002   2.705e-001

4      15  -2.461244e+000   0.000e+000   1.232e-003   2.424e-002

5      18  -2.461248e+000   0.000e+000   1.001e-003   5.135e-004

6      21  -2.462843e+000   0.000e+000   2.019e-004   2.501e-003

7      24  -2.463242e+000   0.000e+000   2.124e-006   6.271e-004

8      27  -2.463246e+000   0.000e+000   2.001e-008   6.605e-006

Local minimum found that satisfies the constraints.

Optimization completed because the objective function is non-decreasing in

feasible directions, to within the default value of the function tolerance,

and constraints were satisfied to within the default value of the constraint tolerance.

X =

-1.0000

-1.0000

>>,

  • 2
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值