DotNet Reference

.Net 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 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 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(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 string Name() {
49  return ret;
50  }
51 
52  public void SetInteger(bool integer) {
54  }
55 
56  public double SolutionValue() {
58  return ret;
59  }
60 
61  public double Lb() {
63  return ret;
64  }
65 
66  public double Ub() {
68  return ret;
69  }
70 
71  public void SetLb(double lb) {
73  }
74 
75  public void SetUb(double ub) {
77  }
78 
79  public void SetBounds(double lb, double ub) {
81  }
82 
83  public double ReducedCost() {
85  return ret;
86  }
87 
90  return ret;
91  }
92 
93 }
94 
95 }
Definition: Variable.cs:13
double SolutionValue()
Definition: Variable.cs:56
void SetLb(double lb)
Definition: Variable.cs:71
void SetBounds(double lb, double ub)
Definition: Variable.cs:79
static double Variable_Lb(global::System.Runtime.InteropServices.HandleRef jarg1)
static string Variable_Name(global::System.Runtime.InteropServices.HandleRef jarg1)
using System
Definition: Program.cs:14
void SetInteger(bool integer)
Definition: Variable.cs:52
static void Variable_SetUb(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
Solver.BasisStatus BasisStatus()
Definition: Variable.cs:88
static void Variable_SetLb(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
double Lb()
Definition: Variable.cs:61
bool swigCMemOwn
Definition: Variable.cs:15
double Ub()
Definition: Variable.cs:66
BasisStatus
double ReducedCost()
Definition: Variable.cs:83
static double Variable_Ub(global::System.Runtime.InteropServices.HandleRef jarg1)
void Dispose()
Definition: Variable.cs:30
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:75
static double Variable_ReducedCost(global::System.Runtime.InteropServices.HandleRef jarg1)
virtual void Dispose(bool disposing)
Definition: Variable.cs:35
string Name()
Definition: Variable.cs:47