![]() |
OR-Tools
9.0
|
Definition at line 279 of file constraint_solver_csharp_wrap.h.
Public Member Functions | |
| SwigDirector_OptimizeVar (operations_research::Solver *const s, bool maximize, operations_research::IntVar *const a, int64_t step) | |
| virtual | ~SwigDirector_OptimizeVar () |
| virtual std::string | DebugString () const |
| virtual void | EnterSearch () |
| Beginning of the search. More... | |
| virtual void | RestartSearch () |
| Restart the search. More... | |
| virtual void | ExitSearch () |
| End of the search. More... | |
| virtual void | BeginNextDecision (operations_research::DecisionBuilder *const db) |
| Before calling DecisionBuilder::Next. More... | |
| virtual void | EndNextDecision (operations_research::DecisionBuilder *const b, operations_research::Decision *const d) |
| After calling DecisionBuilder::Next, along with the returned decision. More... | |
| virtual void | ApplyDecision (operations_research::Decision *const d) |
| Before applying the decision. More... | |
| virtual void | RefuteDecision (operations_research::Decision *const d) |
| Before refuting the decision. More... | |
| virtual void | AfterDecision (operations_research::Decision *const d, bool apply) |
| Just after refuting or applying the decision, apply is true after Apply. More... | |
| virtual void | BeginFail () |
| Just when the failure occurs. More... | |
| virtual void | EndFail () |
| After completing the backtrack. More... | |
| virtual void | BeginInitialPropagation () |
| Before the initial propagation. More... | |
| virtual void | EndInitialPropagation () |
| After the initial propagation. More... | |
| virtual bool | AcceptSolution () |
| This method is called when a solution is found. More... | |
| virtual bool | AtSolution () |
| This method is called when a valid solution is found. More... | |
| virtual void | NoMoreSolutions () |
| When the search tree is finished. More... | |
| virtual bool | LocalOptimum () |
| When a local optimum is reached. More... | |
| virtual bool | AcceptDelta (operations_research::Assignment *delta, operations_research::Assignment *deltadelta) |
| Internal methods. More... | |
| virtual void | AcceptNeighbor () |
| After accepting a neighbor during local search. More... | |
| virtual void | AcceptUncheckedNeighbor () |
| After accepting an unchecked neighbor during local search. More... | |
| virtual bool | IsUncheckedSolutionLimitReached () |
| Returns true if the limit of solutions has been reached including unchecked solutions. More... | |
| virtual void | PeriodicCheck () |
| Periodic call to check limits in long running methods. More... | |
| virtual int | ProgressPercent () |
| Returns a percentage representing the propress of the search before reaching limits. More... | |
| virtual void | Accept (operations_research::ModelVisitor *const visitor) const |
| Accepts the given model visitor. More... | |
| virtual void | Install () |
| Registers itself on the solver such that it gets notified of the search and propagation events. More... | |
| virtual std::string | Print () const |
| 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, SWIG_Callback25_t callbackPrint) |
| int64_t | best () const |
| Returns the best value found during search. More... | |
| IntVar * | Var () const |
| Returns the variable that is optimized. More... | |
| void | ApplyBound () |
| Solver * | solver () const |
| bool | swig_set_self (JNIEnv *jenv, jobject jself, bool mem_own, bool weak_global) |
| bool | swig_set_self (JNIEnv *jenv, jobject jself, bool mem_own, bool weak_global) |
| jobject | swig_get_self (JNIEnv *jenv) const |
| PyObject * | swig_get_self () const |
| jobject | swig_get_self (JNIEnv *jenv) const |
| PyObject * | swig_get_self () const |
| void | swig_java_change_ownership (JNIEnv *jenv, jobject jself, bool take_or_release) |
| void | swig_java_change_ownership (JNIEnv *jenv, jobject jself, bool take_or_release) |
| void | swig_disown () const |
| void | swig_disown () const |
| void | swig_incref () const |
| void | swig_incref () const |
| virtual bool | swig_get_inner (const char *) const |
| virtual bool | swig_get_inner (const char *) const |
| virtual void | swig_set_inner (const char *, bool) const |
| virtual void | swig_set_inner (const char *, bool) const |
| template<typename Type > | |
| void | swig_acquire_ownership_array (Type *vptr) const |
| template<typename Type > | |
| void | swig_acquire_ownership_array (Type *vptr) const |
| template<typename Type > | |
| void | swig_acquire_ownership (Type *vptr) const |
| template<typename Type > | |
| void | swig_acquire_ownership (Type *vptr) const |
| void | swig_acquire_ownership_obj (void *vptr, int own) const |
| void | swig_acquire_ownership_obj (void *vptr, int own) const |
| int | swig_release_ownership (void *vptr) const |
| int | swig_release_ownership (void *vptr) const |
Static Public Member Functions | |
| template<typename Type > | |
| static PyObject * | swig_pyobj_disown (PyObject *pyobj, PyObject *SWIGUNUSEDPARM(args)) |
| template<typename Type > | |
| static PyObject * | swig_pyobj_disown (PyObject *pyobj, PyObject *SWIGUNUSEDPARM(args)) |
Static Public Attributes | |
| static constexpr int | kNoProgress = -1 |
Protected Member Functions | |
| void | swig_disconnect_director_self (const char *disconn_method) |
| void | swig_disconnect_director_self (const char *disconn_method) |
Protected Attributes | |
| IntVar *const | var_ |
| int64_t | step_ |
| int64_t | best_ |
| bool | maximize_ |
| bool | found_initial_solution_ |
| JObjectWrapper | swig_self_ |
| typedef char*(SWIGSTDCALL* SWIG_Callback0_t) () |
Definition at line 311 of file constraint_solver_csharp_wrap.h.
| typedef void(SWIGSTDCALL* SWIG_Callback10_t) () |
Definition at line 321 of file constraint_solver_csharp_wrap.h.
| typedef void(SWIGSTDCALL* SWIG_Callback11_t) () |
Definition at line 322 of file constraint_solver_csharp_wrap.h.
| typedef void(SWIGSTDCALL* SWIG_Callback12_t) () |
Definition at line 323 of file constraint_solver_csharp_wrap.h.
| typedef unsigned int(SWIGSTDCALL* SWIG_Callback13_t) () |
Definition at line 324 of file constraint_solver_csharp_wrap.h.
| typedef unsigned int(SWIGSTDCALL* SWIG_Callback14_t) () |
Definition at line 325 of file constraint_solver_csharp_wrap.h.
| typedef void(SWIGSTDCALL* SWIG_Callback15_t) () |
Definition at line 326 of file constraint_solver_csharp_wrap.h.
| typedef unsigned int(SWIGSTDCALL* SWIG_Callback16_t) () |
Definition at line 327 of file constraint_solver_csharp_wrap.h.
| typedef unsigned int(SWIGSTDCALL* SWIG_Callback17_t) (void *, void *) |
Definition at line 328 of file constraint_solver_csharp_wrap.h.
| typedef void(SWIGSTDCALL* SWIG_Callback18_t) () |
Definition at line 329 of file constraint_solver_csharp_wrap.h.
| typedef void(SWIGSTDCALL* SWIG_Callback19_t) () |
Definition at line 330 of file constraint_solver_csharp_wrap.h.
| typedef void(SWIGSTDCALL* SWIG_Callback1_t) () |
Definition at line 312 of file constraint_solver_csharp_wrap.h.
| typedef unsigned int(SWIGSTDCALL* SWIG_Callback20_t) () |
Definition at line 331 of file constraint_solver_csharp_wrap.h.
| typedef void(SWIGSTDCALL* SWIG_Callback21_t) () |
Definition at line 332 of file constraint_solver_csharp_wrap.h.
| typedef int(SWIGSTDCALL* SWIG_Callback22_t) () |
Definition at line 333 of file constraint_solver_csharp_wrap.h.
| typedef void(SWIGSTDCALL* SWIG_Callback23_t) (void *) |
Definition at line 334 of file constraint_solver_csharp_wrap.h.
| typedef void(SWIGSTDCALL* SWIG_Callback24_t) () |
Definition at line 335 of file constraint_solver_csharp_wrap.h.
| typedef char*(SWIGSTDCALL* SWIG_Callback25_t) () |
Definition at line 336 of file constraint_solver_csharp_wrap.h.
| typedef void(SWIGSTDCALL* SWIG_Callback2_t) () |
Definition at line 313 of file constraint_solver_csharp_wrap.h.
| typedef void(SWIGSTDCALL* SWIG_Callback3_t) () |
Definition at line 314 of file constraint_solver_csharp_wrap.h.
| typedef void(SWIGSTDCALL* SWIG_Callback4_t) (void *) |
Definition at line 315 of file constraint_solver_csharp_wrap.h.
| typedef void(SWIGSTDCALL* SWIG_Callback5_t) (void *, void *) |
Definition at line 316 of file constraint_solver_csharp_wrap.h.
| typedef void(SWIGSTDCALL* SWIG_Callback6_t) (void *) |
Definition at line 317 of file constraint_solver_csharp_wrap.h.
| typedef void(SWIGSTDCALL* SWIG_Callback7_t) (void *) |
Definition at line 318 of file constraint_solver_csharp_wrap.h.
| typedef void(SWIGSTDCALL* SWIG_Callback8_t) (void *, unsigned int) |
Definition at line 319 of file constraint_solver_csharp_wrap.h.
| typedef void(SWIGSTDCALL* SWIG_Callback9_t) () |
Definition at line 320 of file constraint_solver_csharp_wrap.h.
| SwigDirector_OptimizeVar | ( | operations_research::Solver *const | s, |
| bool | maximize, | ||
| operations_research::IntVar *const | a, | ||
| int64_t | step | ||
| ) |
Definition at line 2997 of file constraint_solver_csharp_wrap.cc.
|
virtual |
Definition at line 3001 of file constraint_solver_csharp_wrap.cc.
|
virtual |
Accepts the given model visitor.
Reimplemented from OptimizeVar.
Definition at line 3268 of file constraint_solver_csharp_wrap.cc.
|
virtual |
Internal methods.
Reimplemented from OptimizeVar.
Definition at line 3198 of file constraint_solver_csharp_wrap.cc.
|
virtual |
After accepting a neighbor during local search.
Reimplemented from SearchMonitor.
Definition at line 3215 of file constraint_solver_csharp_wrap.cc.
|
virtual |
This method is called when a solution is found.
It asserts whether the solution is valid. A value of false indicates that the solution should be discarded.
Reimplemented from OptimizeVar.
Definition at line 3150 of file constraint_solver_csharp_wrap.cc.
|
virtual |
After accepting an unchecked neighbor during local search.
Reimplemented from SearchMonitor.
Definition at line 3224 of file constraint_solver_csharp_wrap.cc.
|
virtual |
Just after refuting or applying the decision, apply is true after Apply.
This is called only if the Apply() or Refute() methods have not failed.
Reimplemented from SearchMonitor.
Definition at line 3100 of file constraint_solver_csharp_wrap.cc.
|
virtual |
Before applying the decision.
Reimplemented from SearchMonitor.
Definition at line 3076 of file constraint_solver_csharp_wrap.cc.
|
virtual |
This method is called when a valid solution is found.
If the return value is true, then search will resume after. If the result is false, then search will stop there.
Reimplemented from OptimizeVar.
Definition at line 3163 of file constraint_solver_csharp_wrap.cc.
|
virtual |
Just when the failure occurs.
Reimplemented from SearchMonitor.
Definition at line 3114 of file constraint_solver_csharp_wrap.cc.
|
virtual |
Before the initial propagation.
Reimplemented from SearchMonitor.
Definition at line 3132 of file constraint_solver_csharp_wrap.cc.
|
virtual |
Before calling DecisionBuilder::Next.
Reimplemented from OptimizeVar.
Definition at line 3050 of file constraint_solver_csharp_wrap.cc.
|
inlineinherited |
Returns the best value found during search.
Definition at line 4214 of file constraint_solver.h.
|
virtual |
Reimplemented from OptimizeVar.
Definition at line 3006 of file constraint_solver_csharp_wrap.cc.
|
virtual |
After completing the backtrack.
Reimplemented from SearchMonitor.
Definition at line 3123 of file constraint_solver_csharp_wrap.cc.
|
virtual |
After the initial propagation.
Reimplemented from SearchMonitor.
Definition at line 3141 of file constraint_solver_csharp_wrap.cc.
|
virtual |
After calling DecisionBuilder::Next, along with the returned decision.
Reimplemented from SearchMonitor.
Definition at line 3062 of file constraint_solver_csharp_wrap.cc.
|
virtual |
Beginning of the search.
Reimplemented from OptimizeVar.
Definition at line 3023 of file constraint_solver_csharp_wrap.cc.
|
virtual |
End of the search.
Reimplemented from SearchMonitor.
Definition at line 3041 of file constraint_solver_csharp_wrap.cc.
|
virtual |
Registers itself on the solver such that it gets notified of the search and propagation events.
Reimplemented from SearchMonitor.
Definition at line 3280 of file constraint_solver_csharp_wrap.cc.
|
virtual |
Returns true if the limit of solutions has been reached including unchecked solutions.
Reimplemented from SearchMonitor.
Definition at line 3233 of file constraint_solver_csharp_wrap.cc.
|
virtual |
When a local optimum is reached.
If 'true' is returned, the last solution is discarded and the search proceeds with the next one.
Reimplemented from SearchMonitor.
Definition at line 3185 of file constraint_solver_csharp_wrap.cc.
|
virtual |
When the search tree is finished.
Reimplemented from SearchMonitor.
Definition at line 3176 of file constraint_solver_csharp_wrap.cc.
|
virtual |
Periodic call to check limits in long running methods.
Reimplemented from SearchMonitor.
Definition at line 3246 of file constraint_solver_csharp_wrap.cc.
|
virtual |
Reimplemented from OptimizeVar.
Definition at line 3289 of file constraint_solver_csharp_wrap.cc.
|
virtual |
Returns a percentage representing the propress of the search before reaching limits.
Reimplemented from SearchMonitor.
Definition at line 3255 of file constraint_solver_csharp_wrap.cc.
|
virtual |
Before refuting the decision.
Reimplemented from OptimizeVar.
Definition at line 3088 of file constraint_solver_csharp_wrap.cc.
|
virtual |
Restart the search.
Reimplemented from SearchMonitor.
Definition at line 3032 of file constraint_solver_csharp_wrap.cc.
|
inlineinherited |
Definition at line 3711 of file constraint_solver.h.
|
inlineinherited |
Definition at line 3053 of file constraint_solver_python_wrap.cc.
|
inlineinherited |
Definition at line 3054 of file sat_python_wrap.cc.
|
inlineinherited |
Definition at line 3045 of file constraint_solver_python_wrap.cc.
|
inlineinherited |
Definition at line 3046 of file sat_python_wrap.cc.
|
inlineinherited |
Definition at line 3060 of file constraint_solver_python_wrap.cc.
|
inlineinherited |
Definition at line 3061 of file sat_python_wrap.cc.
| 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, | ||
| SWIG_Callback25_t | callbackPrint | ||
| ) |
Definition at line 3306 of file constraint_solver_csharp_wrap.cc.
|
inlineprotectedinherited |
Definition at line 488 of file constraint_solver_java_wrap.cc.
|
inlineprotectedinherited |
Definition at line 471 of file sat_java_wrap.cc.
|
inlineinherited |
Definition at line 3013 of file constraint_solver_python_wrap.cc.
|
inlineinherited |
Definition at line 3014 of file sat_python_wrap.cc.
|
inlinevirtualinherited |
Reimplemented in SwigDirector_SolutionCallback, SwigDirector_IntVarLocalSearchFilter, SwigDirector_ChangeValue, SwigDirector_BaseLns, SwigDirector_IntVarLocalSearchOperator, SwigDirector_LocalSearchOperator, SwigDirector_SearchMonitor, SwigDirector_Constraint, SwigDirector_Demon, SwigDirector_DecisionBuilder, SwigDirector_Decision, SwigDirector_PropagationBaseObject, and SwigDirector_BaseObject.
Definition at line 3028 of file constraint_solver_python_wrap.cc.
|
inlinevirtualinherited |
Reimplemented in SwigDirector_SolutionCallback, SwigDirector_IntVarLocalSearchFilter, SwigDirector_ChangeValue, SwigDirector_BaseLns, SwigDirector_IntVarLocalSearchOperator, SwigDirector_LocalSearchOperator, SwigDirector_SearchMonitor, SwigDirector_Constraint, SwigDirector_Demon, SwigDirector_DecisionBuilder, SwigDirector_Decision, SwigDirector_PropagationBaseObject, and SwigDirector_BaseObject.
Definition at line 3029 of file sat_python_wrap.cc.
|
inlineinherited |
Definition at line 3008 of file constraint_solver_python_wrap.cc.
|
inlineinherited |
Definition at line 3009 of file sat_python_wrap.cc.
|
inlineinherited |
Definition at line 523 of file constraint_solver_java_wrap.cc.
|
inlineinherited |
Definition at line 506 of file sat_java_wrap.cc.
|
inlineinherited |
Definition at line 3021 of file constraint_solver_python_wrap.cc.
|
inlineinherited |
Definition at line 3022 of file sat_python_wrap.cc.
|
inlineinherited |
Definition at line 528 of file constraint_solver_java_wrap.cc.
|
inlineinherited |
Definition at line 511 of file sat_java_wrap.cc.
|
inlinestaticinherited |
Definition at line 3081 of file constraint_solver_python_wrap.cc.
|
inlinestaticinherited |
Definition at line 3082 of file sat_python_wrap.cc.
|
inlineinherited |
Definition at line 3067 of file constraint_solver_python_wrap.cc.
|
inlineinherited |
Definition at line 3068 of file sat_python_wrap.cc.
|
inlinevirtualinherited |
Reimplemented in SwigDirector_SolutionCallback, SwigDirector_IntVarLocalSearchFilter, SwigDirector_ChangeValue, SwigDirector_BaseLns, SwigDirector_IntVarLocalSearchOperator, SwigDirector_LocalSearchOperator, SwigDirector_SearchMonitor, SwigDirector_Constraint, SwigDirector_Demon, SwigDirector_DecisionBuilder, SwigDirector_Decision, SwigDirector_PropagationBaseObject, and SwigDirector_BaseObject.
Definition at line 3032 of file constraint_solver_python_wrap.cc.
|
inlinevirtualinherited |
Reimplemented in SwigDirector_SolutionCallback, SwigDirector_IntVarLocalSearchFilter, SwigDirector_ChangeValue, SwigDirector_BaseLns, SwigDirector_IntVarLocalSearchOperator, SwigDirector_LocalSearchOperator, SwigDirector_SearchMonitor, SwigDirector_Constraint, SwigDirector_Demon, SwigDirector_DecisionBuilder, SwigDirector_Decision, SwigDirector_PropagationBaseObject, and SwigDirector_BaseObject.
Definition at line 3033 of file sat_python_wrap.cc.
|
inlineinherited |
Definition at line 519 of file constraint_solver_java_wrap.cc.
|
inlineinherited |
Definition at line 502 of file sat_java_wrap.cc.
|
inlineinherited |
Returns the variable that is optimized.
Definition at line 4217 of file constraint_solver.h.
|
protectedinherited |
Definition at line 4234 of file constraint_solver.h.
|
protectedinherited |
Definition at line 4236 of file constraint_solver.h.
|
staticconstexprinherited |
Definition at line 3640 of file constraint_solver.h.
|
protectedinherited |
Definition at line 4235 of file constraint_solver.h.
|
protectedinherited |
Definition at line 4233 of file constraint_solver.h.
|
protectedinherited |
Definition at line 485 of file constraint_solver_java_wrap.cc.
|
protectedinherited |
Definition at line 4232 of file constraint_solver.h.