CONOPT
Loading...
Searching...
No Matches

Functions

COI_API int ConoptCpp::solve ()
 method for starting the solving process of CONOPT.
 
COI_API coiHandle_t ConoptCpp::controlVector ()
 returns the control vector pointer.
 
COI_API void ConoptCpp::printStatus ()
 prints the status of the optimisation
 
COI_API std::string ConoptCpp::getName ()
 returns the model name
 
static COI_API std::array< int, 3 > ConoptCpp::version ()
 returns the version number.
 
COI_API int ConoptCpp::getMaxThreads ()
 returns the maximum number of threads that can be used by CONOPT.
 
COI_API double ConoptCpp::getMaxHeapUsed ()
 After a model has been solved this method will return the amount of heap memory used.
 
COI_API int ConoptCpp::getRangeErrors ()
 returns the range errors that were encountered.
 

Detailed Description

This section describes utility routines in the CONOPT DLL.

These methods are called to start the solver and retrieve information about the solver.

Function Documentation

◆ solve()

COI_API int ConoptCpp::solve ( )

method for starting the solving process of CONOPT.

◆ controlVector()

COI_API coiHandle_t ConoptCpp::controlVector ( )

returns the control vector pointer.

This is for use in the C-interface methods

◆ printStatus()

COI_API void ConoptCpp::printStatus ( )

prints the status of the optimisation

◆ getName()

COI_API std::string ConoptCpp::getName ( )

returns the model name

◆ version()

static COI_API std::array< int, 3 > ConoptCpp::version ( )
static

returns the version number.

It can be used to ensure that the modeler is linked to the correct version of the CONOPT DLL.

◆ getMaxThreads()

COI_API int ConoptCpp::getMaxThreads ( )

returns the maximum number of threads that can be used by CONOPT.

If you are using multiple threads it may be necessary to know in advance how many threads CONOPT can use. If called inside a parallel loop, this method will return one—indicating that CONOPT cannot use multiple threads when CONOPT itself is called in parallel. Therefore, this method should be called in some sequential initialization code and not inside a function evaluation routine, that could be called in parallel.

◆ getMaxHeapUsed()

COI_API double ConoptCpp::getMaxHeapUsed ( )

After a model has been solved this method will return the amount of heap memory used.

◆ getRangeErrors()

COI_API int ConoptCpp::getRangeErrors ( )

returns the range errors that were encountered.