6. Primal heuristics Flashcards
Construction heuristics
produce a feasible solution from scratch
Improvement heuristics
try to improve a given feasible solution (x, y)
Truncated MIP
- Run a B&B algorithm for a fixed amount of time
- The best solution obtained when the time limit is reached is the MIP heuristic solution
- Used both as construction and improvement heuristic
Diving
- At each node, all the y variables taking value 0 or 1 in the LP solution are frozen at that value
- Then, create one branch by fixing one of the y variables that is fractional to an integer value
LP-driven dives
- use the latest LP solution (ˆx, yˆ) and fix a variable closest to integer
- Set yk = 0 if yˆk ≤ 0.5 and yk = 1 otherwise
-> Construction heuristic
IP-driven or guided dives
- use the incumbent solution (x^, y^)
- Choose the variable yk to be fixed next
- The branching direction is fixed by setting y_k = y_k^_
→ Improvement heuristic
LP-and-Fix or Cut-and-Fix
1 Solve the LP relaxation of the (sub)problem to be solved and let the solution be represented by (ˆx, yˆ)
2 Solve the following Mixed Integer Program called MIP^LP−FIX
- The highlighted constraint fixes the variables which resulted integer in the solution of the LP relaxation
Relax-and-Fix
iteratively solve a MIP in which some variables are fixed to specific values (obtained from previous iterations), other are required to be binary, and other are relaxed
Relax-and-Fix Notation
R: number of disjoint sets in which we divide our variables
Q: the disjoint sets of variables
U: subsets of variables
Relax-and-Fix 1. iteration
- binary restrictions only on the variables belonging to the first group Q1 and on the variables belonging to U1 (the first subset containing one or more of the next variables groups)
- all the remaining variables (not belonging to these two previous groups) are relaxed (i.e., in the solution of this iteration, they can assume continuous values between 0 and 1)
Relax-and-Fix 2. iteration
- fix the values of the variables of the groups r from the previous iterations to the values obtained in the previous solution (if r = 2, we fix the variables belonging to Q1 to the values obtained from the solution r = 1, i.e., solution from MIP1)
- impose the binary restrictions only on the variables belonging to the group Qr and on the variables belonging to Ur (the subset containing one or more of the next variables groups)
- all the remaining variables (not belonging to any of the previous groups) are relaxed (in the solution of this iteration, they can assume continuous values between 0 and 1)
Relax-and-Fix 3. iteration
MIP in which none of the variables are relaxed
Fig. Example of iterations during the relax and fix heuristic
Fig. Production planning problem with 200 time periods
Improvement heuristics
- try to improve a given feasible solution (x, y)
1 Relaxation induced neighborhood search (RINS)
2 Local branching (LB)
3 Combinations
4 Exchange (EXCH)