C++ Reference
C++ Reference: Routing
Detailed Description
Definition at line 1156 of file constraint_solveri.h.
Public Member Functions | |
SequenceVarLocalSearchOperator () | |
SequenceVarLocalSearchOperator (const std::vector< SequenceVar * > &vars) | |
~SequenceVarLocalSearchOperator () override | |
const std::vector< int > & | Sequence (int64 index) const |
Returns the value in the current assignment of the variable of given index. More... | |
const std::vector< int > & | OldSequence (int64 index) const |
void | SetForwardSequence (int64 index, const std::vector< int > &value) |
void | SetBackwardSequence (int64 index, const std::vector< int > &value) |
bool | HoldsDelta () const override |
void | Start (const Assignment *assignment) override |
This method should not be overridden. More... | |
virtual bool | IsIncremental () const |
int | Size () const |
const Val & | Value (int64 index) const |
Returns the value in the current assignment of the variable of given index. More... | |
V * | Var (int64 index) const |
Returns the variable of given index. More... | |
virtual bool | SkipUnchanged (int index) const |
const Val & | OldValue (int64 index) const |
void | SetValue (int64 index, const Val &value) |
bool | Activated (int64 index) const |
void | Activate (int64 index) |
void | Deactivate (int64 index) |
bool | ApplyChanges (Assignment *delta, Assignment *deltadelta) const |
void | RevertChanges (bool incremental) |
void | AddVars (const std::vector< V * > &vars) |
virtual void | OnStart () |
Called by Start() after synchronizing the operator with the current assignment. More... | |
virtual bool | MakeNextNeighbor (Assignment *delta, Assignment *deltadelta)=0 |
virtual void | Reset () |
virtual const LocalSearchOperator * | Self () const |
virtual bool | HasFragments () const |
virtual std::string | DebugString () const |
Protected Member Functions | |
void | MarkChange (int64 index) |
OnStart() should really be protected, but then SWIG doesn't see it. More... | |
Protected Attributes | |
std::vector< std::vector< int > > | backward_values_ |
std::vector< V * > | vars_ |
std::vector< Val > | values_ |
std::vector< Val > | old_values_ |
std::vector< Val > | prev_values_ |
std::vector< int > | assignment_indices_ |
Bitset64 | activated_ |
Bitset64 | was_activated_ |
SparseBitset | changes_ |
SparseBitset | delta_changes_ |
bool | cleared_ |
Handler | var_handler_ |
Constructor & Destructor Documentation
◆ SequenceVarLocalSearchOperator() [1/2]
|
inline |
Definition at line 1159 of file constraint_solveri.h.
◆ SequenceVarLocalSearchOperator() [2/2]
|
inlineexplicit |
Definition at line 1160 of file constraint_solveri.h.
◆ ~SequenceVarLocalSearchOperator()
|
inlineoverride |
Definition at line 1165 of file constraint_solveri.h.
Member Function Documentation
◆ Activate()
|
inlineinherited |
Definition at line 856 of file constraint_solveri.h.
◆ Activated()
|
inlineinherited |
Definition at line 855 of file constraint_solveri.h.
◆ AddVars()
|
inlineinherited |
Definition at line 901 of file constraint_solveri.h.
◆ ApplyChanges()
|
inlineinherited |
Definition at line 864 of file constraint_solveri.h.
◆ Deactivate()
|
inlineinherited |
Definition at line 860 of file constraint_solveri.h.
◆ DebugString()
|
inlinevirtualinherited |
Reimplemented in ExchangeSubtrip, RelocateSubtrip, PairNodeSwapActiveOperator< swap_first >, RelocateExpensiveChain, FilteredHeuristicCloseNodesLNSOperator, FilteredHeuristicExpensiveChainLNSOperator, RelocatePathAndHeuristicInsertUnperformedOperator, FilteredHeuristicPathLNSOperator, IndexPairSwapActiveOperator, SwapIndexPairOperator, PairExchangeRelocateOperator, PairExchangeOperator, LightPairRelocateOperator, PairRelocateOperator, MakePairInactiveOperator, MakePairActiveOperator, MakeRelocateNeighborsOperator, CPFeasibilityFilter, IntVarFilteredDecisionBuilder, GlobalVehicleBreaksConstraint, ArrayWithOffset< T >, SearchLog, BooleanVar, LocalSearchMonitor, PropagationMonitor, LocalSearchFilterManager, DelayedCallMethod2< T, P, Q >, DelayedCallMethod1< T, P >, DelayedCallMethod0< T >, CallMethod3< T, P, Q, R >, CallMethod2< T, P, Q >, CallMethod1< T, P >, CallMethod0< T >, Pack, Assignment, SequenceVar, RegularLimit, SearchLimit, OptimizeVar, SolutionCollector, IntVarIterator, Constraint, Demon, DecisionBuilder, Decision, and PropagationBaseObject.
Definition at line 3156 of file constraint_solver.h.
◆ HasFragments()
|
inlinevirtualinherited |
Reimplemented in BaseLns.
Definition at line 808 of file constraint_solveri.h.
◆ HoldsDelta()
|
inlineoverridevirtualinherited |
Reimplemented from LocalSearchOperator.
Definition at line 823 of file constraint_solveri.h.
◆ IsIncremental()
|
inlinevirtualinherited |
Definition at line 839 of file constraint_solveri.h.
◆ MakeNextNeighbor()
|
pure virtualinherited |
◆ MarkChange()
|
inlineprotectedinherited |
OnStart() should really be protected, but then SWIG doesn't see it.
So we make it public, but only subclasses should access to it (to override it).
Definition at line 925 of file constraint_solveri.h.
◆ OldSequence()
|
inline |
Definition at line 1169 of file constraint_solveri.h.
◆ OldValue()
|
inlineinherited |
Definition at line 850 of file constraint_solveri.h.
◆ OnStart()
|
inlinevirtualinherited |
Called by Start() after synchronizing the operator with the current assignment.
Should be overridden instead of Start() to avoid calling VarLocalSearchOperator::Start explicitly.
Reimplemented in SwapIndexPairOperator.
Definition at line 920 of file constraint_solveri.h.
◆ Reset()
|
inlinevirtualinherited |
Reimplemented in PathOperator.
Definition at line 804 of file constraint_solveri.h.
◆ RevertChanges()
|
inlineinherited |
Definition at line 888 of file constraint_solveri.h.
◆ Self()
|
inlinevirtualinherited |
Definition at line 806 of file constraint_solveri.h.
◆ Sequence()
|
inline |
Returns the value in the current assignment of the variable of given index.
Definition at line 1168 of file constraint_solveri.h.
◆ SetBackwardSequence()
|
inline |
Definition at line 1175 of file constraint_solveri.h.
◆ SetForwardSequence()
|
inline |
Definition at line 1172 of file constraint_solveri.h.
◆ SetValue()
|
inlineinherited |
Definition at line 851 of file constraint_solveri.h.
◆ Size()
|
inlineinherited |
Definition at line 840 of file constraint_solveri.h.
◆ SkipUnchanged()
|
inlinevirtualinherited |
Reimplemented in PathOperator.
Definition at line 849 of file constraint_solveri.h.
◆ Start()
|
inlineoverridevirtualinherited |
This method should not be overridden.
Override OnStart() instead which is called before exiting this method.
Implements LocalSearchOperator.
Definition at line 826 of file constraint_solveri.h.
◆ Value()
|
inlineinherited |
Returns the value in the current assignment of the variable of given index.
Definition at line 843 of file constraint_solveri.h.
◆ Var()
|
inlineinherited |
Returns the variable of given index.
Definition at line 848 of file constraint_solveri.h.
Member Data Documentation
◆ activated_
|
protectedinherited |
Definition at line 935 of file constraint_solveri.h.
◆ assignment_indices_
|
mutableprotectedinherited |
Definition at line 934 of file constraint_solveri.h.
◆ backward_values_
|
protected |
Definition at line 1183 of file constraint_solveri.h.
◆ changes_
|
protectedinherited |
Definition at line 937 of file constraint_solveri.h.
◆ cleared_
|
protectedinherited |
Definition at line 939 of file constraint_solveri.h.
◆ delta_changes_
|
protectedinherited |
Definition at line 938 of file constraint_solveri.h.
◆ old_values_
|
protectedinherited |
Definition at line 932 of file constraint_solveri.h.
◆ prev_values_
|
protectedinherited |
Definition at line 933 of file constraint_solveri.h.
◆ values_
|
protectedinherited |
Definition at line 931 of file constraint_solveri.h.
◆ var_handler_
|
protectedinherited |
Definition at line 940 of file constraint_solveri.h.
◆ vars_
|
protectedinherited |
Definition at line 930 of file constraint_solveri.h.
◆ was_activated_
|
protectedinherited |
Definition at line 936 of file constraint_solveri.h.
The documentation for this class was generated from the following file: