DotNet Reference

.Net Reference

MPSolverParameters.cs
Go to the documentation of this file.
1 //------------------------------------------------------------------------------
2 // <auto-generated />
3 //
4 // This file was automatically generated by SWIG (http://www.swig.org).
5 // Version 4.0.2
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 
13 public 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 
27  Dispose(false);
28  }
29 
30  public void Dispose() {
31  Dispose(true);
32  global::System.GC.SuppressFinalize(this);
33  }
34 
35  protected virtual void Dispose(bool disposing) {
36  lock(this) {
37  if (swigCPtr.Handle != global::System.IntPtr.Zero) {
38  if (swigCMemOwn) {
39  swigCMemOwn = false;
41  }
42  swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
43  }
44  }
45  }
46 
47  public static double kDefaultRelativeMipGap {
48  get {
50  return ret;
51  }
52  }
53 
54  public static double kDefaultPrimalTolerance {
55  get {
57  return ret;
58  }
59  }
60 
61  public static double kDefaultDualTolerance {
62  get {
64  return ret;
65  }
66  }
67 
69  get {
71  return ret;
72  }
73  }
74 
76  get {
78  return ret;
79  }
80  }
81 
82  public MPSolverParameters() : this(operations_research_linear_solverPINVOKE.new_MPSolverParameters(), true) {
83  }
84 
85  public void SetDoubleParam(MPSolverParameters.DoubleParam param, double value) {
87  }
88 
89  public void SetIntegerParam(MPSolverParameters.IntegerParam param, int value) {
91  }
92 
95  return ret;
96  }
97 
100  return ret;
101  }
102 
103  public enum DoubleParam {
104  RELATIVE_MIP_GAP = 0,
105  PRIMAL_TOLERANCE = 1,
106  DUAL_TOLERANCE = 2
107  }
108 
109  public enum IntegerParam {
110  PRESOLVE = 1000,
111  LP_ALGORITHM = 1001,
112  INCREMENTALITY = 1002,
113  SCALING = 1003
114  }
115 
116  public enum PresolveValues {
117  PRESOLVE_OFF = 0,
118  PRESOLVE_ON = 1
119  }
120 
121  public enum LpAlgorithmValues {
122  DUAL = 10,
123  PRIMAL = 11,
124  BARRIER = 12
125  }
126 
127  public enum IncrementalityValues {
128  INCREMENTALITY_OFF = 0,
129  INCREMENTALITY_ON = 1
130  }
131 
132  public enum ScalingValues {
133  SCALING_OFF = 0,
134  SCALING_ON = 1
135  }
136 
137 }
138 
139 }
MPSolverParameters()
void SetIntegerParam(MPSolverParameters.IntegerParam param, int value)
PresolveValues
static MPSolverParameters.PresolveValues kDefaultPresolve
static double kDefaultRelativeMipGap
static double MPSolverParameters_kDefaultDualTolerance_get()
static int MPSolverParameters_kDefaultPresolve_get()
LpAlgorithmValues
static double kDefaultDualTolerance
virtual void Dispose(bool disposing)
void SetDoubleParam(MPSolverParameters.DoubleParam param, double value)
static int MPSolverParameters_kDefaultIncrementality_get()
DoubleParam
int GetIntegerParam(MPSolverParameters.IntegerParam param)
using System
Definition: Program.cs:14
IncrementalityValues
static double kDefaultPrimalTolerance
static double MPSolverParameters_GetDoubleParam(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
IntegerParam
double GetDoubleParam(MPSolverParameters.DoubleParam param)
ScalingValues
static void delete_MPSolverParameters(global::System.Runtime.InteropServices.HandleRef jarg1)
void Dispose()
static MPSolverParameters.IncrementalityValues kDefaultIncrementality
bool swigCMemOwn
static int MPSolverParameters_GetIntegerParam(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static void MPSolverParameters_SetDoubleParam(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, double jarg3)
static double MPSolverParameters_kDefaultRelativeMipGap_get()
static double MPSolverParameters_kDefaultPrimalTolerance_get()
static void MPSolverParameters_SetIntegerParam(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3)