CONOPT
|
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. | |
This section describes utility routines in the CONOPT DLL.
These methods are called to start the solver and retrieve information about the solver.
int Conopt::solve | ( | ) |
method for starting the solving process of CONOPT.
coiHandle_t Conopt::controlVector | ( | ) |
returns the control vector pointer.
This is for use in the C-interface methods
void Conopt::printStatus | ( | ) |
prints the status of the optimisation
std::string Conopt::getName | ( | ) |
returns the model name
|
static |
returns the version number.
It can be used to ensure that the modeler is linked to the correct version of the CONOPT DLL.
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.
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.