GLPK for C#/CLI  1.10.0
glp_smcp.cs
1 //------------------------------------------------------------------------------
2 // <auto-generated />
3 //
4 // This file was automatically generated by SWIG (http://www.swig.org).
5 // Version 3.0.8
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 
11 namespace org.gnu.glpk {
12 
13 public class glp_smcp : global::System.IDisposable {
14  private global::System.Runtime.InteropServices.HandleRef swigCPtr;
15  protected bool swigCMemOwn;
16 
17  internal glp_smcp(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(glp_smcp obj) {
23  return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
24  }
25 
26  ~glp_smcp() {
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;
35  GLPKPINVOKE.delete_glp_smcp(swigCPtr);
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 int msg_lev {
44  set {
45  GLPKPINVOKE.glp_smcp_msg_lev_set(swigCPtr, value);
47  }
48  get {
49  int ret = GLPKPINVOKE.glp_smcp_msg_lev_get(swigCPtr);
51  return ret;
52  }
53  }
54 
55  public int meth {
56  set {
57  GLPKPINVOKE.glp_smcp_meth_set(swigCPtr, value);
59  }
60  get {
61  int ret = GLPKPINVOKE.glp_smcp_meth_get(swigCPtr);
63  return ret;
64  }
65  }
66 
67  public int pricing {
68  set {
69  GLPKPINVOKE.glp_smcp_pricing_set(swigCPtr, value);
71  }
72  get {
73  int ret = GLPKPINVOKE.glp_smcp_pricing_get(swigCPtr);
75  return ret;
76  }
77  }
78 
79  public int r_test {
80  set {
81  GLPKPINVOKE.glp_smcp_r_test_set(swigCPtr, value);
83  }
84  get {
85  int ret = GLPKPINVOKE.glp_smcp_r_test_get(swigCPtr);
87  return ret;
88  }
89  }
90 
91  public double tol_bnd {
92  set {
93  GLPKPINVOKE.glp_smcp_tol_bnd_set(swigCPtr, value);
95  }
96  get {
97  double ret = GLPKPINVOKE.glp_smcp_tol_bnd_get(swigCPtr);
99  return ret;
100  }
101  }
102 
103  public double tol_dj {
104  set {
105  GLPKPINVOKE.glp_smcp_tol_dj_set(swigCPtr, value);
107  }
108  get {
109  double ret = GLPKPINVOKE.glp_smcp_tol_dj_get(swigCPtr);
111  return ret;
112  }
113  }
114 
115  public double tol_piv {
116  set {
117  GLPKPINVOKE.glp_smcp_tol_piv_set(swigCPtr, value);
119  }
120  get {
121  double ret = GLPKPINVOKE.glp_smcp_tol_piv_get(swigCPtr);
123  return ret;
124  }
125  }
126 
127  public double obj_ll {
128  set {
129  GLPKPINVOKE.glp_smcp_obj_ll_set(swigCPtr, value);
131  }
132  get {
133  double ret = GLPKPINVOKE.glp_smcp_obj_ll_get(swigCPtr);
135  return ret;
136  }
137  }
138 
139  public double obj_ul {
140  set {
141  GLPKPINVOKE.glp_smcp_obj_ul_set(swigCPtr, value);
143  }
144  get {
145  double ret = GLPKPINVOKE.glp_smcp_obj_ul_get(swigCPtr);
147  return ret;
148  }
149  }
150 
151  public int it_lim {
152  set {
153  GLPKPINVOKE.glp_smcp_it_lim_set(swigCPtr, value);
155  }
156  get {
157  int ret = GLPKPINVOKE.glp_smcp_it_lim_get(swigCPtr);
159  return ret;
160  }
161  }
162 
163  public int tm_lim {
164  set {
165  GLPKPINVOKE.glp_smcp_tm_lim_set(swigCPtr, value);
167  }
168  get {
169  int ret = GLPKPINVOKE.glp_smcp_tm_lim_get(swigCPtr);
171  return ret;
172  }
173  }
174 
175  public int out_frq {
176  set {
177  GLPKPINVOKE.glp_smcp_out_frq_set(swigCPtr, value);
179  }
180  get {
181  int ret = GLPKPINVOKE.glp_smcp_out_frq_get(swigCPtr);
183  return ret;
184  }
185  }
186 
187  public int out_dly {
188  set {
189  GLPKPINVOKE.glp_smcp_out_dly_set(swigCPtr, value);
191  }
192  get {
193  int ret = GLPKPINVOKE.glp_smcp_out_dly_get(swigCPtr);
195  return ret;
196  }
197  }
198 
199  public int presolve {
200  set {
201  GLPKPINVOKE.glp_smcp_presolve_set(swigCPtr, value);
203  }
204  get {
205  int ret = GLPKPINVOKE.glp_smcp_presolve_get(swigCPtr);
207  return ret;
208  }
209  }
210 
211  public int excl {
212  set {
213  GLPKPINVOKE.glp_smcp_excl_set(swigCPtr, value);
215  }
216  get {
217  int ret = GLPKPINVOKE.glp_smcp_excl_get(swigCPtr);
219  return ret;
220  }
221  }
222 
223  public int shift {
224  set {
225  GLPKPINVOKE.glp_smcp_shift_set(swigCPtr, value);
227  }
228  get {
229  int ret = GLPKPINVOKE.glp_smcp_shift_get(swigCPtr);
231  return ret;
232  }
233  }
234 
235  public int aorn {
236  set {
237  GLPKPINVOKE.glp_smcp_aorn_set(swigCPtr, value);
239  }
240  get {
241  int ret = GLPKPINVOKE.glp_smcp_aorn_get(swigCPtr);
243  return ret;
244  }
245  }
246 
247  public SWIGTYPE_p_double foo_bar {
248  set {
249  GLPKPINVOKE.glp_smcp_foo_bar_set(swigCPtr, SWIGTYPE_p_double.getCPtr(value));
251  }
252  get {
253  global::System.IntPtr cPtr = GLPKPINVOKE.glp_smcp_foo_bar_get(swigCPtr);
254  SWIGTYPE_p_double ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_double(cPtr, false);
256  return ret;
257  }
258  }
259 
260  public glp_smcp() : this(GLPKPINVOKE.new_glp_smcp(), true) {
262  }
263 
264 }
265 
266 }