0% found this document useful (0 votes)
8 views

Simplex

Tarea

Uploaded by

Andrea Rivera
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views

Simplex

Tarea

Uploaded by

Andrea Rivera
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 19

g

e e rin
in
Solution Techniques Eng
s
y s tem L e ón
S
Dr. M. Angélica Salazar inA. / Dr. VincentuA. evL.o Boyer
ra m e N
r o gProgram a d (PISIS)
P
Graduate
m
in Systems Engineering

u a te Facultad u t ó o de Nuevo
de Ingenierı́anMecánica y Eléctrica

ra d Universidad Autónoma
dA
León

G
rs ida
ive
Un

Dr. M. Angélica Salazar A. / Dr. Vincent A. L. Boyer (PISIS-FIME)


Solution Techniques
Content

g
e e rin
n
Engi
t ems ón
1 Simplex Method Sy s L e
in o
uev
g ram e N
Pr o m ad
u a te ut óno
d A
Gra i d ad
rs
n ive
U

Dr. M. Angélica Salazar A. / Dr. Vincent A. L. Boyer (PISIS-FIME)


Solution Techniques
Simplex Method

Agenda

g
e e rin
n
Engi
t ems ón
1 Simplex Method Sy s L e
in o
uev
g ram e N
Pr o m ad
u a te ut óno
d A
Gra i d ad
rs
n ive
U

Dr. M. Angélica Salazar A. / Dr. Vincent A. L. Boyer (PISIS-FIME)


Solution Techniques
Simplex Method

General steps of the Simplex method

g
Step 1. Convert the LP to standard form
e e rin
n
E ngi
ms
Step 2. Build the initial tableau
s t e e ón
S y o L
in feasible solution
Step 3. Determine whether the current uevis optimal
m N
r o gra ad
e
Step 4. Identifyte
P o m
u a the entering and the
u t ónleaving variables
d A
Gra i ad d
ers operation, then go to Step 3.
Step 5. Do the pivoting
iv
Un

Dr. M. Angélica Salazar A. / Dr. Vincent A. L. Boyer (PISIS-FIME)


Solution Techniques 1 / 16
Simplex Method

Step 1. Convert the LP to standard form

Original problem g
e e rin
Max z = 500t + 300c i n
s.t. 2t + c 40g
≤En
t + 2cems≤ 50
st0
t ≥ 0, Scy≥ L eón
in o
m N uev
Standard form
r o gra ad
e
All constraints are P
e equations and the nrhsm
o and all variables are nonnegative.
u a t u t ó
We add ford each constraint d≤ Aa slack variable si .
Gra for each constraint
We subtract
sid
a ≥ a surplus (excess) variable ei .
Max ziv=er 500t + 300c
Un
s.t. 2t + c + s1 = 40
t + 2c + s2 = 50
t ≥ 0, c ≥ 0, s1 ≥ 0, s2 ≥ 0

Dr. M. Angélica Salazar A. / Dr. Vincent A. L. Boyer (PISIS-FIME)


Solution Techniques 2 / 16
Simplex Method

Step 2. Build the initial tableau

g
Consider the standard form
e e rin
Max z = 500t + 300c gi n
s.t. 2t + c + s1 s En = 40
t + 2c
y s tem + s2 = L50
e ón
t ≥ 0, c ≥ 0, S
s1 ≥ 0, s2 ≥ 0 o
in uev
m N
gra to the row 0aformat:
Convert the objective function
r o de z − 500t − 300c = 0
P m
Initial tableauate
u ut óno
d A c s s rhs
Gra B.V. atd
sid
1 2

i vse1r 2 1 1 0 40
Un s2 1 2 0 1 50
z −500 −300 0 0 0

Dr. M. Angélica Salazar A. / Dr. Vincent A. L. Boyer (PISIS-FIME)


Solution Techniques 3 / 16
Simplex Method

Step 3. Determine whether the current feasible solution is


optimal
g
e e rin
n
ngi
Current tableau
E
B.V. t c s1 sm 2 srhs
t e eón
s1 2 1 Sys1 0 40 L
s2 1m in2 0 1 50 uevo
ra N
z og−500 −300 0 0de 0
e Pr n o ma
Notice thatd at utó is: t = 0, c = 0, s1 = 40, s2 = 50
uthe current feasibleAsolution
a
ther value of the objective
d
and G
rs ida function is z = 0.
ive If any coefficient in row z is negative, the current
In case of maximization:
n
U is not optimal.
feasible solution
In case of minimization: If any coefficient in row z is positive, the current
feasible solution is not optimal.

Dr. M. Angélica Salazar A. / Dr. Vincent A. L. Boyer (PISIS-FIME)


Solution Techniques 4 / 16
Simplex Method

Step 4. Identify the entering and the leaving variables

If we maximize, the entering variable is the one with the smallest n


i g
(negative)
e r
value in row z.
g i nehighest positive
value in row z. s En
If we minimize, the entering variable is the one with the
m e n
Current tableau Syst
o L eó
in
uev
B.V. tam c N
s1 s2 rhs
s1 ro 2
gr de
1 a 0 40
P 1 m
no 0 1 50
u a te s 2 1 ut2ó
d A
Gra z
i d ad −300 0 0 0
−500
rs ↑
n ive
U Input

In this case, the entering variable is t, with coefficient −500.

Dr. M. Angélica Salazar A. / Dr. Vincent A. L. Boyer (PISIS-FIME)


Solution Techniques 5 / 16
Simplex Method

Step 4. Identify the entering and the leaving variables

The leaving variable is the winner of the ratio test. Hence, it is the gone with
rhs of row e r in
the minimum value of
ne
coefficient of entering variable in irow
g
Choosing the leaving variable s En
m
L eón
Sy ste
B.V. t c
o
s1in s2 rhs
ratio uev
m N
a 1 0 40 d40e → Output
s1 2 ogr1
P r m a 502
s 2 te 1 2 o
0 ó1n 50 1
d u a −500 −300 u t
r a z
d A 0 0
0
G ↑ rsid
a
iv e
UnInput
The denominator in the ratio should be strictly positive (> 0). Otherwise,
you cannot compute it.
Dr. M. Angélica Salazar A. / Dr. Vincent A. L. Boyer (PISIS-FIME)
Solution Techniques 6 / 16
Simplex Method

Step 5. Do the pivoting operation

g
e e rin
n
ngi
5.1 Update the row of the entering variable
m sE
te element of theLerow
Replace basic variable s1 by t and divide seach
y ónby the
n Sby 2).
pivote of the row (in this case, divide
ue vo
i
am N
P r ogr
m a de
B.V. t c s1 s2 rhs
B.V.
s1
t
ec s11 s02 rhs
2uat 1 40 utó
no t 1 1/2 1/2 0 20
s2 rad1 A →
2 0 1d 50 s2
G
z
a
−500 −300 rs0id 0 0 z
n ive
U

Dr. M. Angélica Salazar A. / Dr. Vincent A. L. Boyer (PISIS-FIME)


Solution Techniques 7 / 16
Simplex Method

Step 5. Do the pivoting operation

5.1 Update the remaining rows eri ng


n e
ngi rows.
Use the row of the entering variable to update the remaining
E
To update row s2 we must do the following: ms
y s te L e ón
n Srow s2 ) × [newupivot
[Old row s2 ] − (pivot in iOld evo row t]
m N
r o gra 1 1 a de 3 1
0 1P50] − 1 × [1
[1 2 e 0om
20] = [0 − 1 30]
a t 2tó2n 2 2
ad u A u
Gr s i dad
B.V. t r
vce s1 s2 rhs B.V. t c s1 s2 rhs
i
s1
s2
2
1
1
2
Un 1
0
0
1
40
50
→ t
s2
1 1/2 1/2
0 3/2 −1/2
0
1
20
30
z −500 −300 0 0 0 z

Dr. M. Angélica Salazar A. / Dr. Vincent A. L. Boyer (PISIS-FIME)


Solution Techniques 8 / 16
Simplex Method

Step 5. Do the pivoting operation

5.1 Update the remaining rows eri ng


n e
ngi rows.
Use the row of the entering variable to update the remaining
E
To update row z we must do the following: ms
y s te L e ón
n Srow z) × [new upivot
[Old row z] − (pivot in iOld evo row t]
m N
r o gra 1 1ma
de
P
[−500 − 300 t0e0 0] − (−500) × [1 no 0 20] = [0 − 50 250 0 10, 000]
a d ua A utó 2 2
Gr sid
ad
B.V. t c
iv er
s1 s2 rhs B.V. t c s1 s2 rhs
s1
s2
2
1
1
2
Un 1 0 40
0 1 50
→ t
s2
1 1/2 1/2
0 3/2 −1/2
0
1
20
30
z −500 −300 0 0 0 z 0 −50 250 0 10, 000

Dr. M. Angélica Salazar A. / Dr. Vincent A. L. Boyer (PISIS-FIME)


Solution Techniques 9 / 16
Simplex Method

Step 3. Determine whether the current feasible solution is


optimal
g
e e rin
n
Current tableau E ngi
t ems ón
B.V. t c s1 yss2 rhs e
S L
t 1 1/2 in1/2 0 20 uevo
s2 0gra
m
3/2 −1/2 1 de30N
o
zPr 0 −50 250 om0a 10, 000

d u ate utón
In caserof
G d d Acoefficient in row z is negative, the current
a maximization: Ifaany
i
feasible solution is not soptimal.
iv er
Un
In case of minimization: If any coefficient in row z is positive, the current
feasible solution is not optimal.

Dr. M. Angélica Salazar A. / Dr. Vincent A. L. Boyer (PISIS-FIME)


Solution Techniques 10 / 16
Simplex Method

Step 4. Identify the entering and the leaving variables

If we maximize, the entering variable is the one with the smallest n


i g
(negative)
e r
value in row z.
g i nehighest positive
value in row z. s En
If we minimize, the entering variable is the one with the
m e n
Current tableau oSyst
L eó
in
uev
B.V. t acm s1 s2 N
rhs
gr
tPro1 1/2 1/2 m0a
de
20
t e ó n o
a
du sz2 00 −50 3/2 ut−1/2 1
r a d A 250 0 10,30000
G a
e rsid ↑
iv
Un Input

In this case, the entering variable is c, with coefficient −50.

Dr. M. Angélica Salazar A. / Dr. Vincent A. L. Boyer (PISIS-FIME)


Solution Techniques 11 / 16
Simplex Method

Step 4. Identify the entering and the leaving variables

The leaving variable is the winner of the ratio test. Hence, it is the g
rhs of row e r i n one with
the minimum value of
ne
coefficient of entering variable in irow
g
Choosing the leaving variable s En
m
L eón
Sy ste
B.V. t c s1 ratio uev
osi2n rhs
t 1 1/2 g1/2
m
ra 0 20 d20/ N
e 12
r o a
P −1/2 1 no30m 30/ 32 → Output
s2 0 e 3/2
a t ó
zdu 0 −50 250 Au0t 10, 000
Gr a d
↑ rsida
n ive
Input
U
The denominator in the ratio should be strictly positive (> 0). Otherwise,
you cannot compute it.

Dr. M. Angélica Salazar A. / Dr. Vincent A. L. Boyer (PISIS-FIME)


Solution Techniques 12 / 16
Simplex Method

Step 5. Do the pivoting operation

g
e e rin
gi n
5.1 Update the row of the entering variable s En
temelement of theLerow
Replace basic variable s2 by c and divideseach
y ón by the
n Sby 3/2).
pivote of the row (in this case, divide vo
i e
am Nu
B.V. t c s1Pr s2 rhs
ogr m
d e
aB.V.
t e ó n o t c s1 s2 rhs
t 1 u a
d 1/2 1/2 0 d30 20 ut t
s2 ra0 3/2 −1/2 1 A →
−1/3 2/3
G a c 0 1 20
z 0 −50 250 rs0id 10, 000 z
n ive
U

Dr. M. Angélica Salazar A. / Dr. Vincent A. L. Boyer (PISIS-FIME)


Solution Techniques 13 / 16
Simplex Method

Step 5. Do the pivoting operation

5.1 Update the remaining rows eri ng


n e
ngi rows.
Use the row of the entering variable to update the remaining
E
To update row t we must do the following: ms
y s te L e ón
n Srow t) × [new upivot
[Old row t] − (pivot in iOld evorow c]
m N
1 1 Pro 1
gra 2 a
1 m
de 2 1
[1 e0 20] − × [0 1 −no 20] = [1 0 − 10]
a d u2at2 2
A utó 3 3 3 3
r
GB.V. d a
t c
e
s1rsisd rhs B.V. t c s1 s2 rhs
iv
2
t
s2
Un
1 1/2 1/2
0 3/2 −1/2
0
1
20
30

t
c
1 0 2/3 −1/3
0 1 −1/3 2/3
10
20
z 0 −50 250 0 10, 000 z

Dr. M. Angélica Salazar A. / Dr. Vincent A. L. Boyer (PISIS-FIME)


Solution Techniques 14 / 16
Simplex Method

Step 5. Do the pivoting operation

g
e e rin
gin
5.1 Update the remaining rows
s En
temthe remainingLerows.
Use the row of the entering variable to update
y s ón
nS
To update row z we must do the following:
[Old row z] − (pivotmin iOld row z) × [new evorow c]
upivot
N
ra × [0 1 − 13 23de20] = [0 0 700
[0 − 50 250 0 10, 000]o−g(−50) 100
3 11, 000]
e Pr n o ma
3

B.V. t
u act s s
rhs 1
utó B.V.
2 t c s1 s2 rhs
t ad1 1/2 1/2 0 20 A
Grs 0 3/2 −1/2 s1idad30
t 1 0 2/3 −1/3 10

2 c 0 1 −1/3 2/3 20
r
ive 0 10, 000 0 0 700 100
z 0 −50 250 z 3 3 11, 000
U n

Dr. M. Angélica Salazar A. / Dr. Vincent A. L. Boyer (PISIS-FIME)


Solution Techniques 15 / 16
Simplex Method

Step 3. Determine whether the current feasible solution is


optimal
g
e e rin
n
ngi
In case of maximization: If any coefficient in row z is negative, the current
feasible solution is not optimal. s E
eón em
Current tableau
o LSyst
B.V. t c m rhs uev n s
si1
ra e N 2
t ro1g 0 2/3 −1/3a d 10
P m
u a te c 0 1 −1/3 ut óno2/3 20
a d z 0 0 A700 100
11, 000
Gr i d ad 3 3
rs
n ive The optimal solution has been found and the car-
Then, we have finished:
U
penter must produce 10 tables and 20 chairs to obtain a maximum profit
equals to $11,000.

Dr. M. Angélica Salazar A. / Dr. Vincent A. L. Boyer (PISIS-FIME)


Solution Techniques 16 / 16

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy