linprog function - error message
古いコメントを表示
Hi,
I am trying to use the linprog function. To start with, I am simply copying the basic example provided in the function description
f = [-5; -4; -6];
A = [1 -1 1
3 2 4
3 2 0];
b = [20; 42; 30];
lb = zeros(3,1);
[x,fval,exitflag,output,lambda] = linprog(f,A,b,[],[],lb);
However, I keep gettting the following error:
??? Undefined function or method 'linprog' for input arguments of type 'double'.
Any idea why I get this error?
Thxs
回答 (1 件)
Walter Roberson
2013 年 2 月 28 日
0 投票
You do not have the Optimization toolbox installed, or else you do not have it licensed.
3 件のコメント
Jean Marc
2013 年 2 月 28 日
Jean Marc
2013 年 2 月 28 日
Walter Roberson
2013 年 2 月 28 日
If you use
which -all linprog
it will likely report "no license available"
カテゴリ
ヘルプ センター および File Exchange で Introduction to Installation and Licensing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!