DotNet Reference

DotNet Reference

linear_solver/Constraint.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.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 
13 public partial class Constraint : global::System.IDisposable {
14  private global::System.Runtime.InteropServices.HandleRef swigCPtr;
15  protected bool swigCMemOwn;
16 
17  internal Constraint(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(Constraint obj) {
23  return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
24  }
25 
26  ~Constraint() {
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 SetCoefficient(Variable var, double coeff) {
54  }
55 
56  public double GetCoefficient(Variable var) {
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 bool IsLazy() {
85  return ret;
86  }
87 
88  public void SetIsLazy(bool laziness) {
90  }
91 
92  public int Index() {
94  return ret;
95  }
96 
97  public double DualValue() {
99  return ret;
100  }
101 
104  return ret;
105  }
106 
107 }
108 
109 }
static int Constraint_Index(global::System.Runtime.InteropServices.HandleRef jarg1)
static double Constraint_GetCoefficient(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool Constraint_IsLazy(global::System.Runtime.InteropServices.HandleRef jarg1)
Definition: Variable.cs:13
string Name()
virtual void Dispose(bool disposing)
void SetCoefficient(Variable var, double coeff)
static double Constraint_DualValue(global::System.Runtime.InteropServices.HandleRef jarg1)
Solver.BasisStatus BasisStatus()
int Index()
void Dispose()
static int Constraint_BasisStatus(global::System.Runtime.InteropServices.HandleRef jarg1)
double DualValue()
double Lb()
double Ub()
bool swigCMemOwn
static string Constraint_Name(global::System.Runtime.InteropServices.HandleRef jarg1)
static void Constraint_SetIsLazy(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
void SetIsLazy(bool laziness)
static void Constraint_SetLb(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static void Constraint_SetCoefficient(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, double jarg3)
void SetUb(double ub)
double GetCoefficient(Variable var)
BasisStatus
static double Constraint_Ub(global::System.Runtime.InteropServices.HandleRef jarg1)
static double Constraint_Lb(global::System.Runtime.InteropServices.HandleRef jarg1)
static void delete_Constraint(global::System.Runtime.InteropServices.HandleRef jarg1)
bool IsLazy()
void SetBounds(double lb, double ub)
static void Constraint_SetUb(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static void Constraint_SetBounds(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3)
void SetLb(double lb)