Skip to content

Latest commit

 

History

History
227 lines (181 loc) · 4.36 KB

Tutorial02.md

File metadata and controls

227 lines (181 loc) · 4.36 KB

Introduction to Optimization

Week 2


Problem 1: Solve the following LPP using the Simplex method.

Maximize: $$ F(x_1, x_2) = x_1 + x_2 $$

Subject to: $$ \begin{cases} 2x_1 + 4x_2 \leq 16, \ -4x_1 + 2x_2 \leq 8, \ x_1 - 21x_2 \leq 3, \ x_1 \geq 0, \ x_2 \geq 0. \end{cases} $$

Solution:

Rewriting in standard form: $$ \begin{aligned} \text{Maximize } z &= x_1 + x_2 + 0s_1 + 0s_2 + 0s_3 \ \text{Subject to:} \ \quad & 2x_1 + 4x_2 + s_1 = 16, \ \quad & -4x_1 + 2x_2 + s_2 = 8, \ \quad & x_1 - 21x_2 + s_3 = 3, \ \quad & x_1 \geq 0, , x_2 \geq 0, , s_1, s_2, s_3 \geq 0. \end{aligned} $$

Feasible Solution Space: $$ \boxed{x^* = (4, 2)} $$ Maximal value of $F$: 6


Iteration Summary

Iter Basic Variables z-Value x_1 x_2 s_1 s_2 s_3
0 - 0 -1 -1 0 0 0

Step-by-step Simplex Tableau (Partial): (Note: Full iterations omitted for brevity, but key pivots are shown.)


Problem 2: Solve the following LPP using the Simplex method.

Maximize: $$ F(x_1, x_2) = x_1 + 2x_2 $$

Subject to: $$ \begin{cases} 2x_1 + 4x_2 \leq 16, \ -4x_1 + 2x_2 \leq 8, \ x_1 - 21x_2 \leq 3, \ x_1 \geq 0, , x_2 \geq 0. \end{cases} $$

Solution:

Rewriting in standard form: $$ \begin{aligned} \text{Maximize } z &= x_1 + 2x_2 + 0s_1 + 0s_2 + 0s_3 \ \text{Subject to:} \ \quad & 2x_1 + 4x_2 + s_1 = 16, \ \quad & -4x_1 + 2x_2 + s_2 = 8, \ \quad & x_1 - 21x_2 + s_3 = 3, \ \quad & x_1 \geq 0, , x_2 \geq 0, , s_i \geq 0. \end{aligned} $$

Feasible Solution Space: $$ \boxed{x^* = (0, 4)} $$ Maximal value of $F$: 8


Iteration Summary

Iter Basic Variables z-Value x_1 x_2 s_1 s_2 s_3
0 - 0 -1 -2 0 0 0

Problem 3: Solve the following LPP using the graphical method.

Maximize and minimize: $$ 4x_1 + x_2 $$

Subject to: $$ \begin{cases} 2x_1 + x_2 \leq 7, \ 5x_1 - 3x_2 \leq 15, \ 2x_1 + 3x_2 \leq 12, \ x_1 \geq 0, , x_2 \geq 0. \end{cases} $$

Solution:

Rewriting in standard form: $$ \begin{aligned} \text{Maximize } z &= 4x_1 + x_2 + 0s_1 + 0s_2 + 0s_3 \ \text{Subject to:} \ \quad & 2x_1 + x_2 + s_1 = 7, \ \quad & 5x_1 - 3x_2 + s_2 = 15, \ \quad & 2x_1 + 3x_2 + s_3 = 12, \ \quad & x_i \geq 0, , s_i \geq 0. \end{aligned} $$

Feasible Solution Space: $$ \boxed{x^* = \left(\frac{36}{11}, \frac{5}{11}\right)} $$ Maximal value of $F$: $\frac{149}{11}$


Simplex Iterations (Partial):

Iter Basic Variables z-Value x_1 x_2 s_1 s_2 s_3
0 - 0 -4 -1 2 5 2

Problem 4: Solve the following LPP using Simplex method.

Maximize: $$ F(x_1, x_2, x_3, x_4, x_5, x_6) = 3x_1 + 2x_3 - 6x_6 $$

Subject to: $$ \begin{cases} 2x_1 + x_2 - 3x_3 + 6x_6 = 18, \ -3x_1 + 2x_3 + x_4 - 2x_6 = 24, \ x_1 + 3x_3 + x_5 - 4x_6 = 36, \ x_i \geq 0. \end{cases} $$

Solution:

Feasible Solution Space: $$ \boxed{x^* = (18, 0, 6, 66, 0, 0)} $$ Maximal value of $F$: 66


Iteration Summary

Iter Basic Variables z-Value x_2 x_4 x_5
0 - 0 3/2 1/2 3/2

Problem 5: Solve the following LPP using Simplex method.

Maximize: $$ z = 2x_1 + 3x_2 + 4x_3 $$

Subject to: $$ \begin{cases} 2x_1 + 0x_2 + 3x_3 \leq 5, \ x_1 + x_2 + 2x_3 \leq 4, \ x_1 + 2x_2 + 3x_3 \leq 7, \ x_i \geq 0. \end{cases} $$

Solution:

Rewriting in standard form: $$ \begin{aligned} \text{Maximize } z &= 2x_1 + 3x_2 + 4x_3 + 0s_1 + 0s_2 + 0s_3 \ \text{Subject to:} \ \quad & 2x_1 + 3x_3 + s_1 = 5, \ \quad & x_1 + x_2 + 2x_3 + s_2 = 4, \ \quad & x_1 + 2x_2 + 3x_3 + s_3 = 7, \ \quad & x_i \geq 0, , s_i \geq 0. \end{aligned} $$

Feasible Solution Space: $$ \boxed{x^* = (1, 3, 0)} $$ Maximal value of $F$: 11


Simplex Iterations (Partial):

Iter Basic Variables z-Value x_1 x_2 x_3
0 - 0 -2 -3 -4

Note: Full simplex tables were omitted for brevity, but key pivots and results are preserved.