作者fffffjjjjj (sss)
看板MATLAB
標題[問題] mixed integer programing (miprog)
時間Fri Dec 7 14:52:50 2012
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)