9 package com.google.ortools.linearsolver;
11 import java.lang.reflect.*;
14 private transient long swigCPtr;
23 return (obj ==
null) ? 0 : obj.swigCPtr;
30 public synchronized void delete() {
91 if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
92 return swigValues[swigValue];
94 if (swigEnum.swigValue == swigValue)
96 throw new IllegalArgumentException(
"No enum " +
DoubleParam.class +
" with value " + swigValue);
99 @SuppressWarnings(
"unused")
101 this.swigValue = SwigNext.next++;
104 @SuppressWarnings(
"unused")
105 private DoubleParam(
int swigValue) {
106 this.swigValue = swigValue;
107 SwigNext.next = swigValue+1;
110 @SuppressWarnings(
"unused")
111 private DoubleParam(DoubleParam swigEnum) {
112 this.swigValue = swigEnum.swigValue;
113 SwigNext.next = this.swigValue+1;
116 private final int swigValue;
118 private static class SwigNext {
119 private static int next = 0;
135 if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
136 return swigValues[swigValue];
138 if (swigEnum.swigValue == swigValue)
140 throw new IllegalArgumentException(
"No enum " +
IntegerParam.class +
" with value " + swigValue);
143 @SuppressWarnings(
"unused")
145 this.swigValue = SwigNext.next++;
148 @SuppressWarnings(
"unused")
149 private IntegerParam(
int swigValue) {
150 this.swigValue = swigValue;
151 SwigNext.next = swigValue+1;
154 @SuppressWarnings(
"unused")
155 private IntegerParam(IntegerParam swigEnum) {
156 this.swigValue = swigEnum.swigValue;
157 SwigNext.next = this.swigValue+1;
160 private final int swigValue;
162 private static class SwigNext {
163 private static int next = 0;
177 if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
178 return swigValues[swigValue];
180 if (swigEnum.swigValue == swigValue)
182 throw new IllegalArgumentException(
"No enum " +
PresolveValues.class +
" with value " + swigValue);
185 @SuppressWarnings(
"unused")
187 this.swigValue = SwigNext.next++;
190 @SuppressWarnings(
"unused")
191 private PresolveValues(
int swigValue) {
192 this.swigValue = swigValue;
193 SwigNext.next = swigValue+1;
196 @SuppressWarnings(
"unused")
197 private PresolveValues(PresolveValues swigEnum) {
198 this.swigValue = swigEnum.swigValue;
199 SwigNext.next = this.swigValue+1;
202 private final int swigValue;
204 private static class SwigNext {
205 private static int next = 0;
220 if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
221 return swigValues[swigValue];
223 if (swigEnum.swigValue == swigValue)
225 throw new IllegalArgumentException(
"No enum " +
LpAlgorithmValues.class +
" with value " + swigValue);
228 @SuppressWarnings(
"unused")
230 this.swigValue = SwigNext.next++;
233 @SuppressWarnings(
"unused")
234 private LpAlgorithmValues(
int swigValue) {
235 this.swigValue = swigValue;
236 SwigNext.next = swigValue+1;
239 @SuppressWarnings(
"unused")
240 private LpAlgorithmValues(LpAlgorithmValues swigEnum) {
241 this.swigValue = swigEnum.swigValue;
242 SwigNext.next = this.swigValue+1;
245 private final int swigValue;
247 private static class SwigNext {
248 private static int next = 0;
262 if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
263 return swigValues[swigValue];
265 if (swigEnum.swigValue == swigValue)
267 throw new IllegalArgumentException(
"No enum " +
IncrementalityValues.class +
" with value " + swigValue);
270 @SuppressWarnings(
"unused")
272 this.swigValue = SwigNext.next++;
275 @SuppressWarnings(
"unused")
276 private IncrementalityValues(
int swigValue) {
277 this.swigValue = swigValue;
278 SwigNext.next = swigValue+1;
281 @SuppressWarnings(
"unused")
282 private IncrementalityValues(IncrementalityValues swigEnum) {
283 this.swigValue = swigEnum.swigValue;
284 SwigNext.next = this.swigValue+1;
287 private final int swigValue;
289 private static class SwigNext {
290 private static int next = 0;
304 if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
305 return swigValues[swigValue];
307 if (swigEnum.swigValue == swigValue)
309 throw new IllegalArgumentException(
"No enum " +
ScalingValues.class +
" with value " + swigValue);
312 @SuppressWarnings(
"unused")
314 this.swigValue = SwigNext.next++;
317 @SuppressWarnings(
"unused")
318 private ScalingValues(
int swigValue) {
319 this.swigValue = swigValue;
320 SwigNext.next = swigValue+1;
323 @SuppressWarnings(
"unused")
324 private ScalingValues(ScalingValues swigEnum) {
325 this.swigValue = swigEnum.swigValue;
326 SwigNext.next = this.swigValue+1;
329 private final int swigValue;
331 private static class SwigNext {
332 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()