Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
LocalSearchMonitor.cs
Go to the documentation of this file.
1//------------------------------------------------------------------------------
2// <auto-generated />
3//
4// This file was automatically generated by SWIG (https://www.swig.org).
5// Version 4.2.1
6//
7// Do not make changes to this file unless you know what you are doing - modify
8// the SWIG interface file instead.
9//------------------------------------------------------------------------------
10
12
13using System;
14using System.Runtime.InteropServices;
15using System.Collections;
16using System.Collections.Generic;
17
18public partial class LocalSearchMonitor : SearchMonitor {
19 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
21 internal LocalSearchMonitor(global::System.IntPtr cPtr, bool cMemoryOwn) : base(operations_research_constraint_solverPINVOKE.LocalSearchMonitor_SWIGUpcast(cPtr), cMemoryOwn) {
22 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
23 }
24
25 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(LocalSearchMonitor obj) {
26 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
27 }
28
29 internal static global::System.Runtime.InteropServices.HandleRef swigRelease(LocalSearchMonitor obj) {
30 if (obj != null) {
31 if (!obj.swigCMemOwn)
32 throw new global::System.ApplicationException("Cannot release ownership as memory is not owned");
33 global::System.Runtime.InteropServices.HandleRef ptr = obj.swigCPtr;
34 obj.swigCMemOwn = false;
35 obj.Dispose();
36 return ptr;
37 } else {
38 return new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
39 }
40 }
41
42 protected override void Dispose(bool disposing) {
43 lock(this) {
44 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
45 if (swigCMemOwn) {
46 swigCMemOwn = false;
48 }
49 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
50 }
51 base.Dispose(disposing);
52 }
53 }
54
55 public override string ToString() {
56 string ret = operations_research_constraint_solverPINVOKE.LocalSearchMonitor_ToString(swigCPtr);
57 return ret;
58 }
59
60 public virtual void BeginOperatorStart() {
62 }
63
64 public virtual void EndOperatorStart() {
66 }
67
68 public virtual void BeginMakeNextNeighbor(LocalSearchOperator op) {
70 }
71
72 public virtual void EndMakeNextNeighbor(LocalSearchOperator op, bool neighbor_found, Assignment delta, Assignment deltadelta) {
73 operations_research_constraint_solverPINVOKE.LocalSearchMonitor_EndMakeNextNeighbor(swigCPtr, LocalSearchOperator.getCPtr(op), neighbor_found, Assignment.getCPtr(delta), Assignment.getCPtr(deltadelta));
74 }
75
76 public virtual void BeginFilterNeighbor(LocalSearchOperator op) {
78 }
79
80 public virtual void EndFilterNeighbor(LocalSearchOperator op, bool neighbor_found) {
82 }
83
84 public virtual void BeginAcceptNeighbor(LocalSearchOperator op) {
86 }
87
88 public virtual void EndAcceptNeighbor(LocalSearchOperator op, bool neighbor_found) {
90 }
91
92 public virtual void BeginFiltering(LocalSearchFilter filter) {
94 }
95
96 public virtual void EndFiltering(LocalSearchFilter filter, bool reject) {
98 }
99
100 public virtual bool IsActive() {
102 return ret;
103 }
104
105 public override void Install() {
108
109}
110
111}
virtual void EndFiltering(LocalSearchFilter filter, bool reject)
virtual void BeginAcceptNeighbor(LocalSearchOperator op)
virtual void EndFilterNeighbor(LocalSearchOperator op, bool neighbor_found)
virtual void EndAcceptNeighbor(LocalSearchOperator op, bool neighbor_found)
virtual void BeginMakeNextNeighbor(LocalSearchOperator op)
virtual void BeginFilterNeighbor(LocalSearchOperator op)
virtual void EndMakeNextNeighbor(LocalSearchOperator op, bool neighbor_found, Assignment delta, Assignment deltadelta)
virtual void BeginFiltering(LocalSearchFilter filter)
static void LocalSearchMonitor_Install(global::System.Runtime.InteropServices.HandleRef jarg1)
static void LocalSearchMonitor_BeginAcceptNeighbor(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool LocalSearchMonitor_IsActive(global::System.Runtime.InteropServices.HandleRef jarg1)
static void LocalSearchMonitor_EndAcceptNeighbor(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, bool jarg3)
static void LocalSearchMonitor_EndMakeNextNeighbor(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, bool jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5)
static void LocalSearchMonitor_BeginOperatorStart(global::System.Runtime.InteropServices.HandleRef jarg1)
static void LocalSearchMonitor_BeginFilterNeighbor(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void LocalSearchMonitor_BeginMakeNextNeighbor(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void LocalSearchMonitor_EndFiltering(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, bool jarg3)
static void LocalSearchMonitor_EndOperatorStart(global::System.Runtime.InteropServices.HandleRef jarg1)
static void delete_LocalSearchMonitor(global::System.Runtime.InteropServices.HandleRef jarg1)
static void LocalSearchMonitor_BeginFiltering(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void LocalSearchMonitor_EndFilterNeighbor(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, bool jarg3)