9package com.google.ortools.constraintsolver;
17 private transient long swigCPtr;
20 super(mainJNI.OptimizeVar_SWIGUpcast(cPtr), cMemoryOwn);
25 return (obj ==
null) ? 0 : obj.swigCPtr;
32 throw new RuntimeException(
"Cannot release ownership as memory is not owned");
34 obj.swigCMemOwn =
false;
40 @SuppressWarnings({
"deprecation",
"removal"})
49 mainJNI.delete_OptimizeVar(swigCPtr);
70 return mainJNI.OptimizeVar_best(swigCPtr,
this);
77 long cPtr = mainJNI.OptimizeVar_var(swigCPtr,
this);
78 return (cPtr == 0) ? null :
new IntVar(cPtr,
false);
93 mainJNI.OptimizeVar_refuteDecision(swigCPtr,
this,
Decision.
getCPtr(d), d);
97 return mainJNI.OptimizeVar_atSolution(swigCPtr,
this);
101 return mainJNI.OptimizeVar_acceptSolution(swigCPtr,
this);
105 return mainJNI.OptimizeVar_Name(swigCPtr,
this);
109 return mainJNI.OptimizeVar_toString(swigCPtr,
this);
113 mainJNI.OptimizeVar_applyBound(swigCPtr,
this);