21 private transient long swigCPtr;
24 protected Conopt(
long cPtr,
boolean cMemoryOwn) {
30 return (obj ==
null) ? 0 : obj.swigCPtr;
37 throw new RuntimeException(
"Cannot release ownership as memory is not owned");
39 obj.swigCMemOwn =
false;
45 @SuppressWarnings({
"deprecation",
"removal"})
353 public int setLicense(
int licint1,
int licint2,
int licint3, String licstring) {
static long getCPtr(ConoptModelData obj)
Conopt(long cPtr, boolean cMemoryOwn)
static long getCPtr(Conopt obj)
transient boolean swigCMemOwn
synchronized void delete()
static long swigRelease(Conopt obj)
int checkModelAndParameters()
The message handler class.
static long getCPtr(MessageHandler obj)
static final native double Conopt_objectiveValue(long jarg1, Conopt jarg1_)
static final native int Conopt_setThreadS(long jarg1, Conopt jarg1_, int jarg2)
static final native int Conopt_setResLim(long jarg1, Conopt jarg1_, double jarg2)
static final native String Conopt_getName(long jarg1, Conopt jarg1_)
static final native int Conopt_debugFV(long jarg1, Conopt jarg1_, int jarg2)
static final native int Conopt_setMaxSup(long jarg1, Conopt jarg1_, int jarg2)
static final native int Conopt_clearM(long jarg1, Conopt jarg1_, int jarg2)
static final native double Conopt_getMaxHeapUsed(long jarg1, Conopt jarg1_)
static final native int Conopt_solutionStatus(long jarg1, Conopt jarg1_)
static final native int[] Conopt_version()
static final native int Conopt_iterations(long jarg1, Conopt jarg1_)
static final native int Conopt_getMaxThreads(long jarg1, Conopt jarg1_)
static final native int Conopt_squareModel(long jarg1, Conopt jarg1_, int jarg2)
static final native int Conopt_setMaxHeap(long jarg1, Conopt jarg1_, double jarg2)
static final native int[] Conopt_getVariableBasisStatus(long jarg1, Conopt jarg1_)
static final native void Conopt_loadModel(long jarg1, Conopt jarg1_, long jarg2, ConoptModelData jarg2_)
static final native int Conopt_checkModelAndParameters(long jarg1, Conopt jarg1_)
static final native int Conopt_setItLim(long jarg1, Conopt jarg1_, int jarg2)
static final native int Conopt_allowEmptyCol(long jarg1, Conopt jarg1_, int jarg2)
static final native long new_Conopt__SWIG_0(String jarg1)
static final native int Conopt_fVforAll(long jarg1, Conopt jarg1_, int jarg2)
static final native int[] Conopt_getConstraintBasisStatus(long jarg1, Conopt jarg1_)
static final native void Conopt_printStatus(long jarg1, Conopt jarg1_)
static final native int Conopt_disCont(long jarg1, Conopt jarg1_, int jarg2)
static final native int Conopt_sendMessage(long jarg1, Conopt jarg1_, String jarg2)
static final native double[] Conopt_getConstraintMarginals(long jarg1, Conopt jarg1_)
static final native int[] Conopt_getVariableStatus(long jarg1, Conopt jarg1_)
static final native double[] Conopt_getVariableValues(long jarg1, Conopt jarg1_)
static final native void Conopt_setMessageHandler(long jarg1, Conopt jarg1_, long jarg2, MessageHandler jarg2_)
static final native void delete_Conopt(long jarg1)
static final native int Conopt_setThreadF(long jarg1, Conopt jarg1_, int jarg2)
static final native int Conopt_modelStatus(long jarg1, Conopt jarg1_)
static final native int Conopt_allowEmptyRow(long jarg1, Conopt jarg1_, int jarg2)
static final native int Conopt_debug2D(long jarg1, Conopt jarg1_, int jarg2)
static final native long Conopt_controlVector(long jarg1, Conopt jarg1_)
static final native int Conopt_setThreadC(long jarg1, Conopt jarg1_, int jarg2)
static final native int Conopt_fVincLin(long jarg1, Conopt jarg1_, int jarg2)
static final native void Conopt_setVerbosityLevel(long jarg1, Conopt jarg1_, int jarg2)
static final native int Conopt_getRangeErrors(long jarg1, Conopt jarg1_)
static final native int Conopt_setLicense(long jarg1, Conopt jarg1_, int jarg2, int jarg3, int jarg4, String jarg5)
static final native double[] Conopt_getVariableMarginals(long jarg1, Conopt jarg1_)
static final native int[] Conopt_getConstraintStatus(long jarg1, Conopt jarg1_)
static final native double[] Conopt_getConstraintValues(long jarg1, Conopt jarg1_)
static final native int Conopt_setErrLim(long jarg1, Conopt jarg1_, int jarg2)
static final native long new_Conopt__SWIG_1()
static final native int Conopt_setThread2D(long jarg1, Conopt jarg1_, int jarg2)
static final native int Conopt_solve(long jarg1, Conopt jarg1_)
program fvforall
Main program. A simple setup and call of CONOPT.
program fvinclin
Main program. A simple setup and call of CONOPT.
void setVerbosityLevel(int verblevel)
void setMessageHandler(MessageHandler msghandler)
int sendMessage(String msg)
void loadModel(ConoptModelData modeldata)
int allowEmptyCol(int emptycol)
allow empty columns.
int setThreadF(int threadf)
number of threads allowed for simultaneous FDEval calls.
int allowEmptyRow(int emptyrow)
allow empty rows.
int debug2D(int debug2d)
turn debugging of 2nd derivatives on and off.
int squareModel(int square)
square models.
int setThread2D(int thread2d)
number of threads allowed for simultaneous 2DDir calls.
int setErrLim(int errlim)
define the Error Limit.
int setThreadC(int threadc)
check for thread compatibility.
int setItLim(int itlim)
define the Iteration Limit.
int setResLim(double reslim)
define resource limit.
int clearM(int clearm)
ClearM.
int setThreadS(int threads)
number of threads allowed internally in CONOPT.
int debugFV(int debugfv)
turn Debugging of FDEval on and off.
int setMaxHeap(double maxheap)
define Limit on Heap Memory.
int disCont(int discont)
allow discontinuous functions and derivatives.
int setLicense(int licint1, int licint2, int licint3, String licstring)
define the License Information.
int setMaxSup(int maxsup)
limit on superbasics.
int fVforAll(int fvforall)
call the FDEval for all constraints, including linear constraints.
int fVincLin(int fvinclin)
include the linear terms in function evaluations.
int[] getVariableStatus()
int[] getVariableBasisStatus()
double[] getVariableValues()
int[] getConstraintBasisStatus()
double[] getConstraintValues()
double[] getConstraintMarginals()
double[] getVariableMarginals()
int[] getConstraintStatus()
int solve()
method for starting the solving process of CONOPT.
SWIGTYPE_p_coiHandle_t controlVector()
program square
Main program. A simple setup and call of CONOPT.