[問題] optimization toolbox 範例問題已回收

看板MATLAB作者 (我愛阿蓉)時間16年前 (2009/06/23 17:48), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/2 (看更多)
大家好~ 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
文章代碼(AID): #1AGAJLcW (MATLAB)
文章代碼(AID): #1AGAJLcW (MATLAB)