Professional Documents
Culture Documents
bright.owusu@knust.edu.gh
February 22, 2023
KNUST
NONSTANDARD MODELS
2
SIMPLEX ALGORITHM (NON-STANDARD PROBLEMS)
n
xj ≥ 0
X
aij ∗ xj ≤ bi
j=1
3
(ii) when the constraints are of the ≥ type,
n
xj ≥ 0
X
aij ∗ xj ≥ bi
j=1
j=1
xj , si , ≥ 0
n
aij ∗ xj − si + Ai = bi
X
j=1
xj , si , Ai ≥ 0 i = 1, 2,...,m
5
An initial basic feasible solution of LP problem with such
constraints can be obtained by equating (n + 2m – m) = (n + m)
variables equal to zero. Thus the new solution to the given LP
problem is: Ai = bi(i = 1, 2, ..., m), which is not the solution to the
original system of equations because the two systems of equations
are not equivalent. Thus, to get back to the original problem,
artificial variables must be removed from the optimal solution.
There are two methods for removing artificial variables from
the solution.
• Big-M Method or Method of Penalties
• Two-Phase Method
6
THE BIG-M METHOD
7
(iii) to each "=" constraint, add an artificial variable
The artificial variables which have been added to both the
"≥" and "=" constraints actually have nothing to do with the
problem but only to give an initial basic feasible solution since the
artificial variable was added to start the simplex tableau, it has to
be out of the solution out of the solutions before the solution gets
to the optimum.
8
NOTE: If the objective function Z is to be minimized , then a
very large positive price (called penalty) is assigned to each
artificial variable.
Similarly, if Z is to be maximized , then a very large negative price
(also called penalty) is assigned to each of these variables.
The penalty is supposed to be designated by – M, for a
maximization problem, and + M, for a minimization
problem, where M > 0.
The Big-M method for solving an LP problem can be summarized
in the following steps:
9
STEPS FOR SOLVING LP
PROBLEM WITH THE BIG-M
METHOD
10
Step 3. Select the pivot row. The pivot row is selected in precisely
the same manner as before. Thus, the smallest ratio (bj /aij ).
Step 4. Pivot on the pivot-entry and perform row operations to
generate new basis.
Step 5. Repeat steps 2,3 and 4 until optimality is reached. The
optimal solution is reached, when every entry in the net evaluation
row is non - negative (this is directly the opposite of the
maximization optimality test).
Also the objective function of a minimization model can be
multiplied by negative one (-1) to render the model a maximization
model.
11
example 1
12
solution
Adding slack variable, s1 ; surplus variable, s2 and artificial
variables, A1 and A2 in the constraints of the given LP problem,
the standard form of the LP problem becomes.
Minimize Z = 5x1 + 3x2 + 0s1 + 0s2 + MA1 + MA2
subject to the constraints
(i) 2x1 + 4x2 + s1 = 12,
(ii) 2x1 + 2x2 + A1 = 10,
(iii) 5x1 + 2x2 − s2 + A2 = 10
and x1 , x2 , s1 , s2 , A1 , A2 ≥ 0
13
First iteration
14
second iteration
15
third iteration
16
final iteration
17
example 2
18
solution
The standard form of given LP problem becomes
Maximize Z = 5x1 + x2 + 0s1 + 0s2 + 0s3 − MA1
subject to the constraints
(i) 5x1 + 2x2 + s1 = 20,
(ii) x1 − s2 + A1 = 3,
(iii) x2 + s3 = 5
and x1 , x2 , s1 , s2 , s3 , A1 ≥ 0
19
first iteration
20
second iteration
21
final iteration
22
23