9package com.google.ortools.linearsolver;
11import java.lang.reflect.*;
19 private transient long swigCPtr;
28 return (obj ==
null) ? 0 : obj.swigCPtr;
35 throw new RuntimeException(
"Cannot release ownership as memory is not owned");
37 obj.swigCMemOwn =
false;
43 @SuppressWarnings({
"deprecation",
"removal"})
52 mainJNI.delete_MPConstraint(swigCPtr);
62 return mainJNI.MPConstraint_name(swigCPtr,
this);
72 mainJNI.MPConstraint_setCoefficient(swigCPtr,
this,
MPVariable.
getCPtr(var), var, coeff);
80 return mainJNI.MPConstraint_getCoefficient(swigCPtr,
this,
MPVariable.
getCPtr(var), var);
87 return mainJNI.MPConstraint_lb(swigCPtr,
this);
94 return mainJNI.MPConstraint_ub(swigCPtr,
this);
101 mainJNI.MPConstraint_setLb(swigCPtr,
this,
lb);
108 mainJNI.MPConstraint_setUb(swigCPtr,
this,
ub);
115 mainJNI.MPConstraint_setBounds(swigCPtr,
this,
lb,
ub);
122 return mainJNI.MPConstraint_isLazy(swigCPtr,
this);
139 mainJNI.MPConstraint_setIsLazy(swigCPtr,
this, laziness);
146 return mainJNI.MPConstraint_index(swigCPtr,
this);
154 return mainJNI.MPConstraint_dualValue(swigCPtr,
this);