24小时热门版块排行榜    

CyRhmU.jpeg
查看: 1256  |  回复: 3

245153618

新虫 (初入文坛)

[求助] matlab fmincon优化函数 怎样知道每次得到的迭代点

rt
回复此楼

» 猜你喜欢

» 本主题相关价值贴推荐,对您同样有帮助:

已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

245153618

新虫 (初入文坛)

拜神呐
2楼2012-05-11 17:48:02
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

245153618

新虫 (初入文坛)

有没有人告诉我
3楼2012-05-11 18:57:43
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

dbb627

荣誉版主 (著名写手)

【答案】应助回帖

★ ★
感谢参与,应助指数 +1
245153618: 金币+2, 有帮助 2012-05-13 15:37:15
设置 '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

>>
The more you learn, the more you know, the more you know, and the more you forget. The more you forget, the less you know. So why bother to learn.
4楼2012-05-11 22:11:11
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 245153618 的主题更新
信息提示
请填处理意见