精选问答
求数学建模高手——线性规划题,如何用MATLAB编程?紧急!max=1.15*x4A+1.40*x2C+1.25*x3B+1.06*x5D;x1A+x1D=100000;-1.06*x1D+x2A+x2C+x2D=0;-1.15*x1A+x3A+x3B-1.06*x2D+x3D=0;-1.15*x2A+x4A-1.06*x3D+x4D=0;-1.15*x3A-1.06*x4D+x5D=0;x2C

2019-04-13

求数学建模高手——线性规划题,如何用MATLAB编程?紧急!
max=1.15*x4A+1.40*x2C+1.25*x3B+1.06*x5D;
x1A+x1D=100000;
-1.06*x1D+x2A+x2C+x2D=0;
-1.15*x1A+x3A+x3B-1.06*x2D+x3D=0;
-1.15*x2A+x4A-1.06*x3D+x4D=0;
-1.15*x3A-1.06*x4D+x5D=0;
x2C
优质解答
您的变量应该只有11个,不是20个,下面是我的编程,您看一下:c=[0 0 0 -1.15 -1.25 -1.40 0 0 0 0 -1.06 ];>> A=[0,0,0,0,0,1,0,0,0,0,0;0,0,0,0,1,0,0,0,0,0,0];>> b=[30000;40000];>> Aeq=[1,0,0,0,0,0,1,0,0,0,0;0,... 您的变量应该只有11个,不是20个,下面是我的编程,您看一下:c=[0 0 0 -1.15 -1.25 -1.40 0 0 0 0 -1.06 ];>> A=[0,0,0,0,0,1,0,0,0,0,0;0,0,0,0,1,0,0,0,0,0,0];>> b=[30000;40000];>> Aeq=[1,0,0,0,0,0,1,0,0,0,0;0,...
相关问答