9package com.google.ortools.linearsolver;
11import java.lang.reflect.*;
17 private transient long swigCPtr;
26 return (obj ==
null) ? 0 : obj.swigCPtr;
33 throw new RuntimeException(
"Cannot release ownership as memory is not owned");
35 obj.swigCMemOwn =
false;
41 @SuppressWarnings({
"deprecation",
"removal"})
50 mainJNI.delete_MPObjective(swigCPtr);
61 mainJNI.MPObjective_clear(swigCPtr,
this);
71 mainJNI.MPObjective_setCoefficient(swigCPtr,
this,
MPVariable.
getCPtr(var), var, coeff);
80 return mainJNI.MPObjective_getCoefficient(swigCPtr,
this,
MPVariable.
getCPtr(var), var);
87 mainJNI.MPObjective_setOffset(swigCPtr,
this,
value);
94 return mainJNI.MPObjective_offset(swigCPtr,
this);
101 mainJNI.MPObjective_setOptimizationDirection(swigCPtr,
this, maximize);
108 mainJNI.MPObjective_setMinimization(swigCPtr,
this);
115 mainJNI.MPObjective_setMaximization(swigCPtr,
this);
122 return mainJNI.MPObjective_maximization(swigCPtr,
this);
129 return mainJNI.MPObjective_minimization(swigCPtr,
this);
144 return mainJNI.MPObjective_value(swigCPtr,
this);
154 return mainJNI.MPObjective_bestBound(swigCPtr,
this);