Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

Forma generala Forma standard Forma matriceala

max (7*x1+5*x2) max(7*x1+5*x2+0*s1+0*s2+0*s3) max(C*X)

x1≤ 6 x1+s1=6 A*X=b


2*x1+3*x2≤ 19 2*x1+3*x2+s2=19 X≥ 0
x1+x2≤8 x1+x2+s3=8
C=[7 5 0 0 0];
x1≥0 x1≥0 A=[1 0 1 0 0
x2≥0 x2≥0 23010
s1,s2,s3≥0 1 1 0 0 1];
b=[ 6
19
8];
X=[x1 x2 s1 s2 s3]t
Forma vectoriala Forma canonica Forma generala a
modelului in Matlab
max(C*X) max (7*x1+5*x2)
min (-7*x1-5*x2)
a1*x1+a2*x2+a3*s1+a4*s2+a5*s3=b x1≤6
X≥ 0 2*x1+3*x2≤19 x1≤6
x1+x2≤ 8 2*x1+3*x2≤19
C=[7 5 0 0 0]; x1+x2≤8
a1=[1 2 1]t; x1≥0
a2=[0 3 1]t; x2≥0 x1≥0
a3=[1 0 0]t; x2≥0
a4=[0 1 0]t;
a5=[0 0 1]t;
b=[ 6
19
8];
X=[x1 x2 s1 s2 s3]t
Forma generala a modelului in Forma matriceala a modelului in
Matlab Matlab

min (-7*x1-5*x2) min(C*X)

x1≤ 6 A*X≤b
2*x1+3*x2≤ 19 X≥ 0
x1+x2≤8
C=[-7 -5];
x1≥0 A=[1 0
x2≥0 23
1 1 ];
b=[ 6
19
8];
X=[x1 x2]t

You might also like