Generated on: Thu Mar 29 07:46:58 PDT 2012 for custom file set
// doxy/ or-tools/ src/ constraint_solver/

operations_research::ChangeValue Class Reference

ChangeValue Operators. More...

#include <constraint_solveri.h>

Inheritance diagram for operations_research::ChangeValue:

operations_research::IntVarLocalSearchOperator operations_research::LocalSearchOperator operations_research::BaseObject

List of all members.

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.


Detailed Description

ChangeValue Operators.

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.


Constructor & Destructor Documentation

operations_research::ChangeValue::ChangeValue ( const IntVar *const *  vars,
int  size 
)

ChangeValue Operators.

Definition at line 592 of file local_search.cc.

operations_research::ChangeValue::~ChangeValue (  )  [virtual]

Definition at line 595 of file local_search.cc.


Member Function Documentation

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.


The documentation for this class was generated from the following files: