Certainly! Let's break down the concepts of reduced cost and optimal (also called feasibility) ranges using the TOYCO model example you've provided. Understanding these concepts is crucial for performing sensitivity analysis in linear programming (LP).
1. Understanding Reduced Cost
Definition:
Reduced cost indicates how much the objective function coefficient of a non-basic variable needs to improve (increase for maximization or decrease for minimization) before that variable can enter the optimal solution.
In the TOYCO Model:
-
Variables:
- ( x_1 ): Number of toy trains (currently 0)
- ( x_2 ): Number of toy trucks (currently 100)
- ( x_3 ): Number of toy cars (currently 230)
-
Objective Function:
[
\text{Maximize } z = 3x_1 + 2x_2 + 5x_3
]
-
Optimal Tableau:
[
\begin{array}{c|cccccc|c}
& x_1 & x_2 & x_3 & x_4 & x_5 & x_6 & \text{Solution} \
\hline
z & 4 & 0 & 0 & 1 & 2 & 0 & 1350 \
x_2 & -1 & & 4 & 1 & 0 & 1 & 100 \
x_3 & 3 & 2 & 0 & 1 & 0 & 1 & 230 \
x_6 & 2 & 0 & 0 & -2 & 1 & 1 & 20 \
\end{array}
]
Calculating Reduced Cost for ( x_1 ):
In the optimal tableau, the z-row shows:
[
z = 1350 - 4x_1 - x_4 - 2x_5
]
Here, the coefficient of ( x_1 ) in the z-equation is -4.
- Interpretation:
- Reduced Cost of ( x_1 = -4 ): Since we're maximizing, a negative reduced cost indicates that increasing ( x_1 ) from 0 would decrease the objective function ( z ), making it non-beneficial to include ( x_1 ) in the production plan under current conditions.
Formal Definition Recap:
[
\text{Reduced Cost} = (\text{Cost of Resources Consumed per Unit}) - (\text{Revenue per Unit})
]
For ( x_1 ):
[
\text{Reduced Cost} = 4 - 3 = 1 \quad \text{(But note in the tableau it's shown as -4 due to tableau formulation)}
]
The negative sign in the tableau accounts for the maximization context.
2. Understanding Optimal (Feasibility) Range
Definition:
The optimal range of a dual price (shadow price) indicates the range over which the dual price remains valid without changing the current optimal basis. It tells us how much we can increase or decrease the right-hand side (RHS) of a constraint before the current optimal solution changes.
Dual Prices in the TOYCO Model:
From your example, the dual prices for the constraints (operations) are:
- Operation 1: Dual Price ( = 1 ) ($/min)
- Operation 2: Dual Price ( = 2 ) ($/min)
- Operation 3: Dual Price ( = 0 ) ($/min)
Feasibility Ranges:
The feasibility range determines how much we can change the RHS of a constraint without altering the current optimal solution.
- Operation 1 Feasibility Range: ( -200 \leq D_1 \leq 10 )
- Operation 2 Feasibility Range: ( -20 \leq D_2 \leq 400 )
- Operation 3 Feasibility Range: ( -20 \leq D_3 \leq \infty )
Interpreting These Ranges:
-
Operation 1 (( D_1 )):
- Minimum Change: Decrease the available time by 200 minutes.
- Maximum Change: Increase the available time by 10 minutes.
-
Operation 2 (( D_2 )):
- Minimum Change: Decrease the available time by 20 minutes.
- Maximum Change: Increase the available time by 400 minutes.
-
Operation 3 (( D_3 )):
- Minimum Change: Decrease the available time by 20 minutes.
- No Upper Limit: Can increase indefinitely.
Conclusion: Changes within these ranges won't affect the current optimal solution (100 trucks and 230 cars).
Example Within Feasibility Range:
Suppose you adjust the available time as follows:
- ( D_1 = -30 ) (Decrease Operation 1 time by 30 minutes)
- ( D_2 = -12 ) (Decrease Operation 2 time by 12 minutes)
- ( D_3 = 10 ) (Increase Operation 3 time by 10 minutes)
Check Feasibility Conditions:
[
\begin{align*}
x_2 &= 100 + \frac{1}{2}(-30) - \frac{1}{4}(-12) = 100 - 15 + 3 = 88 \geq 0 \
x_3 &= 230 + \frac{1}{2}(-12) = 230 - 6 = 224 \geq 0 \
x_6 &= 20 - 2(-30) + (-12) + 10 = 20 + 60 - 12 + 10 = 78 \geq 0 \
\end{align*}
]
All constraints are satisfied, meaning the solution remains feasible.
New Objective Function:
[
z = 1350 + (1 \times -30) + (2 \times -12) + (0 \times 10) = 1350 - 30 - 24 = 1296
]
Example Beyond Feasibility Range:
If you set ( D_1 = 50 ), ( D_2 = -20 ), and ( D_3 = -20 ):
[
\begin{align*}
x_2 &= 100 + \frac{1}{2}(50) - \frac{1}{4}(-20) = 100 + 25 + 5 = 130 \geq 0 \
x_3 &= 230 + \frac{1}{2}(-20) = 230 - 10 = 220 \geq 0 \
x_6 &= 20 - 2(50) + (-20) + (-20) = 20 - 100 - 20 - 20 = -120 < 0 \quad (\text{Infeasible}) \
\end{align*}
]
Since ( x_6 < 0 ), the current solution becomes infeasible, indicating changes exceeded the feasibility range.
3. Summary of Key Points
Reduced Cost:
- Non-basic Variable (e.g., ( x_1 )): Indicates how much the objective function would change if this variable were to enter the solution.
- Negative Reduced Cost (Maximization): Not beneficial to include in the solution as it would decrease the objective value.
- Positive Reduced Cost (Maximization): Beneficial to include, as it would increase the objective value.
Optimal (Feasibility) Range:
- Dual Price Feasibility Range: The range within which the dual price remains valid without changing the current optimal basis.
- Within Range: The current solution remains optimal and feasible.
- Outside Range: The optimal solution may change, requiring re-optimization.
Practical Implications:
- Decision Making: Reduced costs help in understanding which variables can potentially improve the objective function if adjusted.
- Resource Allocation: Feasibility ranges provide insights into how much resource availability can change before altering production plans.
Visual Illustration
Imagine the optimal solution as a stable equilibrium. The feasibility ranges represent the "buffer zones" around this equilibrium. As long as changes stay within these buffer zones, the equilibrium (current solution) holds. Reduced costs tell you which "forces" (variables) are resisting or assisting in shifting this equilibrium.
Final Thoughts
Understanding reduced costs and feasibility ranges allows you to perform effective sensitivity analysis, enabling informed decisions even when underlying parameters change. This ensures robustness in your optimization strategy, making your solutions more adaptable to real-world fluctuations.
If you have any specific parts of the example you'd like to delve deeper into or any other questions, feel free to ask!