[問題] optimization toolbox 範例問題已回收
大家好~
http://0rz.tw/WWHUZ
我在這網頁上的範例 試著try一下
我不懂第五步驟 Define the constraints.
To create variables for the equality constraints, enter [-1 -1] in the A
field and enter -1in the b field.
這邊我完全不了解他為什麼要這樣設定呢
是因為第二個constrain嘛?
但是另一個不解的是
Set the bounds on the variables to be 0.5 <= x1, by entering 0.5 for lower
他就在tool gui上面設定 Bound Lower: 0.5
他這樣不就也限制了 x2 也要<=0.5嘛??
另外就是
如果我在c[]這邊 寫了linear的 constrain 就會出問題嘛??
我不清楚的是 最佳化tool 會為了滿足constrain而停
還是為了讓objective function得到最小值 而停呢?
例如 f=x^2+y^2 constrain x+y=2
他會停在 x,y= 0,0<====目標函數最小值 還是為了讓x+y=2 而停在別的地方呢?
謝謝大家
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.113.207.187
討論串 (同標題文章)
MATLAB 近期熱門文章
PTT數位生活區 即時熱門文章