9 package com.google.ortools.linearsolver;
11 import java.lang.reflect.*;
14 private transient long swigCPtr;
23 return (obj ==
null) ? 0 : obj.swigCPtr;
26 @SuppressWarnings(
"deprecation")
31 public synchronized void delete() {
92 if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
93 return swigValues[swigValue];
95 if (swigEnum.swigValue == swigValue)
97 throw new IllegalArgumentException(
"No enum " +
DoubleParam.class +
" with value " + swigValue);
100 @SuppressWarnings(
"unused")
102 this.swigValue = SwigNext.next++;
105 @SuppressWarnings(
"unused")
106 private DoubleParam(
int swigValue) {
107 this.swigValue = swigValue;
108 SwigNext.next = swigValue+1;
111 @SuppressWarnings(
"unused")
112 private DoubleParam(DoubleParam swigEnum) {
113 this.swigValue = swigEnum.swigValue;
114 SwigNext.next = this.swigValue+1;
117 private final int swigValue;
119 private static class SwigNext {
120 private static int next = 0;
136 if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
137 return swigValues[swigValue];
139 if (swigEnum.swigValue == swigValue)
141 throw new IllegalArgumentException(
"No enum " +
IntegerParam.class +
" with value " + swigValue);
144 @SuppressWarnings(
"unused")
146 this.swigValue = SwigNext.next++;
149 @SuppressWarnings(
"unused")
150 private IntegerParam(
int swigValue) {
151 this.swigValue = swigValue;
152 SwigNext.next = swigValue+1;
155 @SuppressWarnings(
"unused")
156 private IntegerParam(IntegerParam swigEnum) {
157 this.swigValue = swigEnum.swigValue;
158 SwigNext.next = this.swigValue+1;
161 private final int swigValue;
163 private static class SwigNext {
164 private static int next = 0;
178 if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
179 return swigValues[swigValue];
181 if (swigEnum.swigValue == swigValue)
183 throw new IllegalArgumentException(
"No enum " +
PresolveValues.class +
" with value " + swigValue);
186 @SuppressWarnings(
"unused")
188 this.swigValue = SwigNext.next++;
191 @SuppressWarnings(
"unused")
192 private PresolveValues(
int swigValue) {
193 this.swigValue = swigValue;
194 SwigNext.next = swigValue+1;
197 @SuppressWarnings(
"unused")
198 private PresolveValues(PresolveValues swigEnum) {
199 this.swigValue = swigEnum.swigValue;
200 SwigNext.next = this.swigValue+1;
203 private final int swigValue;
205 private static class SwigNext {
206 private static int next = 0;
221 if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
222 return swigValues[swigValue];
224 if (swigEnum.swigValue == swigValue)
226 throw new IllegalArgumentException(
"No enum " +
LpAlgorithmValues.class +
" with value " + swigValue);
229 @SuppressWarnings(
"unused")
231 this.swigValue = SwigNext.next++;
234 @SuppressWarnings(
"unused")
235 private LpAlgorithmValues(
int swigValue) {
236 this.swigValue = swigValue;
237 SwigNext.next = swigValue+1;
240 @SuppressWarnings(
"unused")
241 private LpAlgorithmValues(LpAlgorithmValues swigEnum) {
242 this.swigValue = swigEnum.swigValue;
243 SwigNext.next = this.swigValue+1;
246 private final int swigValue;
248 private static class SwigNext {
249 private static int next = 0;
263 if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
264 return swigValues[swigValue];
266 if (swigEnum.swigValue == swigValue)
268 throw new IllegalArgumentException(
"No enum " +
IncrementalityValues.class +
" with value " + swigValue);
271 @SuppressWarnings(
"unused")
273 this.swigValue = SwigNext.next++;
276 @SuppressWarnings(
"unused")
277 private IncrementalityValues(
int swigValue) {
278 this.swigValue = swigValue;
279 SwigNext.next = swigValue+1;
282 @SuppressWarnings(
"unused")
283 private IncrementalityValues(IncrementalityValues swigEnum) {
284 this.swigValue = swigEnum.swigValue;
285 SwigNext.next = this.swigValue+1;
288 private final int swigValue;
290 private static class SwigNext {
291 private static int next = 0;
305 if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
306 return swigValues[swigValue];
308 if (swigEnum.swigValue == swigValue)
310 throw new IllegalArgumentException(
"No enum " +
ScalingValues.class +
" with value " + swigValue);
313 @SuppressWarnings(
"unused")
315 this.swigValue = SwigNext.next++;
318 @SuppressWarnings(
"unused")
319 private ScalingValues(
int swigValue) {
320 this.swigValue = swigValue;
321 SwigNext.next = swigValue+1;
324 @SuppressWarnings(
"unused")
325 private ScalingValues(ScalingValues swigEnum) {
326 this.swigValue = swigEnum.swigValue;
327 SwigNext.next = this.swigValue+1;
330 private final int swigValue;
332 private static class SwigNext {
333 private static int next = 0;
static final native int MPSolverParameters_INCREMENTALITY_get()
static final native int MPSolverParameters_SCALING_get()
static final native int MPSolverParameters_DUAL_TOLERANCE_get()
static final native double MPSolverParameters_getDoubleParam(long jarg1, MPSolverParameters jarg1_, int jarg2)
static final native int MPSolverParameters_INCREMENTALITY_ON_get()
static final native int MPSolverParameters_RELATIVE_MIP_GAP_get()
static final native int MPSolverParameters_getIntegerParam(long jarg1, MPSolverParameters jarg1_, int jarg2)
static final native long new_MPSolverParameters()
static final native void delete_MPSolverParameters(long jarg1)
static final native int MPSolverParameters_BARRIER_get()
static final native int MPSolverParameters_PRESOLVE_ON_get()
static final native int MPSolverParameters_kDefaultPresolve_get()
static final native int MPSolverParameters_PRIMAL_get()
static final native double MPSolverParameters_kDefaultDualTolerance_get()
static final native int MPSolverParameters_PRESOLVE_OFF_get()
static final native int MPSolverParameters_SCALING_ON_get()
static final native void MPSolverParameters_setIntegerParam(long jarg1, MPSolverParameters jarg1_, int jarg2, int jarg3)
static final native int MPSolverParameters_DUAL_get()
static final native double MPSolverParameters_kDefaultPrimalTolerance_get()
static final native int MPSolverParameters_SCALING_OFF_get()
static final native int MPSolverParameters_LP_ALGORITHM_get()
static final native int MPSolverParameters_PRIMAL_TOLERANCE_get()
static final native int MPSolverParameters_kDefaultIncrementality_get()
static final native double MPSolverParameters_kDefaultRelativeMipGap_get()
static final native int MPSolverParameters_PRESOLVE_get()
static final native void MPSolverParameters_setDoubleParam(long jarg1, MPSolverParameters jarg1_, int jarg2, double jarg3)
static final native int MPSolverParameters_INCREMENTALITY_OFF_get()