Home > other >  Why can you help me look at the matlab code is not the result?
Why can you help me look at the matlab code is not the result?

Time:05-14


Cj=,5,5,5,5,5,10,12,15,18,20,35,60,50,30,40,42,50,70,90,100,90,60,30 [5];
Cy=30,10,10,10,10,10,10,10,20,15,16,18,30,20,20,22,23,30,40,60,80,80,70,70 [];
A1=[2.5 2.5 2.5 2.5 2.5 2.5 2.5 2.5 2.5 2.5 2.5 2.5 2.5 2.5 2.5 2.5 2.5 2.5 2.5 2.5 2.5 2.5 2.5 2.5];
A2=[1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5];
A=(a1, a2),
The % listed a matrix
B1=[1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1);
B2=[0.5 0.5 0.5 0.5 0.5 0.5 0.5 0.5 0.5 0.5 0.5 0.5 0.5 0.5 0.5 0.5 0.5 0.5 0.5 0.5 0.5 0.5 0.5 0.5];
B=(b1, b2);
% listed matrix b
C=- (cj, cy];
% of the constant c matrix
A=(A, b),
B=3.5] [16; -;
IC=[];
Lb=zeros (24, 1); % generated 24 x 1 0 matrix
Ub=ones (24, 1); % generated 24 x 1 1 matrix
[x, fval]=intlinprog (c, IC, A, b);
X, fval=- fval

CodePudding user response:

List of matrix, can't add; No.,
  • Related