DotNet Reference
.Net Reference
SolutionCollector.cs
Go to the documentation of this file.
21 internal SolutionCollector(global::System.IntPtr cPtr, bool cMemoryOwn) : base(operations_research_constraint_solverPINVOKE.SolutionCollector_SWIGUpcast(cPtr), cMemoryOwn) {
25 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SolutionCollector obj) {
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 SolutionCollector(Solver solver, Assignment assignment) : this(operations_research_constraint_solverPINVOKE.new_SolutionCollector__SWIG_0(Solver.getCPtr(solver), Assignment.getCPtr(assignment)), true) {
46 public SolutionCollector(Solver solver) : this(operations_research_constraint_solverPINVOKE.new_SolutionCollector__SWIG_1(Solver.getCPtr(solver)), true) {
51 string ret = (SwigDerivedClassHasMethod("ToString", swigMethodTypes0) ? operations_research_constraint_solverPINVOKE.SolutionCollector_ToStringSwigExplicitSolutionCollector(swigCPtr) : operations_research_constraint_solverPINVOKE.SolutionCollector_ToString(swigCPtr));
56 operations_research_constraint_solverPINVOKE.SolutionCollector_Add__SWIG_0(swigCPtr, IntVar.getCPtr(var));
60 operations_research_constraint_solverPINVOKE.SolutionCollector_Add__SWIG_1(swigCPtr, IntVarVector.getCPtr(vars));
61 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
65 operations_research_constraint_solverPINVOKE.SolutionCollector_Add__SWIG_2(swigCPtr, IntervalVar.getCPtr(var));
69 operations_research_constraint_solverPINVOKE.SolutionCollector_Add__SWIG_3(swigCPtr, IntervalVarVector.getCPtr(vars));
70 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
74 operations_research_constraint_solverPINVOKE.SolutionCollector_Add__SWIG_4(swigCPtr, SequenceVar.getCPtr(var));
78 operations_research_constraint_solverPINVOKE.SolutionCollector_Add__SWIG_5(swigCPtr, SequenceVarVector.getCPtr(vars));
79 if (operations_research_constraint_solverPINVOKE.SWIGPendingException.Pending) throw operations_research_constraint_solverPINVOKE.SWIGPendingException.Retrieve();
83 operations_research_constraint_solverPINVOKE.SolutionCollector_AddObjective(swigCPtr, IntVar.getCPtr(objective));
87 if (SwigDerivedClassHasMethod("EnterSearch", swigMethodTypes1)) operations_research_constraint_solverPINVOKE.SolutionCollector_EnterSearchSwigExplicitSolutionCollector(swigCPtr); else operations_research_constraint_solverPINVOKE.SolutionCollector_EnterSearch(swigCPtr);
91 int ret = operations_research_constraint_solverPINVOKE.SolutionCollector_SolutionCount(swigCPtr);
96 global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.SolutionCollector_Solution(swigCPtr, n);
102 long ret = operations_research_constraint_solverPINVOKE.SolutionCollector_WallTime(swigCPtr, n);
107 long ret = operations_research_constraint_solverPINVOKE.SolutionCollector_Branches(swigCPtr, n);
112 long ret = operations_research_constraint_solverPINVOKE.SolutionCollector_Failures(swigCPtr, n);
117 long ret = operations_research_constraint_solverPINVOKE.SolutionCollector_ObjectiveValue(swigCPtr, n);
122 long ret = operations_research_constraint_solverPINVOKE.SolutionCollector_Value(swigCPtr, n, IntVar.getCPtr(var));
127 long ret = operations_research_constraint_solverPINVOKE.SolutionCollector_StartValue(swigCPtr, n, IntervalVar.getCPtr(var));
132 long ret = operations_research_constraint_solverPINVOKE.SolutionCollector_EndValue(swigCPtr, n, IntervalVar.getCPtr(var));
137 long ret = operations_research_constraint_solverPINVOKE.SolutionCollector_DurationValue(swigCPtr, n, IntervalVar.getCPtr(var));
142 long ret = operations_research_constraint_solverPINVOKE.SolutionCollector_PerformedValue(swigCPtr, n, IntervalVar.getCPtr(var));
147 global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.SolutionCollector_ForwardSequence(swigCPtr, n, SequenceVar.getCPtr(var));
159 global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.SolutionCollector_BackwardSequence(swigCPtr, n, SequenceVar.getCPtr(var));
171 global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.SolutionCollector_Unperformed(swigCPtr, n, SequenceVar.getCPtr(var));
206 swigDelegate11 = new SwigDelegateSolutionCollector_11(SwigDirectorMethodBeginInitialPropagation);
222 swigDelegate19 = new SwigDelegateSolutionCollector_19(SwigDirectorMethodAcceptUncheckedNeighbor);
224 swigDelegate20 = new SwigDelegateSolutionCollector_20(SwigDirectorMethodIsUncheckedSolutionLimitReached);
233 operations_research_constraint_solverPINVOKE.SolutionCollector_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);
237 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);
262 private void SwigDirectorMethodEndNextDecision(global::System.IntPtr b, global::System.IntPtr d) {
263 EndNextDecision((b == global::System.IntPtr.Zero) ? null : new DecisionBuilder(b, false), (d == global::System.IntPtr.Zero) ? null : new Decision(d, false));
310 private bool SwigDirectorMethodAcceptDelta(global::System.IntPtr delta, global::System.IntPtr deltadelta) {
311 return AcceptDelta((delta == global::System.IntPtr.Zero) ? null : new Assignment(delta, false), (deltadelta == global::System.IntPtr.Zero) ? null : new Assignment(deltadelta, false));
347 public delegate void SwigDelegateSolutionCollector_5(global::System.IntPtr b, global::System.IntPtr d);
359 public delegate bool SwigDelegateSolutionCollector_17(global::System.IntPtr delta, global::System.IntPtr deltadelta);
398 private static global::System.Type[] swigMethodTypes4 = new global::System.Type[] { typeof(DecisionBuilder) };
399 private static global::System.Type[] swigMethodTypes5 = new global::System.Type[] { typeof(DecisionBuilder), typeof(Decision) };
400 private static global::System.Type[] swigMethodTypes6 = new global::System.Type[] { typeof(Decision) };
401 private static global::System.Type[] swigMethodTypes7 = new global::System.Type[] { typeof(Decision) };
402 private static global::System.Type[] swigMethodTypes8 = new global::System.Type[] { typeof(Decision), typeof(bool) };
411 private static global::System.Type[] swigMethodTypes17 = new global::System.Type[] { typeof(Assignment), typeof(Assignment) };
417 private static global::System.Type[] swigMethodTypes23 = new global::System.Type[] { typeof(ModelVisitor) };
virtual bool AtSolution()
Definition: SearchMonitor.cs:99
static string SolutionCollector_ToStringSwigExplicitSolutionCollector(global::System.Runtime.InteropServices.HandleRef jarg1)
static void SolutionCollector_AddObjective(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
void Add(IntVarVector vars)
Definition: SolutionCollector.cs:59
delegate void SwigDelegateSolutionCollector_4(global::System.IntPtr b)
static global::System.IntPtr SolutionCollector_SWIGUpcast(global::System.IntPtr jarg1)
virtual void EndNextDecision(DecisionBuilder b, Decision d)
Definition: SearchMonitor.cs:62
delegate void SwigDelegateSolutionCollector_23(global::System.IntPtr visitor)
delegate void SwigDelegateSolutionCollector_10()
static long SolutionCollector_EndValue(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
SolutionCollector(Solver solver)
Definition: SolutionCollector.cs:46
static long SolutionCollector_DurationValue(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
virtual void BeginFail()
Definition: SearchMonitor.cs:78
long Value(int n, IntVar var)
Definition: SolutionCollector.cs:121
static long SolutionCollector_PerformedValue(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static void SolutionCollector_Add__SWIG_4(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
virtual void Install()
Definition: SearchMonitor.cs:150
virtual void Accept(ModelVisitor visitor)
Definition: SearchMonitor.cs:146
virtual void PeriodicCheck()
Definition: SearchMonitor.cs:137
static void SolutionCollector_director_connect(global::System.Runtime.InteropServices.HandleRef jarg1, SolutionCollector.SwigDelegateSolutionCollector_0 delegate0, SolutionCollector.SwigDelegateSolutionCollector_1 delegate1, SolutionCollector.SwigDelegateSolutionCollector_2 delegate2, SolutionCollector.SwigDelegateSolutionCollector_3 delegate3, SolutionCollector.SwigDelegateSolutionCollector_4 delegate4, SolutionCollector.SwigDelegateSolutionCollector_5 delegate5, SolutionCollector.SwigDelegateSolutionCollector_6 delegate6, SolutionCollector.SwigDelegateSolutionCollector_7 delegate7, SolutionCollector.SwigDelegateSolutionCollector_8 delegate8, SolutionCollector.SwigDelegateSolutionCollector_9 delegate9, SolutionCollector.SwigDelegateSolutionCollector_10 delegate10, SolutionCollector.SwigDelegateSolutionCollector_11 delegate11, SolutionCollector.SwigDelegateSolutionCollector_12 delegate12, SolutionCollector.SwigDelegateSolutionCollector_13 delegate13, SolutionCollector.SwigDelegateSolutionCollector_14 delegate14, SolutionCollector.SwigDelegateSolutionCollector_15 delegate15, SolutionCollector.SwigDelegateSolutionCollector_16 delegate16, SolutionCollector.SwigDelegateSolutionCollector_17 delegate17, SolutionCollector.SwigDelegateSolutionCollector_18 delegate18, SolutionCollector.SwigDelegateSolutionCollector_19 delegate19, SolutionCollector.SwigDelegateSolutionCollector_20 delegate20, SolutionCollector.SwigDelegateSolutionCollector_21 delegate21, SolutionCollector.SwigDelegateSolutionCollector_22 delegate22, SolutionCollector.SwigDelegateSolutionCollector_23 delegate23, SolutionCollector.SwigDelegateSolutionCollector_24 delegate24)
delegate int SwigDelegateSolutionCollector_22()
long StartValue(int n, IntervalVar var)
Definition: SolutionCollector.cs:126
delegate void SwigDelegateSolutionCollector_3()
delegate void SwigDelegateSolutionCollector_21()
delegate bool SwigDelegateSolutionCollector_14()
delegate void SwigDelegateSolutionCollector_24()
static long SolutionCollector_WallTime(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
void Add(SequenceVarVector vars)
Definition: SolutionCollector.cs:77
virtual bool AcceptSolution()
Definition: SearchMonitor.cs:94
static bool Pending
int Count
Definition: constraint_solver/IntVector.cs:101
long DurationValue(int n, IntervalVar var)
Definition: SolutionCollector.cs:136
virtual void ExitSearch()
Definition: SearchMonitor.cs:54
static global::System.IntPtr SolutionCollector_Solution(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
virtual void AcceptNeighbor()
Definition: SearchMonitor.cs:118
static long SolutionCollector_Branches(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
override void EnterSearch()
Definition: SolutionCollector.cs:86
static void SolutionCollector_Add__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
virtual bool IsUncheckedSolutionLimitReached()
Definition: SearchMonitor.cs:126
long EndValue(int n, IntervalVar var)
Definition: SolutionCollector.cs:131
static void SolutionCollector_Add__SWIG_3(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
void Add(IntVar var)
Definition: SolutionCollector.cs:55
static global::System.IntPtr SolutionCollector_Unperformed(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
virtual void AfterDecision(Decision d, bool apply)
Definition: SearchMonitor.cs:74
delegate void SwigDelegateSolutionCollector_1()
delegate void SwigDelegateSolutionCollector_7(global::System.IntPtr d)
virtual void AcceptUncheckedNeighbor()
Definition: SearchMonitor.cs:122
virtual void RefuteDecision(Decision d)
Definition: SearchMonitor.cs:70
delegate bool SwigDelegateSolutionCollector_16()
virtual bool LocalOptimum()
Definition: SearchMonitor.cs:108
delegate void SwigDelegateSolutionCollector_6(global::System.IntPtr d)
delegate void SwigDelegateSolutionCollector_18()
static global::System.IntPtr SolutionCollector_ForwardSequence(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
virtual void EndInitialPropagation()
Definition: SearchMonitor.cs:90
void AddObjective(IntVar objective)
Definition: SolutionCollector.cs:82
static int SolutionCollector_SolutionCount(global::System.Runtime.InteropServices.HandleRef jarg1)
override string ToString()
Definition: SolutionCollector.cs:50
Assignment Solution(int n)
Definition: SolutionCollector.cs:95
void CopyTo(int[] array)
Definition: constraint_solver/IntVector.cs:113
delegate void SwigDelegateSolutionCollector_19()
static void SolutionCollector_EnterSearchSwigExplicitSolutionCollector(global::System.Runtime.InteropServices.HandleRef jarg1)
virtual void RestartSearch()
Definition: SearchMonitor.cs:50
long PerformedValue(int n, IntervalVar var)
Definition: SolutionCollector.cs:141
delegate void SwigDelegateSolutionCollector_8(global::System.IntPtr d, bool apply)
SolutionCollector(Solver solver, Assignment assignment)
Definition: SolutionCollector.cs:42
delegate bool SwigDelegateSolutionCollector_17(global::System.IntPtr delta, global::System.IntPtr deltadelta)
static long SolutionCollector_StartValue(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
delegate void SwigDelegateSolutionCollector_11()
delegate void SwigDelegateSolutionCollector_12()
virtual void EndFail()
Definition: SearchMonitor.cs:82
int SolutionCount()
Definition: SolutionCollector.cs:90
delegate string SwigDelegateSolutionCollector_0()
virtual void NoMoreSolutions()
Definition: SearchMonitor.cs:104
void Add(IntervalVar var)
Definition: SolutionCollector.cs:64
long Failures(int n)
Definition: SolutionCollector.cs:111
virtual void BeginInitialPropagation()
Definition: SearchMonitor.cs:86
override void Dispose(bool disposing)
Definition: SolutionCollector.cs:29
int[] ForwardSequence(int n, SequenceVar var)
Definition: SolutionCollector.cs:146
static void SolutionCollector_Add__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static long SolutionCollector_Failures(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static void delete_SolutionCollector(global::System.Runtime.InteropServices.HandleRef jarg1)
virtual void BeginNextDecision(DecisionBuilder b)
Definition: SearchMonitor.cs:58
static long SolutionCollector_ObjectiveValue(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
delegate void SwigDelegateSolutionCollector_9()
int[] Unperformed(int n, SequenceVar var)
Definition: SolutionCollector.cs:170
void Add(SequenceVar var)
Definition: SolutionCollector.cs:73
delegate void SwigDelegateSolutionCollector_5(global::System.IntPtr b, global::System.IntPtr d)
void Add(IntervalVarVector vars)
Definition: SolutionCollector.cs:68
static void SolutionCollector_Add__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
long ObjectiveValue(int n)
Definition: SolutionCollector.cs:116
static string SolutionCollector_ToString(global::System.Runtime.InteropServices.HandleRef jarg1)
Google.OrTools.ConstraintSolver.operations_research_constraint_solverPINVOKE.SolutionCollector_Value
static long SolutionCollector_Value(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static global::System.IntPtr SolutionCollector_BackwardSequence(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static global::System.Exception Retrieve()
delegate bool SwigDelegateSolutionCollector_13()
long Branches(int n)
Definition: SolutionCollector.cs:106
int[] BackwardSequence(int n, SequenceVar var)
Definition: SolutionCollector.cs:158
virtual void ApplyDecision(Decision d)
Definition: SearchMonitor.cs:66
virtual bool AcceptDelta(Assignment delta, Assignment deltadelta)
Definition: SearchMonitor.cs:113
long WallTime(int n)
Definition: SolutionCollector.cs:101
virtual int ProgressPercent()
Definition: SearchMonitor.cs:141
static void SolutionCollector_EnterSearch(global::System.Runtime.InteropServices.HandleRef jarg1)
delegate void SwigDelegateSolutionCollector_2()
static void SolutionCollector_Add__SWIG_5(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
delegate void SwigDelegateSolutionCollector_15()
delegate bool SwigDelegateSolutionCollector_20()