DotNet Reference

DotNet 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 3.0.12
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();
28  }
29 
30  public virtual void Dispose() {
31  lock(this) {
32  if (swigCPtr.Handle != global::System.IntPtr.Zero) {
33  if (swigCMemOwn) {
34  swigCMemOwn = false;
36  }
37  swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
38  }
39  global::System.GC.SuppressFinalize(this);
40  }
41  }
42 
43  public static double kDefaultRelativeMipGap {
44  get {
46  return ret;
47  }
48  }
49 
50  public static double kDefaultPrimalTolerance {
51  get {
53  return ret;
54  }
55  }
56 
57  public static double kDefaultDualTolerance {
58  get {
60  return ret;
61  }
62  }
63 
65  get {
67  return ret;
68  }
69  }
70 
72  get {
74  return ret;
75  }
76  }
77 
78  public MPSolverParameters() : this(operations_research_linear_solverPINVOKE.new_MPSolverParameters(), true) {
79  }
80 
81  public void SetDoubleParam(MPSolverParameters.DoubleParam param, double value) {
83  }
84 
85  public void SetIntegerParam(MPSolverParameters.IntegerParam param, int value) {
87  }
88 
91  return ret;
92  }
93 
96  return ret;
97  }
98 
99  public enum DoubleParam {
100  RELATIVE_MIP_GAP = 0,
101  PRIMAL_TOLERANCE = 1,
102  DUAL_TOLERANCE = 2
103  }
104 
105  public enum IntegerParam {
106  PRESOLVE = 1000,
107  LP_ALGORITHM = 1001,
108  INCREMENTALITY = 1002,
109  SCALING = 1003
110  }
111 
112  public enum PresolveValues {
113  PRESOLVE_OFF = 0,
114  PRESOLVE_ON = 1
115  }
116 
117  public enum LpAlgorithmValues {
118  DUAL = 10,
119  PRIMAL = 11,
120  BARRIER = 12
121  }
122 
123  public enum IncrementalityValues {
124  INCREMENTALITY_OFF = 0,
125  INCREMENTALITY_ON = 1
126  }
127 
128  public enum ScalingValues {
129  SCALING_OFF = 0,
130  SCALING_ON = 1
131  }
132 
133 }
134 
135 }
MPSolverParameters()
void SetIntegerParam(MPSolverParameters.IntegerParam param, int value)
virtual void Dispose()
PresolveValues
static MPSolverParameters.PresolveValues kDefaultPresolve
static double kDefaultRelativeMipGap
static double MPSolverParameters_kDefaultDualTolerance_get()
static int MPSolverParameters_kDefaultPresolve_get()
LpAlgorithmValues
static double kDefaultDualTolerance
void SetDoubleParam(MPSolverParameters.DoubleParam param, double value)
static int MPSolverParameters_kDefaultIncrementality_get()
DoubleParam
int GetIntegerParam(MPSolverParameters.IntegerParam param)
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)
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)