CONOPT
Loading...
Searching...
No Matches

Functions

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

int Conopt::solve ( )

method for starting the solving process of CONOPT.

◆ controlVector()

coiHandle_t Conopt::controlVector ( )

returns the control vector pointer.

This is for use in the C-interface methods

◆ printStatus()

void Conopt::printStatus ( )

prints the status of the optimisation

◆ getName()

std::string Conopt::getName ( )

returns the model name

◆ version()

static std::array< int, 3 > Conopt::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()

int Conopt::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()

double Conopt::getMaxHeapUsed ( )

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

◆ getRangeErrors()

int Conopt::getRangeErrors ( )

returns the range errors that were encountered.