You’re describing a two-stage (or multi-level) combinatorial optimization problem with a master assignment problem and a complex 2D packing subproblem (with priorities and rectilinear distance weights, solved as a MILP). This is a classic decomposition scenario, often seen in logistics, transportation, and military applications.
Here’s a structured approach to solving this kind of problem, with references to established techniques and some practical advice:
1. Problem Structure
- Master Problem: Assign items (or item groups) to bins/vessels (assignment variables).
- Subproblem: For each assignment, solve a prioritized 2D packing MILP to check feasibility and compute the objective (e.g., cost, priority-weighted distance).
- Goal: Find the assignment that, when packed optimally, yields the best overall objective.
2. Solution Techniques
A. Decomposition Approaches
i. Benders Decomposition (Logic-based Benders)
- Master: Assignment variables (which items to which bins).
- Subproblem: For each assignment, solve the 2D packing MILP.
- Process:
- Solve the master problem (relaxed, without packing constraints).
- For each assignment, solve the packing subproblem.
- If infeasible, generate a Benders cut (no-good cut) to eliminate that assignment or class of assignments.
- If feasible, return the cost to the master.
- Iterate until convergence.
- References:
- Hooker, J. N. (2000). Logic-Based Methods for Optimization: Combining Optimization and Constraint Satisfaction.
- Codato & Fischetti (2006). "Combinatorial Benders’ Cuts for Mixed-Integer Linear Programming".
ii. Column Generation (Branch-and-Price)
- Master: Set partitioning/covering problem, where each column is a feasible packing of a subset of items in a bin.
- Subproblem: Generate new columns (packings) with negative reduced cost by solving the packing MILP.
- Process:
- Start with a small set of feasible packings.
- Solve the master LP.
- Use dual prices to guide the subproblem (pricing problem) to generate new packings.
- Add new columns and repeat.
- Branch-and-price for integrality.
- References:
- Desrosiers & Lübbecke (2005). "A Primer in Column Generation".
- Gilmore & Gomory (1961). "A Linear Programming Approach to the Cutting-Stock Problem".
iii. Lagrangian Relaxation
- Relax the coupling constraints (e.g., assignment constraints) and dualize them.
- Solve the relaxed problem iteratively, updating multipliers.
- Useful for large-scale problems, but may not always yield feasible solutions directly.
B. Metaheuristics (for Large/Complex Instances)
- Large Neighborhood Search (LNS): Iteratively reassign and repack subsets of items.
- Genetic Algorithms: Chromosomes represent assignments; fitness is evaluated by solving the packing subproblem.
- Simulated Annealing/Tabu Search: Explore assignment space, using the packing MILP as a fitness function.
C. Practical Implementation Tips
- Parallelization: Since the packing subproblems are independent for each assignment, solve them in parallel.
- Warm-starting: Use solutions from similar assignments to warm-start the MILP solver.
- Cutting Planes: For infeasible assignments, generate strong cuts to prune the search space.
- Heuristics: Use fast heuristics to estimate packing feasibility before solving the full MILP.
3. Recommended Steps for Your Case
-
Formulate the Master Assignment Problem:
- Variables: ( x_{ij} ) = 1 if item ( i ) assigned to bin ( j ).
- Constraints: Each item assigned to one bin, bin capacity, etc.
-
Define the Packing Subproblem:
- For each bin, given assigned items, solve the prioritized 2D packing MILP.
-
Choose a Decomposition Approach:
- Logic-based Benders is often best when the subproblem is a complex MILP (like your prioritized packing).
- Column Generation is powerful if you can enumerate/generate feasible packings efficiently.
-
Implement Iterative Solution:
- Solve master, check subproblems, add cuts/columns, repeat.
-
Leverage Parallel Computing:
- Subproblems are embarrassingly parallel.
4. References and Further Reading
- Logic-Based Benders Decomposition:
- Hooker, J. N. (2005). "A Hybrid Method for Planning and Scheduling". Constraints.
- Column Generation:
- Desrosiers, J., & Lübbecke, M. E. (2005). "A Primer in Column Generation". In Column Generation (pp. 1-32). Springer.
- MILP for 2D Packing:
- Martello, S., & Vigo, D. (1998). "Exact Solution of the Two-Dimensional Finite Bin Packing Problem". Management Science.
5. Summary Table
| Approach | Master Problem | Subproblem | When to Use? |
|---|
| Logic-based Benders | Assignment | Packing MILP | Complex subproblems |
| Column Generation | Set partitioning | Packing MILP | Many feasible packings |
| Lagrangian Relaxation | Assignment | Packing MILP | Large-scale, loose coupling |
| Metaheuristics | Assignment | Packing MILP | Very large/complex cases |
If you want more concrete pseudocode, code examples, or help with a specific solver (e.g., Gurobi, CPLEX, or Python libraries), let me know!