DotNet Reference
.Net Reference
RegularLimit.cs
Go to the documentation of this file.
21 internal RegularLimit(global::System.IntPtr cPtr, bool cMemoryOwn) : base(operations_research_constraint_solverPINVOKE.RegularLimit_SWIGUpcast(cPtr), cMemoryOwn) {
26 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
36 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
42 public RegularLimit(Solver s, SWIGTYPE_p_absl__Duration time, long branches, long failures, long solutions, bool smart_time_check, bool cumulative) : this(operations_research_constraint_solverPINVOKE.new_RegularLimit(Solver.getCPtr(s), SWIGTYPE_p_absl__Duration.getCPtr(time), branches, failures, solutions, smart_time_check, cumulative), true) {
43 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
48 if (SwigDerivedClassHasMethod("Copy", swigMethodTypes27)) operations_research_constraint_solverPINVOKE.RegularLimit_CopySwigExplicitRegularLimit(swigCPtr, SearchLimit.getCPtr(limit)); else operations_research_constraint_solverPINVOKE.RegularLimit_Copy(swigCPtr, SearchLimit.getCPtr(limit));
52 global::System.IntPtr cPtr = (SwigDerivedClassHasMethod("MakeClone", swigMethodTypes28) ? operations_research_constraint_solverPINVOKE.RegularLimit_MakeCloneSwigExplicitRegularLimit(swigCPtr) : operations_research_constraint_solverPINVOKE.RegularLimit_MakeClone(swigCPtr));
58 global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.RegularLimit_MakeIdenticalClone(swigCPtr);
64 bool ret = (SwigDerivedClassHasMethod("Check", swigMethodTypes25) ? operations_research_constraint_solverPINVOKE.RegularLimit_CheckSwigExplicitRegularLimit(swigCPtr) : operations_research_constraint_solverPINVOKE.RegularLimit_Check(swigCPtr));
69 if (SwigDerivedClassHasMethod("Init", swigMethodTypes26)) operations_research_constraint_solverPINVOKE.RegularLimit_InitSwigExplicitRegularLimit(swigCPtr); else operations_research_constraint_solverPINVOKE.RegularLimit_Init(swigCPtr);
73 if (SwigDerivedClassHasMethod("ExitSearch", swigMethodTypes3)) operations_research_constraint_solverPINVOKE.RegularLimit_ExitSearchSwigExplicitRegularLimit(swigCPtr); else operations_research_constraint_solverPINVOKE.RegularLimit_ExitSearch(swigCPtr);
76 public void UpdateLimits(SWIGTYPE_p_absl__Duration time, long branches, long failures, long solutions) {
77 operations_research_constraint_solverPINVOKE.RegularLimit_UpdateLimits(swigCPtr, SWIGTYPE_p_absl__Duration.getCPtr(time), branches, failures, solutions);
78 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
102 bool ret = (SwigDerivedClassHasMethod("IsUncheckedSolutionLimitReached", swigMethodTypes20) ? operations_research_constraint_solverPINVOKE.RegularLimit_IsUncheckedSolutionLimitReachedSwigExplicitRegularLimit(swigCPtr) : operations_research_constraint_solverPINVOKE.RegularLimit_IsUncheckedSolutionLimitReached(swigCPtr));
107 int ret = (SwigDerivedClassHasMethod("ProgressPercent", swigMethodTypes22) ? operations_research_constraint_solverPINVOKE.RegularLimit_ProgressPercentSwigExplicitRegularLimit(swigCPtr) : operations_research_constraint_solverPINVOKE.RegularLimit_ProgressPercent(swigCPtr));
112 string ret = (SwigDerivedClassHasMethod("ToString", swigMethodTypes0) ? operations_research_constraint_solverPINVOKE.RegularLimit_ToStringSwigExplicitRegularLimit(swigCPtr) : operations_research_constraint_solverPINVOKE.RegularLimit_ToString(swigCPtr));
117 if (SwigDerivedClassHasMethod("Accept", swigMethodTypes23)) operations_research_constraint_solverPINVOKE.RegularLimit_AcceptSwigExplicitRegularLimit(swigCPtr, ModelVisitor.getCPtr(visitor)); else operations_research_constraint_solverPINVOKE.RegularLimit_Accept(swigCPtr, ModelVisitor.getCPtr(visitor));
162 swigDelegate20 = new SwigDelegateRegularLimit_20(SwigDirectorMethodIsUncheckedSolutionLimitReached);
179 operations_research_constraint_solverPINVOKE.RegularLimit_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3, swigDelegate4, swigDelegate5, swigDelegate6, swigDelegate7, swigDelegate8, swigDelegate9, swigDelegate10, swigDelegate11, swigDelegate12, swigDelegate13, swigDelegate14, swigDelegate15, swigDelegate16, swigDelegate17, swigDelegate18, swigDelegate19, swigDelegate20, swigDelegate21, swigDelegate22, swigDelegate23, swigDelegate24, swigDelegate25, swigDelegate26, swigDelegate27, swigDelegate28);
183 global::System.Reflection.MethodInfo methodInfo = this.GetType().GetMethod(methodName, global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.NonPublic | global::System.Reflection.BindingFlags.Instance, null, methodTypes, null);
208 private void SwigDirectorMethodEndNextDecision(global::System.IntPtr b, global::System.IntPtr d) {
209 EndNextDecision((b == global::System.IntPtr.Zero) ? null : new DecisionBuilder(b, false), (d == global::System.IntPtr.Zero) ? null : new Decision(d, false));
256 private bool SwigDirectorMethodAcceptDelta(global::System.IntPtr delta, global::System.IntPtr deltadelta) {
257 return AcceptDelta((delta == global::System.IntPtr.Zero) ? null : new Assignment(delta, false), (deltadelta == global::System.IntPtr.Zero) ? null : new Assignment(deltadelta, false));
309 public delegate void SwigDelegateRegularLimit_5(global::System.IntPtr b, global::System.IntPtr d);
321 public delegate bool SwigDelegateRegularLimit_17(global::System.IntPtr delta, global::System.IntPtr deltadelta);
368 private static global::System.Type[] swigMethodTypes4 = new global::System.Type[] { typeof(DecisionBuilder) };
369 private static global::System.Type[] swigMethodTypes5 = new global::System.Type[] { typeof(DecisionBuilder), typeof(Decision) };
370 private static global::System.Type[] swigMethodTypes6 = new global::System.Type[] { typeof(Decision) };
371 private static global::System.Type[] swigMethodTypes7 = new global::System.Type[] { typeof(Decision) };
372 private static global::System.Type[] swigMethodTypes8 = new global::System.Type[] { typeof(Decision), typeof(bool) };
381 private static global::System.Type[] swigMethodTypes17 = new global::System.Type[] { typeof(Assignment), typeof(Assignment) };
387 private static global::System.Type[] swigMethodTypes23 = new global::System.Type[] { typeof(ModelVisitor) };
391 private static global::System.Type[] swigMethodTypes27 = new global::System.Type[] { typeof(SearchLimit) };
virtual bool AtSolution()
Definition: SearchMonitor.cs:99
delegate void SwigDelegateRegularLimit_8(global::System.IntPtr d, bool apply)
delegate void SwigDelegateRegularLimit_5(global::System.IntPtr b, global::System.IntPtr d)
virtual void EndNextDecision(DecisionBuilder b, Decision d)
Definition: SearchMonitor.cs:62
void UpdateLimits(SWIGTYPE_p_absl__Duration time, long branches, long failures, long solutions)
Definition: RegularLimit.cs:76
virtual void BeginFail()
Definition: SearchMonitor.cs:78
delegate void SwigDelegateRegularLimit_1()
override bool IsUncheckedSolutionLimitReached()
Definition: RegularLimit.cs:101
override void ExitSearch()
Definition: RegularLimit.cs:72
virtual void Install()
Definition: SearchMonitor.cs:150
delegate void SwigDelegateRegularLimit_7(global::System.IntPtr d)
delegate bool SwigDelegateRegularLimit_20()
delegate string SwigDelegateRegularLimit_0()
static void RegularLimit_InitSwigExplicitRegularLimit(global::System.Runtime.InteropServices.HandleRef jarg1)
Google.OrTools.ConstraintSolver.operations_research_constraint_solverPINVOKE.RegularLimit_SWIGUpcast
static global::System.IntPtr RegularLimit_SWIGUpcast(global::System.IntPtr jarg1)
virtual bool AcceptSolution()
Definition: SearchMonitor.cs:94
static string RegularLimit_ToStringSwigExplicitRegularLimit(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool Pending
static void delete_RegularLimit(global::System.Runtime.InteropServices.HandleRef jarg1)
static void RegularLimit_Copy(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool RegularLimit_IsUncheckedSolutionLimitReached(global::System.Runtime.InteropServices.HandleRef jarg1)
override void BeginNextDecision(DecisionBuilder b)
Definition: SearchLimit.cs:74
virtual void AcceptNeighbor()
Definition: SearchMonitor.cs:118
long Solutions()
Definition: RegularLimit.cs:96
delegate void SwigDelegateRegularLimit_21()
static long RegularLimit_WallTime(global::System.Runtime.InteropServices.HandleRef jarg1)
delegate void SwigDelegateRegularLimit_24()
delegate void SwigDelegateRegularLimit_11()
delegate bool SwigDelegateRegularLimit_14()
virtual void AfterDecision(Decision d, bool apply)
Definition: SearchMonitor.cs:74
static void RegularLimit_Init(global::System.Runtime.InteropServices.HandleRef jarg1)
virtual void AcceptUncheckedNeighbor()
Definition: SearchMonitor.cs:122
delegate bool SwigDelegateRegularLimit_17(global::System.IntPtr delta, global::System.IntPtr deltadelta)
virtual bool LocalOptimum()
Definition: SearchMonitor.cs:108
static void RegularLimit_UpdateLimits(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, long jarg3, long jarg4, long jarg5)
static bool RegularLimit_IsUncheckedSolutionLimitReachedSwigExplicitRegularLimit(global::System.Runtime.InteropServices.HandleRef jarg1)
delegate void SwigDelegateRegularLimit_10()
delegate void SwigDelegateRegularLimit_6(global::System.IntPtr d)
static string RegularLimit_ToString(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool RegularLimit_Check(global::System.Runtime.InteropServices.HandleRef jarg1)
override bool Check()
Definition: RegularLimit.cs:63
virtual void EndInitialPropagation()
Definition: SearchMonitor.cs:90
delegate void SwigDelegateRegularLimit_23(global::System.IntPtr visitor)
static void RegularLimit_director_connect(global::System.Runtime.InteropServices.HandleRef jarg1, RegularLimit.SwigDelegateRegularLimit_0 delegate0, RegularLimit.SwigDelegateRegularLimit_1 delegate1, RegularLimit.SwigDelegateRegularLimit_2 delegate2, RegularLimit.SwigDelegateRegularLimit_3 delegate3, RegularLimit.SwigDelegateRegularLimit_4 delegate4, RegularLimit.SwigDelegateRegularLimit_5 delegate5, RegularLimit.SwigDelegateRegularLimit_6 delegate6, RegularLimit.SwigDelegateRegularLimit_7 delegate7, RegularLimit.SwigDelegateRegularLimit_8 delegate8, RegularLimit.SwigDelegateRegularLimit_9 delegate9, RegularLimit.SwigDelegateRegularLimit_10 delegate10, RegularLimit.SwigDelegateRegularLimit_11 delegate11, RegularLimit.SwigDelegateRegularLimit_12 delegate12, RegularLimit.SwigDelegateRegularLimit_13 delegate13, RegularLimit.SwigDelegateRegularLimit_14 delegate14, RegularLimit.SwigDelegateRegularLimit_15 delegate15, RegularLimit.SwigDelegateRegularLimit_16 delegate16, RegularLimit.SwigDelegateRegularLimit_17 delegate17, RegularLimit.SwigDelegateRegularLimit_18 delegate18, RegularLimit.SwigDelegateRegularLimit_19 delegate19, RegularLimit.SwigDelegateRegularLimit_20 delegate20, RegularLimit.SwigDelegateRegularLimit_21 delegate21, RegularLimit.SwigDelegateRegularLimit_22 delegate22, RegularLimit.SwigDelegateRegularLimit_23 delegate23, RegularLimit.SwigDelegateRegularLimit_24 delegate24, RegularLimit.SwigDelegateRegularLimit_25 delegate25, RegularLimit.SwigDelegateRegularLimit_26 delegate26, RegularLimit.SwigDelegateRegularLimit_27 delegate27, RegularLimit.SwigDelegateRegularLimit_28 delegate28)
delegate void SwigDelegateRegularLimit_18()
virtual void RestartSearch()
Definition: SearchMonitor.cs:50
delegate void SwigDelegateRegularLimit_15()
override void Accept(ModelVisitor visitor)
Definition: RegularLimit.cs:116
static bool RegularLimit_CheckSwigExplicitRegularLimit(global::System.Runtime.InteropServices.HandleRef jarg1)
static void RegularLimit_ExitSearchSwigExplicitRegularLimit(global::System.Runtime.InteropServices.HandleRef jarg1)
RegularLimit(Solver s, SWIGTYPE_p_absl__Duration time, long branches, long failures, long solutions, bool smart_time_check, bool cumulative)
Definition: RegularLimit.cs:42
delegate void SwigDelegateRegularLimit_12()
virtual void EndFail()
Definition: SearchMonitor.cs:82
static int RegularLimit_ProgressPercentSwigExplicitRegularLimit(global::System.Runtime.InteropServices.HandleRef jarg1)
virtual void NoMoreSolutions()
Definition: SearchMonitor.cs:104
static void RegularLimit_AcceptSwigExplicitRegularLimit(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
virtual void BeginInitialPropagation()
Definition: SearchMonitor.cs:86
static long RegularLimit_Branches(global::System.Runtime.InteropServices.HandleRef jarg1)
delegate bool SwigDelegateRegularLimit_16()
static global::System.IntPtr RegularLimit_MakeIdenticalClone(global::System.Runtime.InteropServices.HandleRef jarg1)
Google.OrTools.ConstraintSolver.operations_research_constraint_solverPINVOKE.RegularLimit_ExitSearch
static void RegularLimit_ExitSearch(global::System.Runtime.InteropServices.HandleRef jarg1)
static long RegularLimit_Failures(global::System.Runtime.InteropServices.HandleRef jarg1)
RegularLimit MakeIdenticalClone()
Definition: RegularLimit.cs:57
delegate void SwigDelegateRegularLimit_27(global::System.IntPtr limit)
delegate void SwigDelegateRegularLimit_3()
override void Dispose(bool disposing)
Definition: RegularLimit.cs:29
delegate void SwigDelegateRegularLimit_2()
delegate void SwigDelegateRegularLimit_9()
override void EnterSearch()
Definition: SearchLimit.cs:70
override void PeriodicCheck()
Definition: SearchLimit.cs:78
static global::System.IntPtr RegularLimit_MakeCloneSwigExplicitRegularLimit(global::System.Runtime.InteropServices.HandleRef jarg1)
static void RegularLimit_CopySwigExplicitRegularLimit(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
delegate int SwigDelegateRegularLimit_22()
static int RegularLimit_ProgressPercent(global::System.Runtime.InteropServices.HandleRef jarg1)
delegate void SwigDelegateRegularLimit_4(global::System.IntPtr b)
static void RegularLimit_Accept(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
override void RefuteDecision(Decision d)
Definition: SearchLimit.cs:82
delegate bool SwigDelegateRegularLimit_13()
static global::System.Exception Retrieve()
virtual void ApplyDecision(Decision d)
Definition: SearchMonitor.cs:66
virtual bool AcceptDelta(Assignment delta, Assignment deltadelta)
Definition: SearchMonitor.cs:113
override SearchLimit MakeClone()
Definition: RegularLimit.cs:51
override int ProgressPercent()
Definition: RegularLimit.cs:106
delegate void SwigDelegateRegularLimit_19()
delegate void SwigDelegateRegularLimit_26()
override void Copy(SearchLimit limit)
Definition: RegularLimit.cs:47
override string ToString()
Definition: RegularLimit.cs:111
static long RegularLimit_Solutions(global::System.Runtime.InteropServices.HandleRef jarg1)
delegate bool SwigDelegateRegularLimit_25()
delegate global::System.IntPtr SwigDelegateRegularLimit_28()
static global::System.IntPtr RegularLimit_MakeClone(global::System.Runtime.InteropServices.HandleRef jarg1)