Or Cat 1
Or Cat 1
CAT 1
21/05493 GICHERU DUNCAN
1. Under what conditions do LP problems have:
(a) Alternate (or multiple) optimal solution.
ANSWER
Linear programming (LP) problems can have alternate (or multiple) optimal
solutions under the following conditions:
1. Non-Unique Objective Coefficients: If the coefficients of the objective
function are not unique for determining the optimal solution, meaning multiple
combinations of decision variables result in the same objective function value,
then LP problems can have multiple optimal solutions.
2. Degeneracy: Degeneracy occurs when the number of binding constraints in
the solution is less than the number of decision variables. In such cases, there
can be multiple solutions that are all optimal. The presence of degeneracy is a
common reason for alternate optimal solutions.
3. Redundant Constraints: When there are redundant or linearly dependent
constraints in the LP problem, it can lead to multiple optimal solutions.
Redundant constraints do not affect the feasible region, so different
combinations of these constraints can result in different optimal solutions.
2. The feasible region is unbounded: Even if there are feasible solutions, the
problem can have unbounded solutions if the feasible region extends infinitely
in one or more directions. This means that there are certain values of the
decision variables that can be increased or decreased indefinitely while still
remaining within the feasible region. As a result, the objective function can be
increased or decreased without limit.
(c) Infeasible solution (No solution). [6 marks]
Answer
1. Incompatible Boundaries: In some cases, the lower and upper bounds on the
variables may be set in a way that makes it impossible to find a feasible
solution. For example, if you have a constraint 0 ≤ x ≤ -1, there is no real
number that can satisfy this constraint.
2. Empty Feasible Region: The feasible region of an LP problem is defined by
the intersection of the constraint boundaries. If this intersection is empty,
meaning there is no common area where all constraints overlap, the problem is
infeasible. This can occur when the constraints are positioned in a way that
they do not intersect.
Given Primal:
Max Z = -3x1 - x2 Subject to:
1. -x1 - x2 ≤ -1
2. -2x1 - 3x2 ≤ -2
3. x1 ≥ 0
4. x2 ≥ 0
Step 1: Write the dual variables for each constraint. Let y1 be the dual variable for
constraint (1), and y2 be the dual variable for constraint (2).
Step 2: Write the dual objective function. The dual objective function is to minimize
the sum of the products of the dual variables and the right-hand side values of the
primal constraints:
Min W = -1y1 - 2y2
Step 3: Formulate the dual linear program. Subject to:
1. y1 - 2*y2 ≥ -3 (dual of constraint 1)
2. y1 - 3*y2 ≥ -1 (dual of constraint 2)
3. y1 ≥ 0 (dual of constraint 3)
4. y2 ≥ 0 (dual of constraint 4)
So, the dual linear program is as follows:
Min W = -y1 - 2*y2 Subject to:
1. y1 - 2*y2 ≥ -3
2. y1 - 3*y2 ≥ -1
3. y1 ≥ 0
4. y2 ≥ 0
2. A and B are two products to be manufactured, unit profits are Tsh 40 and Tsh 35
respectively. Maximum materials available are 60 Kg and 96 man-hrs of labour. Each
unit of A needs 2 kg of materials and 3 man-hours, whereas each unit of B needs 4 kg
of materials and 3 man-hours. Using the graphical method find optimal level of A and
B to be manufactured. [10 marks]
ANSWER
-------------------------------------
| Basic Variables | x1 | x2 | x3 | RHS |
-------------------------------------
| x1 + x2 + 4x3 | 1 | 1 | 4 | 2000 |
| 2x1 + x2 + x3 | 2 | 1 | 1 | 3600 |
| x1 + 2x2 + 2x3 | 1 | 2 | 2 | 2400 |
| -Z | -6 | -17 | -10 | 0 |
-------------------------------------
Now, let's use the simplex method to find the optimal solution:
Determine the pivot column: Select the most negative value in the bottom row (the
objective function row). In this case, it's -17, which corresponds to x2.
Determine the pivot row: Calculate the ratios of the right-hand side values to the
values in the pivot column and select the smallest positive ratio. In this case, we need
to choose the pivot row based on the ratios of RHS values to x2 coefficients.
Perform the pivot operation: Divide the pivot row by the pivot element (2 in this case)
to make the pivot element equal to 1. Then, use row operations to make all other
elements in the pivot column equal to 0.
The updated table becomes:
-------------------------------------
| Basic Variables | x1 | x2 | x3 | RHS |
-------------------------------------
| x1 + x2 + 4x3 | 0.5 | 0 | 2.5 | 1200 |
| 2x1 + x2 + x3 | 2 | 1 | 1 | 3600 |
| x1 + 2x2 + 2x3 | 0.5 | 1 | 1 | 1200 |
| -Z | -22 | 0 | -7 | 24000|
-------------------------------------
In this case, the bottom row has no negative values. The solution is optimal.
The optimal solution is Z = 24000, x1 = 1200, x2 = 0, and x3 = 0. These values
maximize the objective function Z.