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(
SolutionCollector 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();
47 SwigDirectorConnect();
149 if (cPtr != global::System.IntPtr.Zero) {
151 int[] outArray =
new int[tmpVector.
Count];
152 tmpVector.
CopyTo(outArray);
161 if (cPtr != global::System.IntPtr.Zero) {
163 int[] outArray =
new int[tmpVector.
Count];
164 tmpVector.
CopyTo(outArray);
173 if (cPtr != global::System.IntPtr.Zero) {
175 int[] outArray =
new int[tmpVector.
Count];
176 tmpVector.
CopyTo(outArray);
182 private void SwigDirectorConnect() {
183 if (SwigDerivedClassHasMethod(
"ToString", swigMethodTypes0))
185 if (SwigDerivedClassHasMethod(
"EnterSearch", swigMethodTypes1))
187 if (SwigDerivedClassHasMethod(
"RestartSearch", swigMethodTypes2))
189 if (SwigDerivedClassHasMethod(
"ExitSearch", swigMethodTypes3))
191 if (SwigDerivedClassHasMethod(
"BeginNextDecision", swigMethodTypes4))
193 if (SwigDerivedClassHasMethod(
"EndNextDecision", swigMethodTypes5))
195 if (SwigDerivedClassHasMethod(
"ApplyDecision", swigMethodTypes6))
197 if (SwigDerivedClassHasMethod(
"RefuteDecision", swigMethodTypes7))
199 if (SwigDerivedClassHasMethod(
"AfterDecision", swigMethodTypes8))
201 if (SwigDerivedClassHasMethod(
"BeginFail", swigMethodTypes9))
203 if (SwigDerivedClassHasMethod(
"EndFail", swigMethodTypes10))
205 if (SwigDerivedClassHasMethod(
"BeginInitialPropagation", swigMethodTypes11))
207 if (SwigDerivedClassHasMethod(
"EndInitialPropagation", swigMethodTypes12))
209 if (SwigDerivedClassHasMethod(
"AcceptSolution", swigMethodTypes13))
211 if (SwigDerivedClassHasMethod(
"AtSolution", swigMethodTypes14))
213 if (SwigDerivedClassHasMethod(
"NoMoreSolutions", swigMethodTypes15))
215 if (SwigDerivedClassHasMethod(
"LocalOptimum", swigMethodTypes16))
217 if (SwigDerivedClassHasMethod(
"AcceptDelta", swigMethodTypes17))
219 if (SwigDerivedClassHasMethod(
"AcceptNeighbor", swigMethodTypes18))
221 if (SwigDerivedClassHasMethod(
"AcceptUncheckedNeighbor", swigMethodTypes19))
223 if (SwigDerivedClassHasMethod(
"IsUncheckedSolutionLimitReached", swigMethodTypes20))
225 if (SwigDerivedClassHasMethod(
"PeriodicCheck", swigMethodTypes21))
227 if (SwigDerivedClassHasMethod(
"ProgressPercent", swigMethodTypes22))
229 if (SwigDerivedClassHasMethod(
"Accept", swigMethodTypes23))
231 if (SwigDerivedClassHasMethod(
"Install", swigMethodTypes24))
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);
236 private bool SwigDerivedClassHasMethod(
string methodName, global::System.Type[] methodTypes) {
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);
238 bool hasDerivedMethod = methodInfo.DeclaringType.IsSubclassOf(typeof(SolutionCollector));
239 return hasDerivedMethod;
242 private string SwigDirectorMethodToString() {
246 private void SwigDirectorMethodEnterSearch() {
250 private void SwigDirectorMethodRestartSearch() {
254 private void SwigDirectorMethodExitSearch() {
258 private void SwigDirectorMethodBeginNextDecision(global::System.IntPtr b) {
259 BeginNextDecision((b == global::System.IntPtr.Zero) ?
null :
new DecisionBuilder(b,
false));
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));
266 private void SwigDirectorMethodApplyDecision(global::System.IntPtr d) {
267 ApplyDecision((d == global::System.IntPtr.Zero) ?
null :
new Decision(d,
false));
270 private void SwigDirectorMethodRefuteDecision(global::System.IntPtr d) {
271 RefuteDecision((d == global::System.IntPtr.Zero) ?
null :
new Decision(d,
false));
274 private void SwigDirectorMethodAfterDecision(global::System.IntPtr d,
bool apply) {
275 AfterDecision((d == global::System.IntPtr.Zero) ?
null :
new Decision(d,
false), apply);
278 private void SwigDirectorMethodBeginFail() {
282 private void SwigDirectorMethodEndFail() {
286 private void SwigDirectorMethodBeginInitialPropagation() {
290 private void SwigDirectorMethodEndInitialPropagation() {
294 private bool SwigDirectorMethodAcceptSolution() {
298 private bool SwigDirectorMethodAtSolution() {
302 private void SwigDirectorMethodNoMoreSolutions() {
306 private bool SwigDirectorMethodLocalOptimum() {
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));
314 private void SwigDirectorMethodAcceptNeighbor() {
318 private void SwigDirectorMethodAcceptUncheckedNeighbor() {
322 private bool SwigDirectorMethodIsUncheckedSolutionLimitReached() {
326 private void SwigDirectorMethodPeriodicCheck() {
330 private int SwigDirectorMethodProgressPercent() {
334 private void SwigDirectorMethodAccept(global::System.IntPtr visitor) {
335 Accept((visitor == global::System.IntPtr.Zero) ?
null :
new ModelVisitor(visitor,
false));
338 private void SwigDirectorMethodInstall() {
394 private static global::System.Type[] swigMethodTypes0 =
new global::System.Type[] { };
395 private static global::System.Type[] swigMethodTypes1 =
new global::System.Type[] { };
396 private static global::System.Type[] swigMethodTypes2 =
new global::System.Type[] { };
397 private static global::System.Type[] swigMethodTypes3 =
new global::System.Type[] { };
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) };
403 private static global::System.Type[] swigMethodTypes9 =
new global::System.Type[] { };
404 private static global::System.Type[] swigMethodTypes10 =
new global::System.Type[] { };
405 private static global::System.Type[] swigMethodTypes11 =
new global::System.Type[] { };
406 private static global::System.Type[] swigMethodTypes12 =
new global::System.Type[] { };
407 private static global::System.Type[] swigMethodTypes13 =
new global::System.Type[] { };
408 private static global::System.Type[] swigMethodTypes14 =
new global::System.Type[] { };
409 private static global::System.Type[] swigMethodTypes15 =
new global::System.Type[] { };
410 private static global::System.Type[] swigMethodTypes16 =
new global::System.Type[] { };
411 private static global::System.Type[] swigMethodTypes17 =
new global::System.Type[] { typeof(Assignment), typeof(Assignment) };
412 private static global::System.Type[] swigMethodTypes18 =
new global::System.Type[] { };
413 private static global::System.Type[] swigMethodTypes19 =
new global::System.Type[] { };
414 private static global::System.Type[] swigMethodTypes20 =
new global::System.Type[] { };
415 private static global::System.Type[] swigMethodTypes21 =
new global::System.Type[] { };
416 private static global::System.Type[] swigMethodTypes22 =
new global::System.Type[] { };
417 private static global::System.Type[] swigMethodTypes23 =
new global::System.Type[] { typeof(ModelVisitor) };
418 private static global::System.Type[] swigMethodTypes24 =
new global::System.Type[] { };