15 using System.Collections;
16 using System.Collections.Generic;
19 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
22 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
this, cPtr);
25 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(
OptimizeVar obj) {
26 return (obj ==
null) ?
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero) : obj.swigCPtr;
29 protected override void Dispose(
bool disposing) {
31 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
36 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
38 base.Dispose(disposing);
43 SwigDirectorConnect();
53 IntVar ret = (cPtr == global::System.IntPtr.Zero) ?
null :
new IntVar(cPtr,
false);
102 private void SwigDirectorConnect() {
103 if (SwigDerivedClassHasMethod(
"ToString", swigMethodTypes0))
105 if (SwigDerivedClassHasMethod(
"EnterSearch", swigMethodTypes1))
107 if (SwigDerivedClassHasMethod(
"RestartSearch", swigMethodTypes2))
109 if (SwigDerivedClassHasMethod(
"ExitSearch", swigMethodTypes3))
111 if (SwigDerivedClassHasMethod(
"BeginNextDecision", swigMethodTypes4))
113 if (SwigDerivedClassHasMethod(
"EndNextDecision", swigMethodTypes5))
115 if (SwigDerivedClassHasMethod(
"ApplyDecision", swigMethodTypes6))
117 if (SwigDerivedClassHasMethod(
"RefuteDecision", swigMethodTypes7))
119 if (SwigDerivedClassHasMethod(
"AfterDecision", swigMethodTypes8))
121 if (SwigDerivedClassHasMethod(
"BeginFail", swigMethodTypes9))
123 if (SwigDerivedClassHasMethod(
"EndFail", swigMethodTypes10))
125 if (SwigDerivedClassHasMethod(
"BeginInitialPropagation", swigMethodTypes11))
127 if (SwigDerivedClassHasMethod(
"EndInitialPropagation", swigMethodTypes12))
129 if (SwigDerivedClassHasMethod(
"AcceptSolution", swigMethodTypes13))
131 if (SwigDerivedClassHasMethod(
"AtSolution", swigMethodTypes14))
133 if (SwigDerivedClassHasMethod(
"NoMoreSolutions", swigMethodTypes15))
135 if (SwigDerivedClassHasMethod(
"LocalOptimum", swigMethodTypes16))
137 if (SwigDerivedClassHasMethod(
"AcceptDelta", swigMethodTypes17))
139 if (SwigDerivedClassHasMethod(
"AcceptNeighbor", swigMethodTypes18))
141 if (SwigDerivedClassHasMethod(
"AcceptUncheckedNeighbor", swigMethodTypes19))
143 if (SwigDerivedClassHasMethod(
"IsUncheckedSolutionLimitReached", swigMethodTypes20))
145 if (SwigDerivedClassHasMethod(
"PeriodicCheck", swigMethodTypes21))
147 if (SwigDerivedClassHasMethod(
"ProgressPercent", swigMethodTypes22))
149 if (SwigDerivedClassHasMethod(
"Accept", swigMethodTypes23))
151 if (SwigDerivedClassHasMethod(
"Install", swigMethodTypes24))
153 if (SwigDerivedClassHasMethod(
"Print", swigMethodTypes25))
155 operations_research_constraint_solverPINVOKE.
OptimizeVar_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);
158 private bool SwigDerivedClassHasMethod(
string methodName, global::System.Type[] methodTypes) {
159 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);
160 bool hasDerivedMethod = methodInfo.DeclaringType.IsSubclassOf(typeof(OptimizeVar));
161 return hasDerivedMethod;
164 private string SwigDirectorMethodToString() {
168 private void SwigDirectorMethodEnterSearch() {
172 private void SwigDirectorMethodRestartSearch() {
176 private void SwigDirectorMethodExitSearch() {
180 private void SwigDirectorMethodBeginNextDecision(global::System.IntPtr db) {
181 BeginNextDecision((db == global::System.IntPtr.Zero) ?
null :
new DecisionBuilder(db,
false));
184 private void SwigDirectorMethodEndNextDecision(global::System.IntPtr b, global::System.IntPtr d) {
185 EndNextDecision((b == global::System.IntPtr.Zero) ?
null :
new DecisionBuilder(b,
false), (d == global::System.IntPtr.Zero) ?
null :
new Decision(d,
false));
188 private void SwigDirectorMethodApplyDecision(global::System.IntPtr d) {
189 ApplyDecision((d == global::System.IntPtr.Zero) ?
null :
new Decision(d,
false));
192 private void SwigDirectorMethodRefuteDecision(global::System.IntPtr d) {
193 RefuteDecision((d == global::System.IntPtr.Zero) ?
null :
new Decision(d,
false));
196 private void SwigDirectorMethodAfterDecision(global::System.IntPtr d,
bool apply) {
197 AfterDecision((d == global::System.IntPtr.Zero) ?
null :
new Decision(d,
false), apply);
200 private void SwigDirectorMethodBeginFail() {
204 private void SwigDirectorMethodEndFail() {
208 private void SwigDirectorMethodBeginInitialPropagation() {
212 private void SwigDirectorMethodEndInitialPropagation() {
216 private bool SwigDirectorMethodAcceptSolution() {
220 private bool SwigDirectorMethodAtSolution() {
224 private void SwigDirectorMethodNoMoreSolutions() {
228 private bool SwigDirectorMethodLocalOptimum() {
232 private bool SwigDirectorMethodAcceptDelta(global::System.IntPtr delta, global::System.IntPtr deltadelta) {
233 return AcceptDelta((delta == global::System.IntPtr.Zero) ?
null :
new Assignment(delta,
false), (deltadelta == global::System.IntPtr.Zero) ?
null :
new Assignment(deltadelta,
false));
236 private void SwigDirectorMethodAcceptNeighbor() {
240 private void SwigDirectorMethodAcceptUncheckedNeighbor() {
244 private bool SwigDirectorMethodIsUncheckedSolutionLimitReached() {
248 private void SwigDirectorMethodPeriodicCheck() {
252 private int SwigDirectorMethodProgressPercent() {
256 private void SwigDirectorMethodAccept(global::System.IntPtr visitor) {
257 Accept((visitor == global::System.IntPtr.Zero) ?
null :
new ModelVisitor(visitor,
false));
260 private void SwigDirectorMethodInstall() {
264 private string SwigDirectorMethodPrint() {
322 private static global::System.Type[] swigMethodTypes0 =
new global::System.Type[] { };
323 private static global::System.Type[] swigMethodTypes1 =
new global::System.Type[] { };
324 private static global::System.Type[] swigMethodTypes2 =
new global::System.Type[] { };
325 private static global::System.Type[] swigMethodTypes3 =
new global::System.Type[] { };
326 private static global::System.Type[] swigMethodTypes4 =
new global::System.Type[] { typeof(DecisionBuilder) };
327 private static global::System.Type[] swigMethodTypes5 =
new global::System.Type[] { typeof(DecisionBuilder), typeof(Decision) };
328 private static global::System.Type[] swigMethodTypes6 =
new global::System.Type[] { typeof(Decision) };
329 private static global::System.Type[] swigMethodTypes7 =
new global::System.Type[] { typeof(Decision) };
330 private static global::System.Type[] swigMethodTypes8 =
new global::System.Type[] { typeof(Decision), typeof(
bool) };
331 private static global::System.Type[] swigMethodTypes9 =
new global::System.Type[] { };
332 private static global::System.Type[] swigMethodTypes10 =
new global::System.Type[] { };
333 private static global::System.Type[] swigMethodTypes11 =
new global::System.Type[] { };
334 private static global::System.Type[] swigMethodTypes12 =
new global::System.Type[] { };
335 private static global::System.Type[] swigMethodTypes13 =
new global::System.Type[] { };
336 private static global::System.Type[] swigMethodTypes14 =
new global::System.Type[] { };
337 private static global::System.Type[] swigMethodTypes15 =
new global::System.Type[] { };
338 private static global::System.Type[] swigMethodTypes16 =
new global::System.Type[] { };
339 private static global::System.Type[] swigMethodTypes17 =
new global::System.Type[] { typeof(Assignment), typeof(Assignment) };
340 private static global::System.Type[] swigMethodTypes18 =
new global::System.Type[] { };
341 private static global::System.Type[] swigMethodTypes19 =
new global::System.Type[] { };
342 private static global::System.Type[] swigMethodTypes20 =
new global::System.Type[] { };
343 private static global::System.Type[] swigMethodTypes21 =
new global::System.Type[] { };
344 private static global::System.Type[] swigMethodTypes22 =
new global::System.Type[] { };
345 private static global::System.Type[] swigMethodTypes23 =
new global::System.Type[] { typeof(ModelVisitor) };
346 private static global::System.Type[] swigMethodTypes24 =
new global::System.Type[] { };
347 private static global::System.Type[] swigMethodTypes25 =
new global::System.Type[] { };