求救!!!为什么matlab中只返回了同一个解?。
古いコメントを表示
%程序如下:
tic; %begin time
c=[];
A=[];
b=[];
Aeq=[1 1];
beq=[10];
vlb=[0 0];
vub=[7 6];
[x,fval]=linprog(c,A,b,Aeq,beq,vlb,vub)
time=toc %end time
说白了也就是x1+x2=10;
0<=x1<=7;
0<=x2<=6;
但是为什么每次只返回 x1=5.25, x2=4.75 这一个解呢,这个解不应该是有无数个,然后每次返回的解都不一样的吗。求救!!!!!
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で 求解器输出和迭代输出 についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!