9package com.google.ortools.modelbuilder;
12 private transient long swigCPtr;
21 return (obj ==
null) ? 0 : obj.swigCPtr;
28 throw new RuntimeException(
"Cannot release ownership as memory is not owned");
30 obj.swigCMemOwn =
false;
36 @SuppressWarnings({
"deprecation",
"removal"})
45 mainJNI.delete_ModelSolverHelper(swigCPtr);
52 this(mainJNI.new_ModelSolverHelper(solver_name),
true);
56 return mainJNI.ModelSolverHelper_solverIsSupported(swigCPtr,
this);
64 return mainJNI.ModelSolverHelper_interruptSolve(swigCPtr,
this);
67 public void setLogCallback(java.util.function.Consumer<String> log_callback) {
68 mainJNI.ModelSolverHelper_setLogCallback(swigCPtr,
this, log_callback);
72 mainJNI.ModelSolverHelper_clearLogCallback(swigCPtr,
this);
76 return mainJNI.ModelSolverHelper_hasResponse(swigCPtr,
this);
80 return mainJNI.ModelSolverHelper_hasSolution(swigCPtr,
this);
88 return mainJNI.ModelSolverHelper_getObjectiveValue(swigCPtr,
this);
92 return mainJNI.ModelSolverHelper_getBestObjectiveBound(swigCPtr,
this);
96 return mainJNI.ModelSolverHelper_getVariableValue(swigCPtr,
this, var_index);
100 return mainJNI.ModelSolverHelper_getReducedCost(swigCPtr,
this, var_index);
104 return mainJNI.ModelSolverHelper_getDualValue(swigCPtr,
this, ct_index);
108 return mainJNI.ModelSolverHelper_getActivity(swigCPtr,
this, ct_index);
112 return mainJNI.ModelSolverHelper_getStatusString(swigCPtr,
this);
116 return mainJNI.ModelSolverHelper_getWallTime(swigCPtr,
this);
120 return mainJNI.ModelSolverHelper_getUserTime(swigCPtr,
this);
124 mainJNI.ModelSolverHelper_setTimeLimitInSeconds(swigCPtr,
this, limit);
128 mainJNI.ModelSolverHelper_setSolverSpecificParameters(swigCPtr,
this, solver_specific_parameters);
132 mainJNI.ModelSolverHelper_enableOutput(swigCPtr,
this, enabled);