CONOPT
Loading...
Searching...
No Matches
ConoptAlgProgress.java
Go to the documentation of this file.
1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (https://www.swig.org).
3 * Version 4.3.1
4 *
5 * Do not make changes to this file unless you know what you are doing - modify
6 * the SWIG interface file instead.
7 * ----------------------------------------------------------------------------- */
8
9package jconopt;
10
11public class ConoptAlgProgress {
12 private transient long swigCPtr;
13 protected transient boolean swigCMemOwn;
14
15 protected ConoptAlgProgress(long cPtr, boolean cMemoryOwn) {
16 swigCMemOwn = cMemoryOwn;
17 swigCPtr = cPtr;
18 }
19
20 protected static long getCPtr(ConoptAlgProgress obj) {
21 return (obj == null) ? 0 : obj.swigCPtr;
22 }
23
24 protected static long swigRelease(ConoptAlgProgress obj) {
25 long ptr = 0;
26 if (obj != null) {
27 if (!obj.swigCMemOwn)
28 throw new RuntimeException("Cannot release ownership as memory is not owned");
29 ptr = obj.swigCPtr;
30 obj.swigCMemOwn = false;
31 obj.delete();
32 }
33 return ptr;
34 }
35
36 @SuppressWarnings({"deprecation", "removal"})
37 protected void finalize() {
38 delete();
39 }
40
41 public synchronized void delete() {
42 if (swigCPtr != 0) {
43 if (swigCMemOwn) {
44 swigCMemOwn = false;
46 }
47 swigCPtr = 0;
48 }
49 }
50
54 public void setIteration(int value) {
55 jconoptJNI.ConoptAlgProgress_iteration_set(swigCPtr, this, value);
56 }
57
61 public int getIteration() {
62 return jconoptJNI.ConoptAlgProgress_iteration_get(swigCPtr, this);
63 }
64
68 public void setPhase(int value) {
69 jconoptJNI.ConoptAlgProgress_phase_set(swigCPtr, this, value);
70 }
71
75 public int getPhase() {
76 return jconoptJNI.ConoptAlgProgress_phase_get(swigCPtr, this);
77 }
78
83 public void setNuminfeas(int value) {
84 jconoptJNI.ConoptAlgProgress_numinfeas_set(swigCPtr, this, value);
85 }
86
91 public int getNuminfeas() {
92 return jconoptJNI.ConoptAlgProgress_numinfeas_get(swigCPtr, this);
93 }
94
99 public void setNumnopt(int value) {
100 jconoptJNI.ConoptAlgProgress_numnopt_set(swigCPtr, this, value);
101 }
102
107 public int getNumnopt() {
108 return jconoptJNI.ConoptAlgProgress_numnopt_get(swigCPtr, this);
109 }
110
114 public void setNumsuper(int value) {
115 jconoptJNI.ConoptAlgProgress_numsuper_set(swigCPtr, this, value);
116 }
117
121 public int getNumsuper() {
122 return jconoptJNI.ConoptAlgProgress_numsuper_get(swigCPtr, this);
123 }
124
130 public void setSuminfeas(double value) {
131 jconoptJNI.ConoptAlgProgress_suminfeas_set(swigCPtr, this, value);
132 }
133
139 public double getSuminfeas() {
140 return jconoptJNI.ConoptAlgProgress_suminfeas_get(swigCPtr, this);
141 }
142
147 public void setObjvalue(double value) {
148 jconoptJNI.ConoptAlgProgress_objvalue_set(swigCPtr, this, value);
149 }
150
155 public double getObjvalue() {
156 return jconoptJNI.ConoptAlgProgress_objvalue_get(swigCPtr, this);
157 }
158
163 public void setRgmax(double value) {
164 jconoptJNI.ConoptAlgProgress_rgmax_set(swigCPtr, this, value);
165 }
166
171 public double getRgmax() {
172 return jconoptJNI.ConoptAlgProgress_rgmax_get(swigCPtr, this);
173 }
174
178 public void setStep(double value) {
179 jconoptJNI.ConoptAlgProgress_step_set(swigCPtr, this, value);
180 }
181
185 public double getStep() {
186 return jconoptJNI.ConoptAlgProgress_step_get(swigCPtr, this);
187 }
188
192 public void setNumvar(int value) {
193 jconoptJNI.ConoptAlgProgress_numvar_set(swigCPtr, this, value);
194 }
195
199 public int getNumvar() {
200 return jconoptJNI.ConoptAlgProgress_numvar_get(swigCPtr, this);
201 }
202
204 this(jconoptJNI.new_ConoptAlgProgress(), true);
205 }
206
207}
static long getCPtr(ConoptAlgProgress obj)
ConoptAlgProgress(long cPtr, boolean cMemoryOwn)
static long swigRelease(ConoptAlgProgress obj)
static final native void ConoptAlgProgress_objvalue_set(long jarg1, ConoptAlgProgress jarg1_, double jarg2)
static final native int ConoptAlgProgress_numvar_get(long jarg1, ConoptAlgProgress jarg1_)
static final native long new_ConoptAlgProgress()
static final native void ConoptAlgProgress_phase_set(long jarg1, ConoptAlgProgress jarg1_, int jarg2)
static final native void ConoptAlgProgress_numsuper_set(long jarg1, ConoptAlgProgress jarg1_, int jarg2)
static final native void ConoptAlgProgress_step_set(long jarg1, ConoptAlgProgress jarg1_, double jarg2)
static final native double ConoptAlgProgress_rgmax_get(long jarg1, ConoptAlgProgress jarg1_)
static final native int ConoptAlgProgress_numinfeas_get(long jarg1, ConoptAlgProgress jarg1_)
static final native void ConoptAlgProgress_suminfeas_set(long jarg1, ConoptAlgProgress jarg1_, double jarg2)
static final native void ConoptAlgProgress_rgmax_set(long jarg1, ConoptAlgProgress jarg1_, double jarg2)
static final native void ConoptAlgProgress_numnopt_set(long jarg1, ConoptAlgProgress jarg1_, int jarg2)
static final native int ConoptAlgProgress_iteration_get(long jarg1, ConoptAlgProgress jarg1_)
static final native void ConoptAlgProgress_numvar_set(long jarg1, ConoptAlgProgress jarg1_, int jarg2)
static final native double ConoptAlgProgress_step_get(long jarg1, ConoptAlgProgress jarg1_)
static final native void ConoptAlgProgress_numinfeas_set(long jarg1, ConoptAlgProgress jarg1_, int jarg2)
static final native int ConoptAlgProgress_numsuper_get(long jarg1, ConoptAlgProgress jarg1_)
static final native void ConoptAlgProgress_iteration_set(long jarg1, ConoptAlgProgress jarg1_, int jarg2)
static final native void delete_ConoptAlgProgress(long jarg1)
static final native int ConoptAlgProgress_phase_get(long jarg1, ConoptAlgProgress jarg1_)
static final native double ConoptAlgProgress_objvalue_get(long jarg1, ConoptAlgProgress jarg1_)
static final native double ConoptAlgProgress_suminfeas_get(long jarg1, ConoptAlgProgress jarg1_)
static final native int ConoptAlgProgress_numnopt_get(long jarg1, ConoptAlgProgress jarg1_)