求救!!!为什么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!