DEV Community

Thana B.
Thana B.

Posted on • Edited on

Operations Research: How to Allow Users to Tune Model when an Instance Causes Unsolvable result

Goal Programming: Balancing Multiple Objectives with Flexibility

In the field of operations research, decision-makers often face complex problems involving multiple, sometimes conflicting, objectives. Traditional optimization techniques, like linear programming, focus on optimizing a single objective function subject to a set of rigid constraints. However, real-world scenarios rarely adhere to such simplicity. Constraints can be flexible, and goals may need to be balanced rather than strictly optimized. Goal programming emerges as a powerful tool in these situations, enabling decision-makers to accommodate multiple objectives and find feasible solutions even when traditional models indicate infeasibility.

The Importance of Goal Programming

In practice, not all constraints are absolute; many represent soft constraints or goals that we aim to achieve if possible. Traditional linear programming treats constraints as rigid requirements that must be strictly satisfied for a solution to be feasible. If these constraints are conflicting or overly restrictive, the model may become infeasible, offering no solution.

Goal programming addresses this issue by introducing flexibility into the model without altering the original problem instance. It allows decision-makers to prioritize and balance multiple objectives, accommodating the inherent "softness" of real-world constraints. By permitting controlled deviations from certain constraints, goal programming transforms an unsolvable problem into a solvable one, enabling users to fine-tune their models effectively.

Benefits of Goal Programming

  • Flexibility: Accommodates soft constraints, reflecting real-world conditions where not all requirements are absolute.
  • Feasibility: Transforms infeasible models into solvable ones by allowing deviations from less critical constraints.
  • Prioritization: Enables ranking objectives according to their importance, ensuring critical goals are addressed first.
  • Tunability: Allows users to adjust goal priorities without changing the original problem instance, providing a powerful tool for model refinement.

How to Formulate Goal Constraints

Formulating goal constraints involves converting soft constraints and objectives into a form that allows for deviations, measured by deviational variables. This process introduces flexibility into the model, enabling the accommodation of conflicting objectives and the balancing of multiple goals.

Steps to Formulate Goal Constraints

  1. Identify the Goals: List all desired outcomes and soft constraints.

  2. Write the Requirement as a Regular Constraint: Formulate each goal as a standard constraint (equality or inequality).

  3. Reformulate as a Goal Constraint: Introduce deviational variables to measure underachievement and overachievement.

The general method for formulating goal constraints is summarized in the table below:

Desired Situation Formulation of Goal Constraint Contribution to Objective Function
LHSRHS\text{LHS} \leq \text{RHS} LHS+dd+=RHS\text{LHS} + d^- - d^+ = \text{RHS} Minimize d+d^+
LHS=RHS\text{LHS} = \text{RHS} LHS+dd+=RHS\text{LHS} + d^- - d^+ = \text{RHS} Minimize d+d+d^- + d^+
LHSRHS\text{LHS} \geq \text{RHS} LHS+dd+=RHS\text{LHS} + d^- - d^+ = \text{RHS} Minimize dd^-
  1. Establish the Objective Function: Create an objective function that minimizes the weighted sum of the deviational variables, reflecting the priorities of each goal.

Explanation of Deviational Variables

  • Negative Deviational Variable ( dd^- ): Measures the amount by which a goal is underachieved.
  • Positive Deviational Variable ( d+d^+ ): Measures the amount by which a goal is overachieved.

Note: For any particular goal, only one of the deviational variables ( dd^- or d+d^+ ) will be positive in the optimal solution, as a goal cannot be both underachieved and overachieved simultaneously.

Example: Allocating Diamonds to Stores

Problem Statement

The owner of a chain of jewelry stores has to decide how to distribute parts of a new shipment of diamonds to five stores in a region. The first three stores are located in shopping malls. The following conditions have to be observed:

Absolutely Necessary (Hard Constraints):

  • (a) Allocate between 1,000 and 1,200 carats in total to the five stores.
  • (b) Store 5 must receive at least 300 carats of diamonds.

Desired Properties of the Allocation (Soft Constraints and Objectives):

  • (c) The stores in the malls (Stores 1, 2, and 3) should receive at least 80% of all the diamonds, if possible.
  • (d) The allocations to the stores in the malls should be equal to each other, if possible.
  • (e) The probabilities of theft in the stores have been estimated to be 0.1%, 0.1%, 9%, 2%, and 3% for Stores 1 to 5, respectively. The owner would like to minimize the expected loss due to theft.

Goal Priorities:

  • Priority 1: requirement (e) is 25 times as important as requirement (d)
  • Priority 2: requirement (d) is 2 times as important as requirement (c)
  • Priority 3: requirement (c) as a baseline of priority. Ensure mall stores receive at least 80% of the diamonds.

Traditional Linear Programming Model

In the traditional model, all constraints, including the soft constraints and objectives, are treated as hard constraints.

Decision Variables

  • xix_i : Number of carats allocated to Store ii (for i=1,2,3,4,5i = 1, 2, 3, 4, 5 ).

Objective Function

  • Minimize Expected Loss (e):
    Minimize Z=0.001x1+0.001x2+0.09x3+0.02x4+0.03x5\text{Minimize } Z = 0.001 x_1 + 0.001 x_2 + 0.09 x_3 + 0.02 x_4 + 0.03 x_5

Constraints

  1. Hard Constraints (Absolutely Necessary):
  • Total Allocation Bounds:
    1000x1+x2+x3+x4+x512001000 \leq x_1 + x_2 + x_3 + x_4 + x_5 \leq 1200
  • Minimum Allocation to Store 5:
    x5300x_5 \geq 300
  1. Soft Constraints (Treated as Hard Constraints):
  • Mall Stores Allocation (c):

    x1+x2+x30.8(x1+x2+x3+x4+x5) x_1 + x_2 + x_3 \geq 0.8(x_1 + x_2 + x_3 + x_4 + x_5)
  • Equal Allocation Among Mall Stores (d):

    x1=x2=x3 x_1 = x_2 = x_3

Shortcomings of the Traditional Model

  • Infeasibility: Due to the rigidity of hard constraints and conflicting objectives, the model may become infeasible, offering no solution.
  • Lack of Flexibility: Cannot prioritize goals or allow for deviations, leaving the decision-maker without actionable solutions.

Goal Programming Approach

Goal programming introduces flexibility by converting objectives and soft constraints into goal constraints with deviational variables, allowing for prioritization and balancing of goals.

Step 1: Convert Soft Constraints and Objectives into Goal Constraints

(c) Mall Stores Allocation Goal
  • Original Constraint:
    x1+x2+x30.8(x1+x2+x3+x4+x5)x_1 + x_2 + x_3 \geq 0.8(x_1 + x_2 + x_3 + x_4 + x_5)
  • Rewriting as Goal Constraint:
    x1+x2+x3+d1d1+=0.8(x1+x2+x3+x4+x5)x_1 + x_2 + x_3 + d_1^- - d_1^+ = 0.8(x_1 + x_2 + x_3 + x_4 + x_5)
  • Simplify:
    0.2(x1+x2+x3)0.8x40.8x5+d1d1+=00.2(x_1 + x_2 + x_3) - 0.8 x_4 - 0.8 x_5 + d_1^- - d_1^+ = 0
  • Contribution to Objective Function: Minimize d1d_1^- (underachievement).
(d) Equal Allocation Among Mall Stores

For Store 1 and Store 2:

  • Original Constraint:
    x1=x2x_1 = x_2
  • Rewriting as Goal Constraint:
    x1x2+d2d2+=0x_1 - x_2 + d_2^- - d_2^+ = 0
  • Contribution to Objective Function: Minimize d2+d2+d_2^- + d_2^+ (total deviation).

For Store 1 and Store 3:

  • Original Constraint:
    x1=x3x_1 = x_3
  • Rewriting as Goal Constraint:
    x1x3+d3d3+=0x_1 - x_3 + d_3^- - d_3^+ = 0
  • Contribution to Objective Function: Minimize d3+d3+d_3^- + d_3^+ .
(e) Minimize Expected Loss Due to Theft
  • Original Objective Function:
    Minimize Z=0.001x1+0.001x2+0.09x3+0.02x4+0.03x5\text{Minimize } Z = 0.001 x_1 + 0.001 x_2 + 0.09 x_3 + 0.02 x_4 + 0.03 x_5
  • Setting a Target (Aspiration Level): Aim for minimal expected loss (e.g., Z=0Z = 0 , recognizing it may not be attainable).
  • Rewriting as Goal Constraint:
    0.001x1+0.001x2+0.09x3+0.02x4+0.03x5+d5d5+=00.001 x_1 + 0.001 x_2 + 0.09 x_3 + 0.02 x_4 + 0.03 x_5 + d_5^- - d_5^+ = 0
  • Contribution to Objective Function: Minimize d5+d_5^+ (overachievement).

Step 2: Assign Weights Based on Goal Priorities

  • Priority 1 (Minimize Expected Loss): Weight W5=50W_5 = 50 (25 times more important than Goal 2).
  • Priority 2 (Equal Allocation): Weight W2=W3=2W_2 = W_3 = 2 (2 times more important than Goal 3).
  • Priority 3 (Mall Stores Allocation): Weight W1=1W_1 = 1 .

Step 3: Formulate the Goal Programming Mathematical Model

Decision Variables
  • xi0x_i \geq 0 : Allocation to Store ii .
  • dj0,dj+0d_j^- \geq 0, \quad d_j^+ \geq 0 : Deviational variables for Goal jj .
Objective Function

Minimize the weighted sum of deviational variables:

Minimize Z=50d5++2(d2+d2++d3+d3+)+d1 \text{Minimize } Z = 50 d_5^+ + 2 (d_2^- + d_2^+ + d_3^- + d_3^+) + d_1^-
Constraints
  1. Hard Constraints (Absolutely Necessary):
  • Total Allocation Bounds:
    1000x1+x2+x3+x4+x512001000 \leq x_1 + x_2 + x_3 + x_4 + x_5 \leq 1200
  • Minimum Allocation to Store 5:
    x5300x_5 \geq 300
  1. Goal Constraints:
  • Mall Stores Allocation (c):
    0.2x1+0.2x2+0.2x30.8x40.8x5+d1d1+=00.2 x_1 + 0.2 x_2 + 0.2 x_3 - 0.8 x_4 - 0.8 x_5 + d_1^- - d_1^+ = 0
  • Equal Allocation Between Stores 1 and 2 (d):
    x1x2+d2d2+=0x_1 - x_2 + d_2^- - d_2^+ = 0
  • Equal Allocation Between Stores 1 and 3 (d):
    x1x3+d3d3+=0x_1 - x_3 + d_3^- - d_3^+ = 0
  • Expected Loss Minimization (e):
    0.001x1+0.001x2+0.09x3+0.02x4+0.03x5+d5d5+=00.001 x_1 + 0.001 x_2 + 0.09 x_3 + 0.02 x_4 + 0.03 x_5 + d_5^- - d_5^+ = 0
  1. Non-Negativity Constraints:
xi0,dj0,dj+0 x_i \geq 0, \qquad d_j^- \geq 0, \qquad d_j^+ \geq 0

Step 4: Solve the Goal Programming Model

Using an appropriate optimization solver, we find the values of xix_i and dj±d_j^\pm that minimize ZZ .

Interpretation of Results

Assuming the optimal solution is:

  • Allocations:

    • x1=466.69x_1 = 466.69 carats
    • x2=233.31x_2 = 233.31 carats
    • x3=0x_3 = 0 carats
    • x4=0x_4 = 0 carats
    • x5=300x_5 = 300 carats
  • Total Allocation:

    x1+x2+x3+x4+x5=1000 carats (meeting the minimum requirement) x_1 + x_2 + x_3 + x_4 + x_5 = 1000 \text{ carats (meeting the minimum requirement)}
  • Deviational Variables:

    • d1=Positive valued_1^- = \text{Positive value} : Indicating underachievement of the mall stores allocation goal.
    • d1+=0d_1^+ = 0 .
    • d2,d2+,d3,d3+=Positive valuesd_2^-, d_2^+, d_3^-, d_3^+ = \text{Positive values} : Indicating deviations from equal allocation among mall stores.
    • d5+=9.7d_5^+ = 9.7 : Overachievement of expected loss.
    • d5=0d_5^- = 0 .

Advantages of Goal Programming in This Example

  • Feasibility: Provides a solution where the traditional model may be infeasible due to conflicting constraints.
  • Prioritization: Allows the decision-maker to focus on the most critical objectives.
  • Flexibility: Accommodates deviations from less critical goals to achieve the most important ones.
  • Tunability: Users can adjust weights to explore different trade-offs without altering the problem instance.

Conclusion

Goal programming is a valuable method for addressing complex decision-making problems involving multiple objectives and soft constraints. By incorporating deviational variables and prioritizing goals, it allows decision-makers to find feasible solutions without altering the original problem instance.

Key Takeaways:

  • Translates Soft Constraints into Goal Constraints: Allows for controlled deviations, reflecting real-world flexibility.
  • Balances Conflicting Objectives: Prioritizes goals according to their importance.
  • Maintains Feasibility: Provides solutions even when traditional models fail due to infeasibility.
  • Adjustable: Enables fine-tuning of models through weight adjustments without changing the problem itself.

Goal programming empowers decision-makers to find practical solutions in complex environments, aligning closely with their objectives and the realities of the constraints they face.

Reference:

(Springer Texts In Business And Economics) H. A. Eiselt, Carl-Louis Sandblom - Operations Research_ A Model-Based Approach-Springer (2022)

Top comments (0)