24小时热门版块排行榜    

Znn3bq.jpeg
查看: 1371  |  回复: 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 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 269求调剂 +11 啊啊我我 2026-04-07 11/550 2026-04-11 16:45 by vgtyfty
[考研] 272分材料子求调剂 +34 Loy0361 2026-04-10 43/2150 2026-04-11 13:11 by nixunhuan
[考研] 0860004 求调剂 309分 +8 Yin DY 2026-04-08 8/400 2026-04-11 12:32 by zhq0425
[考研] 285求调剂 +8 恶法大二的气味 2026-04-05 11/550 2026-04-11 11:28 by 紫曦紫棋
[考研] 269求调剂 +8 跪求收留。 2026-04-04 8/400 2026-04-11 10:50 by zhq0425
[考研] 材料工程085601,270求调剂 +30 @ASDF1234 2026-04-08 32/1600 2026-04-11 10:30 by Delta2012
[考研] 337求调剂 +4 研s. 2026-04-10 4/200 2026-04-11 08:57 by zhq0425
[考研] 计算机类求调剂,22408-274分 +7 上岸de小虫 2026-04-09 8/400 2026-04-10 19:56 by fxue1114
[考研] 362求调剂 +10 我要考大 2026-04-06 14/700 2026-04-10 17:00 by luoyongfeng
[基金申请] 有爆料,一个青年教师卖房得400万,然后换了一个四青帽子 +9 babu2015 2026-04-08 9/450 2026-04-10 11:43 by 苏东坡二世
[考研] 求调剂 +11 翩翩一书生 2026-04-09 13/650 2026-04-10 10:27 by liuhuiying09
[考研] 085600材料与化工,求调剂 +11 won_qii 2026-04-07 11/550 2026-04-09 17:03 by luoyongfeng
[考研] 327求调剂 +12 Xxjc1107. 2026-04-06 12/600 2026-04-08 16:46 by luoyongfeng
[考研] 336求调剂,一志愿中科大 +9 墨彧 yuyu 2026-04-06 9/450 2026-04-08 11:24 by 想读书的菌菌
[考研] 求调剂 +15 熊二想上岸 2026-04-06 15/750 2026-04-08 04:53 by 无际的草原
[考研] 材料调剂 +13 汉123456 2026-04-07 14/700 2026-04-07 22:53 by 来看流星雨10
[考研] 071000生物学调剂 +7 拉提桃 2026-04-06 7/350 2026-04-06 18:55 by 52305043001
[考研] 22408 总分320,一篇论文二作,两个国三,求调剂 +3 Leomulufu 2026-04-04 5/250 2026-04-05 19:04 by chongya
[考研] 277求调剂 +5 考研调剂lxh 2026-04-05 5/250 2026-04-05 19:03 by chy09050039
[考研] 一志愿北交大材料工程总分358求调剂 +6 cs0106 2026-04-05 6/300 2026-04-05 16:34 by imissbao
信息提示
请填处理意见