DotNet Reference
DotNet Reference
LocalSearchFilter.cs
Go to the documentation of this file.
21 internal LocalSearchFilter(global::System.IntPtr cPtr, bool cMemoryOwn) : base(operations_research_constraint_solverPINVOKE.LocalSearchFilter_SWIGUpcast(cPtr), cMemoryOwn) {
25 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(LocalSearchFilter 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);
43 if (SwigDerivedClassHasMethod("Relax", swigMethodTypes1)) operations_research_constraint_solverPINVOKE.LocalSearchFilter_RelaxSwigExplicitLocalSearchFilter(swigCPtr, Assignment.getCPtr(delta), Assignment.getCPtr(deltadelta)); else operations_research_constraint_solverPINVOKE.LocalSearchFilter_Relax(swigCPtr, Assignment.getCPtr(delta), Assignment.getCPtr(deltadelta));
46 public virtual bool Accept(Assignment delta, Assignment deltadelta, long objective_min, long objective_max) {
47 bool ret = operations_research_constraint_solverPINVOKE.LocalSearchFilter_Accept(swigCPtr, Assignment.getCPtr(delta), Assignment.getCPtr(deltadelta), objective_min, objective_max);
52 bool ret = (SwigDerivedClassHasMethod("IsIncremental", swigMethodTypes3) ? operations_research_constraint_solverPINVOKE.LocalSearchFilter_IsIncrementalSwigExplicitLocalSearchFilter(swigCPtr) : operations_research_constraint_solverPINVOKE.LocalSearchFilter_IsIncremental(swigCPtr));
57 operations_research_constraint_solverPINVOKE.LocalSearchFilter_Synchronize(swigCPtr, Assignment.getCPtr(assignment), Assignment.getCPtr(delta));
61 if (SwigDerivedClassHasMethod("Revert", swigMethodTypes5)) operations_research_constraint_solverPINVOKE.LocalSearchFilter_RevertSwigExplicitLocalSearchFilter(swigCPtr); else operations_research_constraint_solverPINVOKE.LocalSearchFilter_Revert(swigCPtr);
65 long ret = (SwigDerivedClassHasMethod("GetSynchronizedObjectiveValue", swigMethodTypes6) ? operations_research_constraint_solverPINVOKE.LocalSearchFilter_GetSynchronizedObjectiveValueSwigExplicitLocalSearchFilter(swigCPtr) : operations_research_constraint_solverPINVOKE.LocalSearchFilter_GetSynchronizedObjectiveValue(swigCPtr));
70 long ret = (SwigDerivedClassHasMethod("GetAcceptedObjectiveValue", swigMethodTypes7) ? operations_research_constraint_solverPINVOKE.LocalSearchFilter_GetAcceptedObjectiveValueSwigExplicitLocalSearchFilter(swigCPtr) : operations_research_constraint_solverPINVOKE.LocalSearchFilter_GetAcceptedObjectiveValue(swigCPtr));
74 public LocalSearchFilter() : this(operations_research_constraint_solverPINVOKE.new_LocalSearchFilter(), true) {
92 swigDelegate6 = new SwigDelegateLocalSearchFilter_6(SwigDirectorMethodGetSynchronizedObjectiveValue);
94 swigDelegate7 = new SwigDelegateLocalSearchFilter_7(SwigDirectorMethodGetAcceptedObjectiveValue);
95 operations_research_constraint_solverPINVOKE.LocalSearchFilter_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3, swigDelegate4, swigDelegate5, swigDelegate6, swigDelegate7);
99 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);
108 private void SwigDirectorMethodRelax(global::System.IntPtr delta, global::System.IntPtr deltadelta) {
109 Relax((delta == global::System.IntPtr.Zero) ? null : new Assignment(delta, false), (deltadelta == global::System.IntPtr.Zero) ? null : new Assignment(deltadelta, false));
112 private bool SwigDirectorMethodAccept(global::System.IntPtr delta, global::System.IntPtr deltadelta, long objective_min, long objective_max) {
113 return Accept((delta == global::System.IntPtr.Zero) ? null : new Assignment(delta, false), (deltadelta == global::System.IntPtr.Zero) ? null : new Assignment(deltadelta, false), objective_min, objective_max);
120 private void SwigDirectorMethodSynchronize(global::System.IntPtr assignment, global::System.IntPtr delta) {
121 Synchronize((assignment == global::System.IntPtr.Zero) ? null : new Assignment(assignment, false), (delta == global::System.IntPtr.Zero) ? null : new Assignment(delta, false));
137 public delegate void SwigDelegateLocalSearchFilter_1(global::System.IntPtr delta, global::System.IntPtr deltadelta);
138 public delegate bool SwigDelegateLocalSearchFilter_2(global::System.IntPtr delta, global::System.IntPtr deltadelta, long objective_min, long objective_max);
140 public delegate void SwigDelegateLocalSearchFilter_4(global::System.IntPtr assignment, global::System.IntPtr delta);
155 private static global::System.Type[] swigMethodTypes1 = new global::System.Type[] { typeof(Assignment), typeof(Assignment) };
156 private static global::System.Type[] swigMethodTypes2 = new global::System.Type[] { typeof(Assignment), typeof(Assignment), typeof(long), typeof(long) };
delegate void SwigDelegateLocalSearchFilter_1(global::System.IntPtr delta, global::System.IntPtr deltadelta)
static long LocalSearchFilter_GetAcceptedObjectiveValueSwigExplicitLocalSearchFilter(global::System.Runtime.InteropServices.HandleRef jarg1)
static void LocalSearchFilter_Revert(global::System.Runtime.InteropServices.HandleRef jarg1)
delegate long SwigDelegateLocalSearchFilter_6()
virtual void Revert()
Definition: LocalSearchFilter.cs:60
virtual void Synchronize(Assignment assignment, Assignment delta)
Definition: LocalSearchFilter.cs:56
virtual long GetSynchronizedObjectiveValue()
Definition: LocalSearchFilter.cs:64
static void LocalSearchFilter_director_connect(global::System.Runtime.InteropServices.HandleRef jarg1, LocalSearchFilter.SwigDelegateLocalSearchFilter_0 delegate0, LocalSearchFilter.SwigDelegateLocalSearchFilter_1 delegate1, LocalSearchFilter.SwigDelegateLocalSearchFilter_2 delegate2, LocalSearchFilter.SwigDelegateLocalSearchFilter_3 delegate3, LocalSearchFilter.SwigDelegateLocalSearchFilter_4 delegate4, LocalSearchFilter.SwigDelegateLocalSearchFilter_5 delegate5, LocalSearchFilter.SwigDelegateLocalSearchFilter_6 delegate6, LocalSearchFilter.SwigDelegateLocalSearchFilter_7 delegate7)
Definition: Assignment.cs:11
delegate bool SwigDelegateLocalSearchFilter_3()
delegate void SwigDelegateLocalSearchFilter_4(global::System.IntPtr assignment, global::System.IntPtr delta)
virtual void Relax(Assignment delta, Assignment deltadelta)
Definition: LocalSearchFilter.cs:42
delegate bool SwigDelegateLocalSearchFilter_2(global::System.IntPtr delta, global::System.IntPtr deltadelta, long objective_min, long objective_max)
static global::System.IntPtr LocalSearchFilter_SWIGUpcast(global::System.IntPtr jarg1)
static void LocalSearchFilter_RelaxSwigExplicitLocalSearchFilter(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static long LocalSearchFilter_GetSynchronizedObjectiveValue(global::System.Runtime.InteropServices.HandleRef jarg1)
static void LocalSearchFilter_Synchronize(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
virtual long GetAcceptedObjectiveValue()
Definition: LocalSearchFilter.cs:69
static void LocalSearchFilter_RevertSwigExplicitLocalSearchFilter(global::System.Runtime.InteropServices.HandleRef jarg1)
Google.OrTools.ConstraintSolver.operations_research_constraint_solverPINVOKE.LocalSearchFilter_Relax
static void LocalSearchFilter_Relax(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static bool LocalSearchFilter_IsIncrementalSwigExplicitLocalSearchFilter(global::System.Runtime.InteropServices.HandleRef jarg1)
static void delete_LocalSearchFilter(global::System.Runtime.InteropServices.HandleRef jarg1)
virtual bool Accept(Assignment delta, Assignment deltadelta, long objective_min, long objective_max)
Definition: LocalSearchFilter.cs:46
override void Dispose(bool disposing)
Definition: LocalSearchFilter.cs:29
delegate long SwigDelegateLocalSearchFilter_7()
delegate string SwigDelegateLocalSearchFilter_0()
delegate void SwigDelegateLocalSearchFilter_5()
static bool LocalSearchFilter_IsIncremental(global::System.Runtime.InteropServices.HandleRef jarg1)
virtual string ToString()
Definition: BaseObject.cs:55
LocalSearchFilter()
Definition: LocalSearchFilter.cs:74
static long LocalSearchFilter_GetSynchronizedObjectiveValueSwigExplicitLocalSearchFilter(global::System.Runtime.InteropServices.HandleRef jarg1)
virtual bool IsIncremental()
Definition: LocalSearchFilter.cs:51
static long LocalSearchFilter_GetAcceptedObjectiveValue(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool LocalSearchFilter_Accept(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, long jarg4, long jarg5)