DotNet Reference

DotNet Reference

Variable.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 Variable : global::System.IDisposable {
14  private global::System.Runtime.InteropServices.HandleRef swigCPtr;
15  protected bool swigCMemOwn;
16 
17  internal Variable(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(Variable obj) {
23  return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
24  }
25 
26  ~Variable() {
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 string Name() {
45  return ret;
46  }
47 
48  public void SetInteger(bool integer) {
50  }
51 
52  public double SolutionValue() {
54  return ret;
55  }
56 
57  public double Lb() {
59  return ret;
60  }
61 
62  public double Ub() {
64  return ret;
65  }
66 
67  public void SetLb(double lb) {
69  }
70 
71  public void SetUb(double ub) {
73  }
74 
75  public void SetBounds(double lb, double ub) {
77  }
78 
79  public double ReducedCost() {
81  return ret;
82  }
83 
86  return ret;
87  }
88 
89 }
90 
91 }
Definition: Variable.cs:13
virtual void Dispose()
Definition: Variable.cs:30
double SolutionValue()
Definition: Variable.cs:52
void SetLb(double lb)
Definition: Variable.cs:67
void SetBounds(double lb, double ub)
Definition: Variable.cs:75
static double Variable_Lb(global::System.Runtime.InteropServices.HandleRef jarg1)
static string Variable_Name(global::System.Runtime.InteropServices.HandleRef jarg1)
void SetInteger(bool integer)
Definition: Variable.cs:48
static void Variable_SetUb(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
Solver.BasisStatus BasisStatus()
Definition: Variable.cs:84
static void Variable_SetLb(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
double Lb()
Definition: Variable.cs:57
bool swigCMemOwn
Definition: Variable.cs:15
double Ub()
Definition: Variable.cs:62
BasisStatus
double ReducedCost()
Definition: Variable.cs:79
static double Variable_Ub(global::System.Runtime.InteropServices.HandleRef jarg1)
static void Variable_SetInteger(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static void Variable_SetBounds(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3)
static double Variable_SolutionValue(global::System.Runtime.InteropServices.HandleRef jarg1)
static int Variable_BasisStatus(global::System.Runtime.InteropServices.HandleRef jarg1)
static void delete_Variable(global::System.Runtime.InteropServices.HandleRef jarg1)
void SetUb(double ub)
Definition: Variable.cs:71
static double Variable_ReducedCost(global::System.Runtime.InteropServices.HandleRef jarg1)
string Name()
Definition: Variable.cs:43