Professional Documents
Culture Documents
Metodo Simple X Ejemplo Motocicletas
Metodo Simple X Ejemplo Motocicletas
Maximize Subject to
Z 3x1 5x 2 ,
x1
and
2 x2 12 3x1 2 x2 18 x1 0, x2 0
Software Operation
(1) Select Linear Programming and OK (2) Select File and Click New (3) Specify Number of Decision Variables (4) Specify Number of Constraints (5) Specify Objective Type and OK (6) Put Coefficients (7) Solve
Example Embassy Motorcycle (EM) manufactures two lightweight motorcycles designed for easy handling and safety. The EZRider model has a new engine and a low profile that make it easy to balance. The Lady-Sport model is slightly larger, uses a more traditional engine, and is specifically designed to appeal to women riders. Embassy produces the engines for both models at its Des Moines, Iowa, plant. Each EZRider engine requires 6 hours of manufacturing time and each Lady-Sport engine requires 3 hours of manufacturing time. The Des Moines plant has 2100 hours of engine manufacturing time available for the next production period. Embassys motorcycle frame supplier can supply as many EZ-Rider frames as needed.
However, the Lady-Sport frame is more complex and the supplier can provide only up to 280 Lady-Sport frames for the next production period. Final assembly and testing requires 2 hours for each EZ-Rider model and 2.5 hours for each Lady-Sport model. A maximum of 1000 hours of assembly and testing time are available for the next production period. The companys accounting department projects a profit contribution of $2400 for each EZ-Rider produced and $1800 for each Lady-Sport produced. Formulate a linear programming model that can be used to determine the number of units of each model that should be produced in order to maximize the total contribution to profit. Find the optimal solution using the graphical solution procedure. Which constraints are binding.
Example (a)
Let E = number of units of the EZ-Rider produced L = number of units of the Lady-Sport produced
Max s.t. 6E + 3L L 2E + 2.5L 2100 280 1000 Engine time Lady-Sport maximum Assembly and testing 2400E + 1800L
E, L 0
Example (b)
Number of EZ-Rider Produced
600
500
400
300
200
100 Assembly and Testing 0 100 200 300 400 500 E Number of Lady-Sport Produced
Example (c)
The binding constraints are the manufacturing time and the assembly and testing time.
x 2 x1 0
8 6 4 Feasible 2 region 0 2 4 6 8
3x1 2 x2 18
(4,6)
2 x2 12
x1 4
x2 0
10
x1
Optimality test:
There is at least one optimal solution. If a CPF solution has no adjacent CPF solutions
Initialization
Yes
Stop
x2
Z 30
2
(2,6)
Z 36
(0,6) 1
(4,3)
Feasible region 0
Z 27
Z 12
(4,0)
(0,0) Z 0
x1
Solution concept 2: The simplex method is an iterative algorithm ( a systematic solution procedure that keeps repeating a fixed series of steps, called an iteration). Solution concept 3: The initialization of the simplex method chooses the origin to be the initial CPF solution.
Solution concept 4:
Given a CPF solution, it is much quicker computationally to gather information about its adjacent CPF solutions than other CPF solutions. Therefore, each time the simplex method performs an iteration to move from the current CPF solution to a better one, it always chooses a CPF solution that is adjacent to the current one.
Solution concept 5:
After the current CPF solution is identified, the simplex method identifies the rate of improvement in Z that would be obtained by moving along edge. Solution concept 6: The optimality test consists simply of checking whether any of the edges give a positive rate of improvement in Z. If no improvement is identified, then the current CPF solution is optimal.
Simplex Method
To convert the functional inequality constraints to equivalent equality constraints, we need to incorporate slack variables.
4
12
2 x 2 x4
3x1 2 x2 18
3 x1 2 x2
and
x5 18
and
x1 0, x2 0
x j 0, for j 1,2,3,4,5.
Properties of BF Solution
1. Each variable is designated as either a nonbasic variable or a basic variable.
is a BF solution.
Coefficient of:
x1 x2 x3
x4
0 0 1 0
x5
0 0 0 1
-3 -5 0 1 0 1 0 2 0 3 2 0
Right Side 0 4 12 18
minimum
Right Side 0 12 4 6 2 12 18 18 9
2
x5
0 0 0 1
12 18
12 6 2 18 9 2
minimum
x1 x2 x3
x4
0 0 1 0
x5
0 0 0 1
-3 -5 0 1 0 1 0 2 0 3 2 0
Right Side 0 4 12 18
4 6
4 4 1 6 2 3
minimum
x1 x2 x3
0 0 1 0 0 1 0 0
x4
0
x5
0 0 0 1
-3 1 0 3
5 1
2 2
-1
Right Side 30 4 6 6
x1 2, x2 6
None of the coefficient is negative. (b) Tabular Form
Coefficient of: Iteration BV Eq. Z Z (0) 1 x3 (1) 0 Right x5 Side 1 36 2 6
x1 x2 x3 x4
0
0 0
0
0 1
0
1
x 2 (2) 0 x1 (3) 0
1 1 3 3 0 12 0 0 13 1 3
(b) Degeneracy
Multiple Optimal Solution occur if a non
Z 3x1 2 x2
x1
x3 4 2 x2 x4 12 x5 18 3 x1 2 x2
Coefficient of:
x3 x 4
0 1 0 0 1
0
1
12
18
x5 (3) 0 3 2 0 0
Coefficient of:
x3 x 4
3
0
0 1
1
0
0
0
4
12
No
x5 (3) 0 0 2 -3 0
Coefficient of:
x4
0
0 1
4
6
Yes
2 0
Coefficient of:
x3
(1) 0
None
2 x2 12 3x1 2 x2 18
and
x1
x1
3 x1 2 x2
and
x3 2 x 2 x4
4 12
x5 18
x1 0, x2 0
x5 : Artificial Variable
Max: s.t.
3 x1 5 x2 Mx5
(0) (3)
3 x1 2 x2 x5 18
x5 18 3x1 2 x2
Put (4) into (0), then Max: 3x1 5 x2 M (18 3x1 2 x2 ) or Max: (3M 3) x1 (2M 5) x2 18 M
Max s.t.
2 x2 x4 12 (2) x5 18 (3) 3 x1 2 x2
x3 x2 x1 BV Eq. Z Z (0) 1 -3M-3 -2M-5 0 x3 (1) 0 1 0 1 0 x 4 (2) 0 3 2 0
x5 (3) 0
3 2 0
Coefficient of:
x4
0 0
1
0
18
Coefficient of: 0 1 0 0
x3 x 4
0
0 1
x5 (3) 0
x1
0 1 0 0
Coefficient of:
x2
0 0 0 1
x3
1 3
Right x 4 x5 Side 0 M 5 2 27 0 1 0 -1
1 2
4 6 3
x 4 (2) 0 x 2 (3) 0
Extra x
x1
0 1 0 0
Coefficient of:
x2
0 0 0 1
Right x3 x 4 x5 Side 0 3 2 M 1 27 1 1 0 4 3 3 1 0
1 1 3 2 1 3
x2
(2) 0 (3) 0
6 3
x j x x , x 0, x 0
Min s.t.
3 x1 5 x2
x1
4
2 x2 12
Min s.t.
3 x 3 x 5 x2
x x
1
4
2 x2 12
3x1 2 x2 18
3 x 3 x 2 x2 18
x1 : URS , x2 0
x 0, x ,0 x2 0
Homework
(1) P. 78 : Prob. 2-31 (2) P. 79 : Prob. 2-38 (3) P. 132 : Prob. 3-7 (4) P. 134 : Prob. 3-10 Due day: September 8 (M)