GLPK for C#/CLI  1.10.0
All Classes Namespaces Functions Properties Pages
glp_iocp.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_iocp : global::System.IDisposable {
14  private global::System.Runtime.InteropServices.HandleRef swigCPtr;
15  protected bool swigCMemOwn;
16 
17  internal glp_iocp(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_iocp obj) {
23  return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
24  }
25 
26  ~glp_iocp() {
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_iocp(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_iocp_msg_lev_set(swigCPtr, value);
47  }
48  get {
49  int ret = GLPKPINVOKE.glp_iocp_msg_lev_get(swigCPtr);
51  return ret;
52  }
53  }
54 
55  public int br_tech {
56  set {
57  GLPKPINVOKE.glp_iocp_br_tech_set(swigCPtr, value);
59  }
60  get {
61  int ret = GLPKPINVOKE.glp_iocp_br_tech_get(swigCPtr);
63  return ret;
64  }
65  }
66 
67  public int bt_tech {
68  set {
69  GLPKPINVOKE.glp_iocp_bt_tech_set(swigCPtr, value);
71  }
72  get {
73  int ret = GLPKPINVOKE.glp_iocp_bt_tech_get(swigCPtr);
75  return ret;
76  }
77  }
78 
79  public double tol_int {
80  set {
81  GLPKPINVOKE.glp_iocp_tol_int_set(swigCPtr, value);
83  }
84  get {
85  double ret = GLPKPINVOKE.glp_iocp_tol_int_get(swigCPtr);
87  return ret;
88  }
89  }
90 
91  public double tol_obj {
92  set {
93  GLPKPINVOKE.glp_iocp_tol_obj_set(swigCPtr, value);
95  }
96  get {
97  double ret = GLPKPINVOKE.glp_iocp_tol_obj_get(swigCPtr);
99  return ret;
100  }
101  }
102 
103  public int tm_lim {
104  set {
105  GLPKPINVOKE.glp_iocp_tm_lim_set(swigCPtr, value);
107  }
108  get {
109  int ret = GLPKPINVOKE.glp_iocp_tm_lim_get(swigCPtr);
111  return ret;
112  }
113  }
114 
115  public int out_frq {
116  set {
117  GLPKPINVOKE.glp_iocp_out_frq_set(swigCPtr, value);
119  }
120  get {
121  int ret = GLPKPINVOKE.glp_iocp_out_frq_get(swigCPtr);
123  return ret;
124  }
125  }
126 
127  public int out_dly {
128  set {
129  GLPKPINVOKE.glp_iocp_out_dly_set(swigCPtr, value);
131  }
132  get {
133  int ret = GLPKPINVOKE.glp_iocp_out_dly_get(swigCPtr);
135  return ret;
136  }
137  }
138 
140  set {
141  GLPKPINVOKE.glp_iocp_cb_func_set(swigCPtr, SWIGTYPE_p_f_p_struct_glp_tree_p_void__void.getCPtr(value));
143  }
144  get {
145  global::System.IntPtr cPtr = GLPKPINVOKE.glp_iocp_cb_func_get(swigCPtr);
146  SWIGTYPE_p_f_p_struct_glp_tree_p_void__void ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_struct_glp_tree_p_void__void(cPtr, false);
148  return ret;
149  }
150  }
151 
152  public SWIGTYPE_p_void cb_info {
153  set {
154  GLPKPINVOKE.glp_iocp_cb_info_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value));
156  }
157  get {
158  global::System.IntPtr cPtr = GLPKPINVOKE.glp_iocp_cb_info_get(swigCPtr);
159  SWIGTYPE_p_void ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false);
161  return ret;
162  }
163  }
164 
165  public int cb_size {
166  set {
167  GLPKPINVOKE.glp_iocp_cb_size_set(swigCPtr, value);
169  }
170  get {
171  int ret = GLPKPINVOKE.glp_iocp_cb_size_get(swigCPtr);
173  return ret;
174  }
175  }
176 
177  public int pp_tech {
178  set {
179  GLPKPINVOKE.glp_iocp_pp_tech_set(swigCPtr, value);
181  }
182  get {
183  int ret = GLPKPINVOKE.glp_iocp_pp_tech_get(swigCPtr);
185  return ret;
186  }
187  }
188 
189  public double mip_gap {
190  set {
191  GLPKPINVOKE.glp_iocp_mip_gap_set(swigCPtr, value);
193  }
194  get {
195  double ret = GLPKPINVOKE.glp_iocp_mip_gap_get(swigCPtr);
197  return ret;
198  }
199  }
200 
201  public int mir_cuts {
202  set {
203  GLPKPINVOKE.glp_iocp_mir_cuts_set(swigCPtr, value);
205  }
206  get {
207  int ret = GLPKPINVOKE.glp_iocp_mir_cuts_get(swigCPtr);
209  return ret;
210  }
211  }
212 
213  public int gmi_cuts {
214  set {
215  GLPKPINVOKE.glp_iocp_gmi_cuts_set(swigCPtr, value);
217  }
218  get {
219  int ret = GLPKPINVOKE.glp_iocp_gmi_cuts_get(swigCPtr);
221  return ret;
222  }
223  }
224 
225  public int cov_cuts {
226  set {
227  GLPKPINVOKE.glp_iocp_cov_cuts_set(swigCPtr, value);
229  }
230  get {
231  int ret = GLPKPINVOKE.glp_iocp_cov_cuts_get(swigCPtr);
233  return ret;
234  }
235  }
236 
237  public int clq_cuts {
238  set {
239  GLPKPINVOKE.glp_iocp_clq_cuts_set(swigCPtr, value);
241  }
242  get {
243  int ret = GLPKPINVOKE.glp_iocp_clq_cuts_get(swigCPtr);
245  return ret;
246  }
247  }
248 
249  public int presolve {
250  set {
251  GLPKPINVOKE.glp_iocp_presolve_set(swigCPtr, value);
253  }
254  get {
255  int ret = GLPKPINVOKE.glp_iocp_presolve_get(swigCPtr);
257  return ret;
258  }
259  }
260 
261  public int binarize {
262  set {
263  GLPKPINVOKE.glp_iocp_binarize_set(swigCPtr, value);
265  }
266  get {
267  int ret = GLPKPINVOKE.glp_iocp_binarize_get(swigCPtr);
269  return ret;
270  }
271  }
272 
273  public int fp_heur {
274  set {
275  GLPKPINVOKE.glp_iocp_fp_heur_set(swigCPtr, value);
277  }
278  get {
279  int ret = GLPKPINVOKE.glp_iocp_fp_heur_get(swigCPtr);
281  return ret;
282  }
283  }
284 
285  public int ps_heur {
286  set {
287  GLPKPINVOKE.glp_iocp_ps_heur_set(swigCPtr, value);
289  }
290  get {
291  int ret = GLPKPINVOKE.glp_iocp_ps_heur_get(swigCPtr);
293  return ret;
294  }
295  }
296 
297  public int ps_tm_lim {
298  set {
299  GLPKPINVOKE.glp_iocp_ps_tm_lim_set(swigCPtr, value);
301  }
302  get {
303  int ret = GLPKPINVOKE.glp_iocp_ps_tm_lim_get(swigCPtr);
305  return ret;
306  }
307  }
308 
309  public int sr_heur {
310  set {
311  GLPKPINVOKE.glp_iocp_sr_heur_set(swigCPtr, value);
313  }
314  get {
315  int ret = GLPKPINVOKE.glp_iocp_sr_heur_get(swigCPtr);
317  return ret;
318  }
319  }
320 
321  public int use_sol {
322  set {
323  GLPKPINVOKE.glp_iocp_use_sol_set(swigCPtr, value);
325  }
326  get {
327  int ret = GLPKPINVOKE.glp_iocp_use_sol_get(swigCPtr);
329  return ret;
330  }
331  }
332 
333  public string save_sol {
334  set {
335  GLPKPINVOKE.glp_iocp_save_sol_set(swigCPtr, value);
337  }
338  get {
339  string ret = GLPKPINVOKE.glp_iocp_save_sol_get(swigCPtr);
341  return ret;
342  }
343  }
344 
345  public int alien {
346  set {
347  GLPKPINVOKE.glp_iocp_alien_set(swigCPtr, value);
349  }
350  get {
351  int ret = GLPKPINVOKE.glp_iocp_alien_get(swigCPtr);
353  return ret;
354  }
355  }
356 
357  public int flip {
358  set {
359  GLPKPINVOKE.glp_iocp_flip_set(swigCPtr, value);
361  }
362  get {
363  int ret = GLPKPINVOKE.glp_iocp_flip_get(swigCPtr);
365  return ret;
366  }
367  }
368 
369  public SWIGTYPE_p_double foo_bar {
370  set {
371  GLPKPINVOKE.glp_iocp_foo_bar_set(swigCPtr, SWIGTYPE_p_double.getCPtr(value));
373  }
374  get {
375  global::System.IntPtr cPtr = GLPKPINVOKE.glp_iocp_foo_bar_get(swigCPtr);
376  SWIGTYPE_p_double ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_double(cPtr, false);
378  return ret;
379  }
380  }
381 
382  public glp_iocp() : this(GLPKPINVOKE.new_glp_iocp(), true) {
384  }
385 
386 }
387 
388 }