IBM ILOG Solver User's Manual > Local Search > Basic Local Search > What is local search? > A simple local search procedure |
A simple local search procedure |
INDEX
![]() |
The combination of solutions and goals offers a simple way of implementing local search procedures. The basic process is to change the solution and then test it against the problem constraints. The algorithm is as follows:
currCost
.
cost >= currCost
, revert the change.
In this way, we only move to legal improving solutions. We reject solutions that do not improve the cost or that violate problem constraints. This is known as a greedy improvement algorithm, as it only makes changes to the solution that improve the cost.
In what follows, we will apply this technique to a modified version of the map coloring presented in Chapter 5, Using Objectives: Map Coloring with Minimum Colors.
© Copyright IBM Corp. 1987, 2009. Legal terms. | PREVIOUS NEXT |