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 | |
ChangeValue (const IntVar *const *vars, int size) | |
ChangeValue Operators. | |
virtual | ~ChangeValue () |
virtual int64 | ModifyValue (int64 index, int64 value)=0 |
Protected Member Functions | |
virtual bool | MakeOneNeighbor () |
This method should not be overridden. Override ModifyValue() instead. |
Defines operators which change the value of variables; each neighbor corresponds to *one* modified variable. Sub-classes have to define ModifyValue which determines what the new variable value is going to be (given the current value and the variable).
Definition at line 982 of file constraint_solveri.h.
operations_research::ChangeValue::ChangeValue | ( | const IntVar *const * | vars, | |
int | size | |||
) |
operations_research::ChangeValue::~ChangeValue | ( | ) | [virtual] |
Definition at line 595 of file local_search.cc.
virtual int64 operations_research::ChangeValue::ModifyValue | ( | int64 | index, | |
int64 | value | |||
) | [pure virtual] |
bool operations_research::ChangeValue::MakeOneNeighbor | ( | ) | [protected, virtual] |
This method should not be overridden. Override ModifyValue() instead.
Reimplemented from operations_research::IntVarLocalSearchOperator.
Definition at line 597 of file local_search.cc.