Generated on: Thu Mar 29 07:46:58 PDT 2012 for custom file set | ||
|
||
// doxy/ or-tools/ src/ constraint_solver/ |
#include <constraint_solveri.h>
Public Member Functions | |
LocalSearchOperator () | |
virtual | ~LocalSearchOperator () |
virtual bool | MakeNextNeighbor (Assignment *delta, Assignment *deltadelta)=0 |
virtual void | Start (const Assignment *assignment)=0 |
Local search operators The base class for all local search operators. A local search operator is an object which defines the neighborhood of a solution; in other words, a neighborhood is the set of solutions which can be reached from a given solution using an operator. The behavior of the LocalSearchOperator class is similar to the one of an iterator. The operator is synchronized with an assignment (gives the current values of the variables); this is done in the Start() method. Then one can iterate over the neighbors using the MakeNextNeighbor method. This method returns an assignment which represents the incremental changes to the curent solution. It also returns a second assignment representing the changes to the last solution defined by the neighborhood operator; this assignment is empty is the neighborhood operator cannot track this information.
Definition at line 796 of file constraint_solveri.h.
operations_research::LocalSearchOperator::LocalSearchOperator | ( | ) | [inline] |
Definition at line 798 of file constraint_solveri.h.
virtual operations_research::LocalSearchOperator::~LocalSearchOperator | ( | ) | [inline, virtual] |
Definition at line 799 of file constraint_solveri.h.
virtual bool operations_research::LocalSearchOperator::MakeNextNeighbor | ( | Assignment * | delta, | |
Assignment * | deltadelta | |||
) | [pure virtual] |
virtual void operations_research::LocalSearchOperator::Start | ( | const Assignment * | assignment | ) | [pure virtual] |