CONOPT
Loading...
Searching...
No Matches
Conopt Class Reference

The Conopt class. More...

#include <conopt.hpp>

Public Member Functions

 Conopt (std::string modelName="conopt-model")
 
 ~Conopt ()
 
int solve ()
 method for starting the solving process of CONOPT.
 
coiHandle_t controlVector ()
 returns the control vector pointer.
 
void printStatus ()
 prints the status of the optimisation
 
std::string getName ()
 returns the model name
 
void loadModel (ConoptModelData &modeldata)
 loads the model and stores the pointer in the interface
 
int modelStatus ()
 returns the model status
 
int solutionStatus ()
 return the solution status
 
int iterations ()
 returns the number of iterations
 
double objectiveValue ()
 returns the objective value
 
const std::vector< double > & getVariableValues ()
 returns the variable values
 
const std::vector< double > & getVariableMarginals ()
 returns the variable marginals
 
const std::vector< int > & getVariableBasisStatus ()
 returns the variable basis status
 
const std::vector< int > & getVariableStatus ()
 returns the variable status
 
const std::vector< double > & getConstraintValues ()
 returns the constraint values
 
const std::vector< double > & getConstraintMarginals ()
 returns the constraint marginals
 
const std::vector< int > & getConstraintBasisStatus ()
 returns the constraint basis status
 
const std::vector< int > & getConstraintStatus ()
 returns the constraint status
 
void setMessageHandler (ConoptMessageHandler &msghandler)
 sets the message handler to the user supplied handler.
 
int sendMessage (std::string msg)
 sends a message to the message handler
 
void setVerbosityLevel (int verblevel)
 sets the verbosity level for messaging
 
int debugFV (int debugfv)
 turn Debugging of FDEval on and off.
 
int squareModel (int square)
 square models.
 
int setLicense (int licint1, int licint2, int licint3, std::string licstring)
 define the License Information.
 
int setItLim (int itlim)
 define the Iteration Limit.
 
int setErrLim (int errlim)
 define the Error Limit.
 
int fVincLin (int fvinclin)
 include the linear terms in function evaluations.
 
int fVforAll (int fvforall)
 call the FDEval for all constraints, including linear constraints.
 
int setMaxSup (int maxsup)
 limit on superbasics.
 
int allowEmptyRow (int emptyrow)
 allow empty rows.
 
int allowEmptyCol (int emptycol)
 allow empty columns.
 
int debug2D (int debug2d)
 turn debugging of 2nd derivatives on and off.
 
int disCont (int discont)
 allow discontinuous functions and derivatives.
 
int clearM (int clearm)
 ClearM.
 
int setResLim (double reslim)
 define resource limit.
 
int setMaxHeap (double maxheap)
 define Limit on Heap Memory.
 
int setThreadS (int threads)
 number of threads allowed internally in CONOPT.
 
int setThreadF (int threadf)
 number of threads allowed for simultaneous FDEval calls.
 
int setThread2D (int thread2d)
 number of threads allowed for simultaneous 2DDir calls.
 
int setThreadC (int threadc)
 check for thread compatibility.
 
int getMaxThreads ()
 returns the maximum number of threads that can be used by CONOPT.
 
double getMaxHeapUsed ()
 After a model has been solved this method will return the amount of heap memory used.
 
int getRangeErrors ()
 returns the range errors that were encountered.
 

Static Public Member Functions

static std::array< int, 3 > version ()
 returns the version number.
 

Static Public Attributes

static constexpr double Infinity = 1e+20
 

Detailed Description

The Conopt class.

Definition at line 27 of file conopt.hpp.

Field Documentation

◆ Infinity

double Conopt::Infinity = 1e+20
staticconstexpr

CONOPT value for infinity

Definition at line 30 of file conopt.hpp.


The documentation for this class was generated from the following file: