35 COI_API
ConoptCpp(std::string modelName =
"conopt-model");
54 COI_API
int checkModelAndParameters();
221 virtual int Option(
int ncall,
double* rval,
int* ival,
int* lval,
char* name,
void* usrmem)
227 virtual int TriOrd(
int mode,
int type,
int status,
int rowno,
int colno,
int inf,
double value,
double resid,
269 COI_API
int setLicense(
int licint1,
int licint2,
int licint3, std::string licstring);
430 coiHandle_t cntVect_;
433 ConoptSolution solution_;
434 ConoptStatus status_;
The message handler class.
program fvforall
Main program. A simple setup and call of CONOPT.
program fvinclin
Main program. A simple setup and call of CONOPT.
COI_API int sendMessage(std::string msg)
sends a message to the message handler
COI_API void setMessageHandler(ConoptMessageHandler &msghandler)
sets the message handler to the user supplied handler.
COI_API void setVerbosityLevel(int verblevel)
sets the verbosity level for messaging
COI_API void loadModel(ConoptModelData &modeldata)
loads the model and stores the pointer in the interface
COI_API ConoptCpp(std::string modelName="conopt-model")
COI_API int setErrLim(int errlim)
define the Error Limit.
COI_API int squareModel(int square)
square models.
COI_API int fVforAll(int fvforall)
call the FDEval for all constraints, including linear constraints.
COI_API int setThread2D(int thread2d)
number of threads allowed for simultaneous 2DDir calls.
COI_API int allowEmptyCol(int emptycol)
allow empty columns.
COI_API int setItLim(int itlim)
define the Iteration Limit.
COI_API int setThreadC(int threadc)
check for thread compatibility.
COI_API int clearM(int clearm)
ClearM.
COI_API int setThreadS(int threads)
number of threads allowed internally in CONOPT.
COI_API int setLicense(int licint1, int licint2, int licint3, std::string licstring)
define the License Information.
COI_API int setResLim(double reslim)
define resource limit.
COI_API int setMaxHeap(double maxheap)
define Limit on Heap Memory.
COI_API int setMaxSup(int maxsup)
limit on superbasics.
COI_API int debugFV(int debugfv)
turn Debugging of FDEval on and off.
COI_API int setThreadF(int threadf)
number of threads allowed for simultaneous FDEval calls.
COI_API int fVincLin(int fvinclin)
include the linear terms in function evaluations.
COI_API int disCont(int discont)
allow discontinuous functions and derivatives.
COI_API int debug2D(int debug2d)
turn debugging of 2nd derivatives on and off.
COI_API int allowEmptyRow(int emptyrow)
allow empty rows.
COI_API const std::vector< int > & getConstraintBasisStatus()
returns the constraint basis status
COI_API int modelStatus()
returns the model status
COI_API const std::vector< int > & getVariableBasisStatus()
returns the variable basis status
COI_API const std::vector< int > & getVariableStatus()
returns the variable status
COI_API const std::vector< double > & getConstraintMarginals()
returns the constraint marginals
COI_API int iterations()
returns the number of iterations
COI_API double objectiveValue()
returns the objective value
COI_API const std::vector< int > & getConstraintStatus()
returns the constraint status
COI_API int solutionStatus()
return the solution status
COI_API const std::vector< double > & getVariableValues()
returns the variable values
COI_API const std::vector< double > & getVariableMarginals()
returns the variable marginals
COI_API const std::vector< double > & getConstraintValues()
returns the constraint values
COI_API double getMaxHeapUsed()
After a model has been solved this method will return the amount of heap memory used.
static COI_API std::array< int, 3 > version()
returns the version number.
COI_API std::string getName()
returns the model name
COI_API void printStatus()
prints the status of the optimisation
COI_API coiHandle_t controlVector()
returns the control vector pointer.
COI_API int solve()
method for starting the solving process of CONOPT.
COI_API int getRangeErrors()
returns the range errors that were encountered.
COI_API int getMaxThreads()
returns the maximum number of threads that can be used by CONOPT.
The message handler class for the CONOPT C++ API.
The model data class for the CONOPT C++ API.
program square
Main program. A simple setup and call of CONOPT.