l5 Advanced Power System Optimization l5 Simplex Method Part1
l5 Advanced Power System Optimization l5 Simplex Method Part1
SYSTEM OPTIMIZATION
(ELL776)
SIMPLEX METHOD
A. To convert a (≤) inequality to an equation, a non-negative slack variable (s) is added to the
left-hand side of the constraint.
B. To convert a (≥) inequality to an equation, a non-negative surplus variable (S) is added to the
left-hand
PROBLEM
Write the following LP model in the standard form
Minimize z= 2x1 + 3x2
subject to
x1 + x2 = 10
-2x1 + 3x2 ≤ -5
7x - 4x ≤ 6
1 2
x is unrestricted
1
x2 ≥ 0
© Dr Yashasvi Bansal, IIT Delhi, 2025
7
GRAPHICAL TO ALGEBRAIC SOLUTION
EXAMPLE
SOLUTION
Asian paints produces both interior and exterior paints from two raw material M1, M2. The following table
provides the basic data of problem:
A market survey indicates that the daily demand for interior paint cannot exceed that for exterior paint more than
1 ton. Also, the maximum daily demand for interior paint is 2 tons. Asian Paints wants to determine the optimum
(best) product mix of interior and exterior paints that maximizes the total daily profit?
Check for:
• Entering variable: The entering variable in a maximization (minimization) problem is the nonbasic variable with the
most negative (positive) coefficient in the z-row) -----> Optimality condition
• Leaving variable (For both the maximization and the minimization problems, the leaving variable is the basic variable
associated with the smallest nonnegative ratio with strictly positive denominator)----> Feasibility condition
Methods
• M-method
• Two-phase method.
© Dr Yashasvi Bansal, IIT Delhi, 2025
19
M-METHOD
EXAMPLE
Step 2: Check whether all-slack starting basic feasible solution possible? If no, add the artificial variables R1 and R2 in
the first two equations and penalize them in the obj. function with MR1 + MR2
Step 3: Start with simplex tableau with starting basic solution (R1, R2, x4) = (3, 6, 4) and decide value of M
Basic x1 x2 x3 R1 R2 x4 Solution
z
R1
R2
x4
Step 4: Check if z-row is consistent with the rest of the tableau? If no, substitute out R1 and R2 in the z-row using the
following row operation:
TWO-PHASE METHOD
• Phase I
Put the problem in equation form and add the necessary artificial variables to the constraints
(exactly as in the M-method) to secure a starting basic solution. Next, find a basic solution of the
resulting equations that always minimizes the sum of the artificial variables, regardless of
whether the LP is maximization or minimization. If the minimum value of the sum is positive,
the LP problem has no feasible solution. Otherwise, proceed to Phase II.
• Phase II
Use the feasible solution from Phase I as a starting basic feasible solution for the original
problem.
Step 1: Start with Phase 1: Formulate LP and make associated simplex tableau with starting basic
solution (R1, R2, x4) = (3, 6, 4)
Basic x1 x2 x3 R1 R2 x4 Solution
r
R1
R2
x4
The new r-row is used to solve Phase I of the problem, to get the optimum tableau
Step 3: Check if the minimum value of the sum is positive? Yes, then the LP problem has no feasible solution
otherwise eliminate artificial variables columns altogether from the tableau and move on to Phase II.
Basic x1 x2 x3 x4 Solution
z
x1
x2
x4
Step 5: Basic variables x1 and x2 have nonzero coefficients in the z-row, substitute out using following operation
PROBLEM