Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
MPSolverParameters.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
13public partial class MPSolverParameters : global::System.IDisposable {
14 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
15 protected bool swigCMemOwn;
16
17 internal MPSolverParameters(global::System.IntPtr cPtr, bool cMemoryOwn) {
18 swigCMemOwn = cMemoryOwn;
19 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
20 }
21
22 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(MPSolverParameters obj) {
23 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
24 }
25
26 internal static global::System.Runtime.InteropServices.HandleRef swigRelease(MPSolverParameters obj) {
27 if (obj != null) {
28 if (!obj.swigCMemOwn)
29 throw new global::System.ApplicationException("Cannot release ownership as memory is not owned");
30 global::System.Runtime.InteropServices.HandleRef ptr = obj.swigCPtr;
31 obj.swigCMemOwn = false;
32 obj.Dispose();
33 return ptr;
34 } else {
35 return new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
36 }
37 }
38
39 ~MPSolverParameters() {
40 Dispose(false);
41 }
42
43 public void Dispose() {
44 Dispose(true);
45 global::System.GC.SuppressFinalize(this);
46 }
47
48 protected virtual void Dispose(bool disposing) {
49 lock(this) {
50 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
51 if (swigCMemOwn) {
52 swigCMemOwn = false;
54 }
55 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
56 }
57 }
58 }
59
60 public static double kDefaultRelativeMipGap {
61 get {
63 return ret;
64 }
65 }
66
67 public static double kDefaultPrimalTolerance {
68 get {
70 return ret;
71 }
72 }
73
74 public static double kDefaultDualTolerance {
75 get {
77 return ret;
78 }
79 }
80
81 public static MPSolverParameters.PresolveValues kDefaultPresolve {
82 get {
89 get {
91 return ret;
92 }
93 }
94
95 public MPSolverParameters() : this(operations_research_linear_solverPINVOKE.new_MPSolverParameters(), true) {
96 }
98 public void SetDoubleParam(MPSolverParameters.DoubleParam param, double value) {
101
102 public void SetIntegerParam(MPSolverParameters.IntegerParam param, int value) {
105
106 public double GetDoubleParam(MPSolverParameters.DoubleParam param) {
108 return ret;
109 }
110
113 return ret;
114 }
115
116 public enum DoubleParam {
120 }
121
122 public enum IntegerParam {
123 PRESOLVE = 1000,
125 INCREMENTALITY = 1002,
126 SCALING = 1003
127 }
128
129 public enum PresolveValues {
130 PRESOLVE_OFF = 0,
132 }
133
134 public enum LpAlgorithmValues {
135 DUAL = 10,
136 PRIMAL = 11,
137 BARRIER = 12
138 }
139
140 public enum IncrementalityValues {
143 }
144
145 public enum ScalingValues {
146 SCALING_OFF = 0,
148 }
149
150}
151
152}
int GetIntegerParam(MPSolverParameters.IntegerParam param)
void SetIntegerParam(MPSolverParameters.IntegerParam param, int value)
static MPSolverParameters.IncrementalityValues kDefaultIncrementality
static MPSolverParameters.PresolveValues kDefaultPresolve
double GetDoubleParam(MPSolverParameters.DoubleParam param)
void SetDoubleParam(MPSolverParameters.DoubleParam param, double value)
static void MPSolverParameters_SetDoubleParam(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, double jarg3)
static double MPSolverParameters_GetDoubleParam(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static int MPSolverParameters_GetIntegerParam(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static void delete_MPSolverParameters(global::System.Runtime.InteropServices.HandleRef jarg1)
static void MPSolverParameters_SetIntegerParam(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3)