Professional Documents
Culture Documents
نموذج اختبار
نموذج اختبار
Engineering Department
Computer Systems Engineering
Software Engineering
Operation Research
Prepared By
Under Supervisor
objective:
Max z=3x +4y
constraints.
2x +3y<=12000
2x+y<=1000
4y<=800
x,y>=0
Solution:-
3x1+5x2=15
Let x1=0 , => 5x2=15 => x2=3
p11(0,3)
let x2=0 => 3x1=15 => x1=5
p12(5,0)
6x1+4x2=24
Let x1=0 , => x2=6
P21(0,6)
Let x2=0 , => x1=4
p22(4,0)
-3x1-2x2 = -12
3x1 + 5x2 = 15
Sum of equations
3x2 = -3
X2 = 1 x1 = 3.333
Point B is the result of the intersection of the first and thirds equations
X1 = 2
X2 = 1.8
POINTS Z
A(2,3) 14
B(2,1.8) 11.6
C(3.33,1) 15.32
Min w=6y1+8y2+y3+2y4
Subject to:
y1+2y2-y3>=3
2y1+y2+y3+y4>=2
y1,y2,y3,y4>=0
Subject to:
y1+2y2-y3 –s1+R1=3
2y1+y2+y3+y4 –s2 +R2=2
y1,y2,y3,y4,s1,s2,R1,R2>=0
Basic y1 y2 y3 y4 S1 S2 R1 R2 RHS
Sol
Obj Fun 6 8 1 2 0 0 M M 0
R1 1 2 -1 0 -1 0 1 0 3
R2 2 1 1 1 0 -1 0 1 2
Basic y1 y2 y3 y4 S1 S2 R1 R2 RHS
Sol
Obj Fun 3M-6 3M-8 -1 M-2 -M -M 0 0 5M
R1 1 2 -1 0 -1 0 1 0 3
R2 2 1 1 1 0 -1 0 1 2
2/2 =1 ,3/1=3
Basic Y1 Y2 Y3 Y4 S1 S2 R1 R2 RHS
Sol
0 1.5M-5 -1.5M -0.5M+1 -M -0.5M-3 0 -1.5M+3 2M+6
Obj Fun
R1 0 1.5 -1.5 -0.5 -1 0.5 1 -0.5 2
Y1 1 0.5 0.5 0.5 0 -0.5 0 0.5 1
2/1.5=1.33 ,1/0.5=2
Basic Y1 Y2 Y3 Y4 S1 S2 R1 R2 RHS
Sol
0 0 -3 -0.66 -3.33 -1.33 -M+3.33 -M+1.33 12.66
Obj Fun
Y2 0 1 -1 -0.33 -0.67 0.33 0.67 -0.33 1.33
Y1 1 0 1 0.67 0.33 -0.67 -0.5 0.67 0.33
Domain=[-1,1.2]
The value cannot be increased
y1+y2<=10
4/5 +1/3 <=10
1.13<=10
we can add constraint