1
試圖解決一個線性規劃問題:
輸入:未定義功能 'linprog' 類型的輸入參數 '雙重'
c = [2 3 -4 0 0]
Aeq = [1 1 1 0 0; 2 -1 0 1 0; 1 2 -1 0 1]
beq = [2;4;5]
lb = [0;0;0;0;0]
x=linprog(c,[],[],Aeq,beq,lb,[])
而得到這個錯誤:
Undefined function 'linprog' for input arguments of type'double'.
怎麼辦我必須這樣做才能使這個功能起作用嗎?我有Matlab R2013a,從程序列表中只安裝了Matlab 8.1。
2013a是matlab 8.1 – Daniel
'linprog'是在優化工具箱中,你有它安裝?在命令行輸入'ver'來查看你的工具箱列表 – Dan