11 #ifndef SWIG_main_WRAP_H_ 12 #define SWIG_main_WRAP_H_ 17 void swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls,
bool swig_mem_own,
bool weak_global);
35 void swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls,
bool swig_mem_own,
bool weak_global);
57 void swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls,
bool swig_mem_own,
bool weak_global);
73 void swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls,
bool swig_mem_own,
bool weak_global);
112 void swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls,
bool swig_mem_own,
bool weak_global);
118 virtual void Reset();
132 void swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls,
bool swig_mem_own,
bool weak_global);
139 virtual void Reset();
160 void swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls,
bool swig_mem_own,
bool weak_global);
167 virtual void Reset();
184 void swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls,
bool swig_mem_own,
bool weak_global);
190 virtual void Reset();
207 void swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls,
bool swig_mem_own,
bool weak_global);
213 virtual void Reset();
235 void swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls,
bool swig_mem_own,
bool weak_global);
237 SwigDirector_PathOperator(JNIEnv *jenv, std::vector< operations_research::IntVar * >
const &next_vars, std::vector< operations_research::IntVar * >
const &path_vars,
int number_of_base_nodes,
bool skip_locally_optimal_paths,
bool accept_path_end_base, std::function<
int (int64_t) > start_empty_path_class);
242 virtual void Reset();
292 void swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls,
bool swig_mem_own,
bool weak_global);
302 virtual void Reset();
316 void swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls,
bool swig_mem_own,
bool weak_global);
332 void swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls,
bool swig_mem_own,
bool weak_global);
341 virtual void Reset();
359 void swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls,
bool swig_mem_own,
bool weak_global);
bool swig_overrides(int n)
SwigDirector_BaseLns(std::vector< operations_research::IntVar * > const &vars)
virtual std::string DebugString() const
virtual void RefuteDecision(operations_research::Decision *const d)
Before refuting the decision.
This is the base class for building an Lns operator.
virtual void Revert()
Cancels the changes made by the last Relax()/Accept() calls.
virtual bool HoldsDelta() const
virtual bool HoldsDelta() const
virtual int64_t GetSynchronizedObjectiveValue() const
Objective value from last time Synchronize() was called.
virtual operations_research::Decision * Next(operations_research::Solver *const s)
This is the main method of the decision builder class.
void swig_connect_director(SWIG_Callback0_t callbackToString, SWIG_Callback1_t callbackMakeNextNeighbor, SWIG_Callback2_t callbackStart, SWIG_Callback3_t callbackReset, SWIG_Callback4_t callbackHasFragments, SWIG_Callback5_t callbackHoldsDelta)
Set of parameters used to configure how the neighnorhood is traversed.
virtual ~SwigDirector_LocalSearchFilterManager()
virtual bool MakeNextNeighbor(operations_research::Assignment *delta, operations_research::Assignment *deltadelta)
Redefines MakeNextNeighbor to export a simpler interface.
virtual void SetNextBaseToIncrementSwigPublic(int64_t base_index)
virtual std::string DebugString() const
The base class for all local search operators.
virtual ~SwigDirector_LocalSearchOperator()
virtual bool IsIncremental() const
virtual int ProgressPercent()
Returns a percentage representing the propress of the search before reaching limits.
virtual bool InitPosition() const
Returns true if the operator needs to restart its initial position at each call to Start()
virtual bool ConsiderAlternatives(int64_t base_index) const
Indicates if alternatives should be considered when iterating over base nodes.
virtual void OnSynchronize(operations_research::Assignment const *delta)
SwigDirector_LocalSearchFilter()
bool swig_overrides(int n)
virtual void Reset()
Sets the filter to empty solution.
Base class of the local search operators dedicated to path modifications (a path is a set of nodes li...
virtual bool Accept(operations_research::Assignment const *delta, operations_research::Assignment const *deltadelta, int64_t objective_min, int64_t objective_max)
Accepts a "delta" given the assignment with which the filter has been synchronized; the delta holds t...
virtual void EndInitialPropagation()
After the initial propagation.
SwigDirector_DecisionBuilder()
virtual bool ConsiderAlternativesSwigPublic(int64_t base_index) const
bool swig_overrides(int n)
virtual void PeriodicCheck()
Periodic call to check limits in long running methods.
virtual bool MakeNextNeighbor(operations_research::Assignment *delta, operations_research::Assignment *deltadelta)
Redefines MakeNextNeighbor to export a simpler interface.
bool swig_overrides(int n)
virtual void Start(operations_research::Assignment const *assignment)
This method should not be overridden.
virtual void Start(operations_research::Assignment const *assignment)
virtual void Revert()
Cancels the changes made by the last Relax()/Accept() calls.
SwigDirector_ChangeValue(std::vector< operations_research::IntVar * > const &vars)
void swig_connect_director(SWIG_Callback0_t callbackToString, SWIG_Callback1_t callbackRelax, SWIG_Callback2_t callbackCommit, SWIG_Callback3_t callbackAccept, SWIG_Callback4_t callbackIsIncremental, SWIG_Callback5_t callbackRevert, SWIG_Callback6_t callbackReset, SWIG_Callback7_t callbackGetSynchronizedObjectiveValue, SWIG_Callback8_t callbackGetAcceptedObjectiveValue, SWIG_Callback9_t callbackOnSynchronize)
virtual bool HoldsDelta() const
virtual void EndNextDecision(operations_research::DecisionBuilder *const b, operations_research::Decision *const d)
After calling DecisionBuilder::Next, along with the returned decision.
virtual ~SwigDirector_SequenceVarLocalSearchOperator()
Swig::BoolArray< 15 > swig_override
virtual bool HoldsDelta() const
virtual std::string DebugString() const
virtual bool IsIncremental() const
A DecisionVisitor is used to inspect a decision.
void swig_connect_director(SWIG_Callback0_t callbackToString, SWIG_Callback1_t callbackReset, SWIG_Callback2_t callbackHasFragments, SWIG_Callback3_t callbackHoldsDelta, SWIG_Callback4_t callbackIsIncremental, SWIG_Callback5_t callbackOnStart, SWIG_Callback6_t callbackMakeOneNeighbor)
void swig_connect_director(SWIG_Callback0_t callbackToString, SWIG_Callback1_t callbackReset, SWIG_Callback2_t callbackHasFragments, SWIG_Callback3_t callbackHoldsDelta, SWIG_Callback4_t callbackIsIncremental, SWIG_Callback5_t callbackInitFragments, SWIG_Callback6_t callbackNextFragment)
virtual bool MakeNextNeighbor(operations_research::Assignment *delta, operations_research::Assignment *deltadelta)
virtual void OnSynchronize(const Assignment *delta)
bool swig_overrides(int n)
virtual void VisitUnknownDecision()
virtual void Synchronize(operations_research::Assignment const *assignment, operations_research::Assignment const *delta)
Synchronizes the filter with the current solution, delta being the difference with the solution passe...
virtual void OnNodeInitialization()
Called by OnStart() after initializing node information.
virtual void OnStart()
Called by Start() after synchronizing the operator with the current assignment.
Swig::BoolArray< 25 > swig_override
virtual bool MakeOneNeighbor()
This method should not be overridden. Override ModifyValue() instead.
virtual bool HoldsDelta() const
virtual bool HasFragments() const
Swig::BoolArray< 2 > swig_override
void swig_connect_director(SWIG_Callback0_t callbackToString, SWIG_Callback1_t callbackReset, SWIG_Callback2_t callbackHasFragments, SWIG_Callback3_t callbackHoldsDelta, SWIG_Callback4_t callbackIsIncremental, SWIG_Callback5_t callbackOnStart, SWIG_Callback6_t callbackMakeOneNeighbor, SWIG_Callback7_t callbackModifyValue)
Swig::BoolArray< 7 > swig_override
virtual void Start(operations_research::Assignment const *assignment)
Swig::BoolArray< 4 > swig_override
virtual void VisitSetVariableValue(operations_research::IntVar *const var, int64_t value)
virtual void Commit(operations_research::Assignment const *delta, operations_research::Assignment const *deltadelta)
Dual of Relax(), lets the filter know that the delta was accepted.
virtual bool HasFragments() const
bool swig_overrides(int n)
virtual void BeginFail()
Just when the failure occurs.
A DecisionBuilder is responsible for creating the search tree.
virtual void OnNodeInitialization()
Called by OnStart() after initializing node information.
virtual bool MakeOneNeighborSwigPublic()
virtual bool RestartAtPathStartOnSynchronizeSwigPublic()
Defines operators which change the value of variables; each neighbor corresponds to one modified vari...
virtual void AcceptUncheckedNeighbor()
After accepting an unchecked neighbor during local search.
virtual ~SwigDirector_SymmetryBreaker()
virtual bool MakeOneNeighbor()
Creates a new neighbor.
virtual bool HasFragments() const
virtual bool SkipUnchanged(int index) const
Interval variables are often used in scheduling.
Swig::BoolArray< 10 > swig_override
virtual bool HasFragments() const
virtual ~SwigDirector_PathOperator()
Swig::BoolArray< 7 > swig_override
virtual void Accept(operations_research::ModelVisitor *const visitor) const
Accepts the given model visitor.
virtual std::string DebugString() const
Swig::BoolArray< 7 > swig_override
SwigDirector_LocalSearchFilterManager(std::vector< operations_research::LocalSearchFilterManager::FilterEvent > filter_events)
virtual void VisitScheduleOrPostpone(operations_research::IntervalVar *const var, int64_t est)
virtual bool InitPositionSwigPublic() const
virtual void OnStart()
Called by Start() after synchronizing the operator with the current assignment.
virtual bool OnSamePathAsPreviousBaseSwigPublic(int64_t base_index)
virtual std::string DebugString() const
virtual ~SwigDirector_LocalSearchFilter()
virtual ~SwigDirector_DecisionVisitor()
virtual bool HasFragments() const
virtual bool AcceptSolution()
This method is called when a solution is found.
virtual bool IsIncremental() const
virtual void VisitRankFirstInterval(operations_research::SequenceVar *const sequence, int index)
virtual ~SwigDirector_SearchMonitor()
bool swig_overrides(int n)
virtual bool IsUncheckedSolutionLimitReached()
Returns true if the limit of solutions has been reached including unchecked solutions.
virtual std::string DebugString() const
virtual void OnStart()
Called by Start() after synchronizing the operator with the current assignment.
Swig::BoolArray< 10 > swig_override
virtual void VisitRankFirstInterval(operations_research::SequenceVar *const sequence, int index)
virtual std::string DebugString() const
Filter manager: when a move is made, filters are executed to decide whether the solution is feasible ...
virtual bool IsIncremental() const
virtual void Apply(operations_research::Solver *const s)
Apply will be called first when the decision is executed.
virtual void Start(operations_research::Assignment const *assignment)
virtual bool IsIncremental() const
virtual void VisitScheduleOrExpedite(operations_research::IntervalVar *const var, int64_t est)
virtual bool SkipUnchanged(int index) const
SwigDirector_SymmetryBreaker()
virtual void Relax(operations_research::Assignment const *delta, operations_research::Assignment const *deltadelta)
Lets the filter know what delta and deltadelta will be passed in the next Accept().
virtual int64_t GetBaseNodeRestartPositionSwigPublic(int base_index)
bool swig_overrides(int n)
virtual ~SwigDirector_BaseLns()
void swig_connect_director(SWIG_Callback0_t callbackToString, SWIG_Callback1_t callbackReset, SWIG_Callback2_t callbackHasFragments, SWIG_Callback3_t callbackHoldsDelta, SWIG_Callback4_t callbackIsIncremental, SWIG_Callback5_t callbackOnStart, SWIG_Callback6_t callbackMakeOneNeighbor, SWIG_Callback7_t callbackMakeNeighbor, SWIG_Callback8_t callbackOnNodeInitialization, SWIG_Callback9_t callbackRestartAtPathStartOnSynchronize, SWIG_Callback10_t callbackOnSamePathAsPreviousBase, SWIG_Callback11_t callbackGetBaseNodeRestartPosition, SWIG_Callback12_t callbackSetNextBaseToIncrement, SWIG_Callback13_t callbackConsiderAlternatives, SWIG_Callback14_t callbackInitPosition)
virtual int64_t GetAcceptedObjectiveValue() const
Objective value from the last time Accept() was called and returned true.
virtual std::string DebugString() const
virtual bool NextFragment()
virtual std::string DebugString() const
bool MakeOneNeighbor() override
This method should not be overridden. Override MakeNeighbor() instead.
bool swig_overrides(int n)
virtual void VisitUnknownDecision()
virtual void BeginNextDecision(operations_research::DecisionBuilder *const b)
Before calling DecisionBuilder::Next.
Swig::BoolArray< 1 > swig_override
virtual void ApplyDecision(operations_research::Decision *const d)
Before applying the decision.
virtual void Accept(operations_research::DecisionVisitor *const visitor) const
Accepts the given visitor.
An Assignment is a variable -> domains mapping, used to report solutions to the user.
bool swig_overrides(int n)
virtual void EnterSearch()
Beginning of the search.
void swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global)
virtual bool HasFragments() const
The class IntVar is a subset of IntExpr.
virtual ~SwigDirector_IntVarLocalSearchFilter()
bool swig_overrides(int n)
SwigDirector_DecisionVisitor(JNIEnv *jenv)
virtual void BeginInitialPropagation()
Before the initial propagation.
virtual std::string DebugString() const
virtual void SetNextBaseToIncrement(int64_t base_index)
Set the next base to increment on next iteration.
virtual bool ConsiderAlternatives(int64_t base_index) const
Indicates if alternatives should be considered when iterating over base nodes.
virtual bool SkipUnchanged(int index) const
bool swig_overrides(int n)
virtual void Commit(operations_research::Assignment const *delta, operations_research::Assignment const *deltadelta)
Dual of Relax(), lets the filter know that the delta was accepted.
SwigDirector_LocalSearchOperator()
SwigDirector_SequenceVarLocalSearchOperator()
virtual bool AcceptDelta(operations_research::Assignment *delta, operations_research::Assignment *deltadelta)
virtual void VisitRankLastInterval(operations_research::SequenceVar *const sequence, int index)
bool swig_overrides(int n)
virtual bool MakeNextNeighbor(operations_research::Assignment *delta, operations_research::Assignment *deltadelta)
Redefines MakeNextNeighbor to export a simpler interface.
Swig::BoolArray< 8 > swig_override
virtual bool SkipUnchanged(int index) const
virtual bool IsIncremental() const
A sequence variable is a variable whose domain is a set of possible orderings of the interval variabl...
virtual bool InitPosition() const
Returns true if the operator needs to restart its initial position at each call to Start()
virtual bool OnSamePathAsPreviousBase(int64_t base_index)
Returns true if a base node has to be on the same path as the "previous" base node (base node of inde...
virtual bool RestartAtPathStartOnSynchronize()
When the operator is being synchronized with a new solution (when Start() is called),...
void swig_connect_director(SWIG_Callback0_t callbackToString, SWIG_Callback1_t callbackNextWrapper)
virtual void VisitScheduleOrPostpone(operations_research::IntervalVar *const var, int64_t est)
virtual void Install()
Registers itself on the solver such that it gets notified of the search and propagation events.
virtual int64_t ModifyValue(int64_t index, int64_t value)
virtual void AfterDecision(operations_research::Decision *const d, bool apply)
Just after refuting or applying the decision, apply is true after Apply.
virtual int64_t GetSynchronizedObjectiveValue() const
Objective value from last time Synchronize() was called.
virtual bool IsIncremental() const
A Decision represents a choice point in the search tree.
void swig_connect_director(SWIG_Callback0_t callbackToString, SWIG_Callback1_t callbackRelax, SWIG_Callback2_t callbackCommit, SWIG_Callback3_t callbackAccept, SWIG_Callback4_t callbackIsIncremental, SWIG_Callback5_t callbackSynchronize, SWIG_Callback6_t callbackRevert, SWIG_Callback7_t callbackReset, SWIG_Callback8_t callbackGetSynchronizedObjectiveValue, SWIG_Callback9_t callbackGetAcceptedObjectiveValue)
virtual std::string DebugString() const
virtual void OnSynchronizeSwigPublic(operations_research::Assignment const *delta)
virtual int64_t GetAcceptedObjectiveValue() const
Objective value from the last time Accept() was called and returned true.
A search monitor is a simple set of callbacks to monitor all search events.
virtual void VisitSetVariableValue(operations_research::IntVar *const var, int64_t value)
virtual void ExitSearch()
End of the search.
virtual ~SwigDirector_Decision()
virtual void Reset()
Sets the filter to empty solution.
Swig::BoolArray< 6 > swig_override
virtual bool MakeOneNeighbor()
This method should not be overridden. Override MakeNeighbor() instead.
bool swig_overrides(int n)
SwigDirector_SearchMonitor(operations_research::Solver *const s)
virtual ~SwigDirector_IntVarLocalSearchOperator()
A symmetry breaker is an object that will visit a decision and create the 'symmetrical' decision in r...
virtual void Start(operations_research::Assignment const *assignment)
virtual void OnStart()
Called by Start() after synchronizing the operator with the current assignment.
virtual bool MakeNeighbor()
void swig_connect_director(SWIG_Callback0_t callbackToString, SWIG_Callback1_t callbackVisitSetVariableValue, SWIG_Callback2_t callbackVisitSplitVariableDomain, SWIG_Callback3_t callbackVisitScheduleOrPostpone, SWIG_Callback4_t callbackVisitScheduleOrExpedite, SWIG_Callback5_t callbackVisitRankFirstInterval, SWIG_Callback6_t callbackVisitRankLastInterval, SWIG_Callback7_t callbackVisitUnknownDecision)
virtual void NoMoreSolutions()
When the search tree is finished.
void swig_connect_director(SWIG_Callback0_t callbackToString, SWIG_Callback1_t callbackApplyWrapper, SWIG_Callback2_t callbackRefuteWrapper, SWIG_Callback3_t callbackAccept)
virtual bool MakeNextNeighbor(operations_research::Assignment *delta, operations_research::Assignment *deltadelta)
Redefines MakeNextNeighbor to export a simpler interface.
virtual void SetNextBaseToIncrement(int64_t base_index)
Set the next base to increment on next iteration.
virtual bool AtSolution()
This method is called when a valid solution is found.
virtual void RestartSearch()
Restart the search.
virtual bool MakeNextNeighbor(operations_research::Assignment *delta, operations_research::Assignment *deltadelta)
virtual bool MakeOneNeighborSwigPublic()
virtual void VisitSplitVariableDomain(operations_research::IntVar *const var, int64_t value, bool start_with_lower_half)
virtual bool HoldsDelta() const
virtual void VisitSplitVariableDomain(operations_research::IntVar *const var, int64_t value, bool start_with_lower_half)
virtual int64_t GetBaseNodeRestartPosition(int base_index)
Returns the index of the node to which the base node of index base_index must be set to when it reach...
void swig_connect_director(SWIG_Callback0_t callbackToString)
virtual void Start(operations_research::Assignment const *assignment)
Specialization of LocalSearchOperator built from an array of IntVars which specifies the scope of the...
virtual void AcceptNeighbor()
After accepting a neighbor during local search.
virtual ~SwigDirector_ChangeValue()
virtual void InitFragments()
virtual int64_t GetBaseNodeRestartPosition(int base_index)
Returns the index of the node to which the base node of index base_index must be set to when it reach...
virtual std::string DebugString() const
virtual bool RestartAtPathStartOnSynchronize()
When the operator is being synchronized with a new solution (when Start() is called),...
virtual bool MakeOneNeighbor()
Creates a new neighbor.
Swig::BoolArray< 8 > swig_override
virtual bool LocalOptimum()
When a local optimum is reached.
virtual void VisitRankLastInterval(operations_research::SequenceVar *const sequence, int index)
SwigDirector_IntVarLocalSearchOperator()
virtual void VisitScheduleOrExpedite(operations_research::IntervalVar *const var, int64_t est)
virtual ~SwigDirector_DecisionBuilder()
Local Search Filters are used for fast neighbor pruning.
bool MakeOneNeighbor() override
This method should not be overridden. Override ModifyValue() instead.
void swig_connect_director(SWIG_Callback0_t callbackToString, SWIG_Callback1_t callbackMakeNextNeighbor, SWIG_Callback2_t callbackReset, SWIG_Callback3_t callbackHasFragments, SWIG_Callback4_t callbackHoldsDelta, SWIG_Callback5_t callbackIsIncremental, SWIG_Callback6_t callbackOnStart)
SwigDirector_PathOperator(JNIEnv *jenv, std::vector< operations_research::IntVar * > const &next_vars, std::vector< operations_research::IntVar * > const &path_vars, operations_research::PathOperator::IterationParameters iteration_parameters)
SwigDirector_IntVarLocalSearchFilter(std::vector< operations_research::IntVar * > const &vars)
virtual bool Accept(operations_research::Assignment const *delta, operations_research::Assignment const *deltadelta, int64_t objective_min, int64_t objective_max)
Accepts a "delta" given the assignment with which the filter has been synchronized; the delta holds t...
virtual bool MakeOneNeighborSwigPublic()
virtual void Refute(operations_research::Solver *const s)
Refute will be called after a backtrack.
virtual bool OnSamePathAsPreviousBase(int64_t base_index)
Returns true if a base node has to be on the same path as the "previous" base node (base node of inde...
Swig::BoolArray< 8 > swig_override
virtual void OnNodeInitializationSwigPublic()
virtual std::string DebugString() const
virtual void EndFail()
After completing the backtrack.
virtual std::string DebugString() const
virtual void Relax(operations_research::Assignment const *delta, operations_research::Assignment const *deltadelta)
Lets the filter know what delta and deltadelta will be passed in the next Accept().
void swig_connect_director(SWIG_Callback0_t callbackToString, SWIG_Callback1_t callbackEnterSearch, SWIG_Callback2_t callbackRestartSearch, SWIG_Callback3_t callbackExitSearch, SWIG_Callback4_t callbackBeginNextDecision, SWIG_Callback5_t callbackEndNextDecision, SWIG_Callback6_t callbackApplyDecision, SWIG_Callback7_t callbackRefuteDecision, SWIG_Callback8_t callbackAfterDecision, SWIG_Callback9_t callbackBeginFail, SWIG_Callback10_t callbackEndFail, SWIG_Callback11_t callbackBeginInitialPropagation, SWIG_Callback12_t callbackEndInitialPropagation, SWIG_Callback13_t callbackAcceptSolution, SWIG_Callback14_t callbackAtSolution, SWIG_Callback15_t callbackNoMoreSolutions, SWIG_Callback16_t callbackLocalOptimum, SWIG_Callback17_t callbackAcceptDelta, SWIG_Callback18_t callbackAcceptNeighbor, SWIG_Callback19_t callbackAcceptUncheckedNeighbor, SWIG_Callback20_t callbackIsUncheckedSolutionLimitReached, SWIG_Callback21_t callbackPeriodicCheck, SWIG_Callback22_t callbackProgressPercent, SWIG_Callback23_t callbackAccept, SWIG_Callback24_t callbackInstall)