[問題] mixed integer programing (miprog)

看板MATLAB作者 (sss)時間13年前 (2012/12/07 14:52), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
1. 我在使用 miprog 解最佳化問題的時候 結果顯示 Undefined function or method 'miprog' for input arguments of type 'double'. 爬文有看到有人在使用linprog 也有遇到相同的問題 有人說是因為沒有linprog.m檔 可是我已經下載了mip toolbox 所以應該不是沒有mip.m檔 2. miprog(c,A,b,Aeq,beq,lb,ub,yidx) 其中yidx = true(4,1) 這個指令是用來解下面這個問題(來源http://ppt.cc/C0Mc ) min c'*x s.t. A*x <= b s.t. Aeq*x == beq s.t. lb <= x <= ub x(yidx) integer where yidx is a logical index vector. 有人知道yidx是幹嘛用的嗎? 還是不管如何都assign true value 給yidx 謝謝回答 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 217.164.136.5 ※ 編輯: fffffjjjjj 來自: 217.164.136.5 (12/07 14:53)
文章代碼(AID): #1GmP95O5 (MATLAB)
文章代碼(AID): #1GmP95O5 (MATLAB)