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_MPVariable(swigCPtr);
60 return mainJNI.MPVariable_name(swigCPtr,
this);
67 mainJNI.MPVariable_setInteger(swigCPtr,
this, integer);
78 return mainJNI.MPVariable_solutionValue(swigCPtr,
this);
85 return mainJNI.MPVariable_index(swigCPtr,
this);
92 return mainJNI.MPVariable_lb(swigCPtr,
this);
99 return mainJNI.MPVariable_ub(swigCPtr,
this);
106 mainJNI.MPVariable_setLb(swigCPtr,
this,
lb);
113 mainJNI.MPVariable_setUb(swigCPtr,
this,
ub);
120 mainJNI.MPVariable_setBounds(swigCPtr,
this,
lb,
ub);
128 return mainJNI.MPVariable_reducedCost(swigCPtr,
this);