CONOPT
Loading...
Searching...
No Matches
Utility Routines

Functions

int COI_CALLCONV COI_Solve (coiHandle_t cntvect)
 method for starting the solving process of CONOPT.
 
void COI_CALLCONV COIGET_Version (int *major, int *minor, int *patch)
 returns the version number. It can be used to ensure that the modeler is linked to the correct version of the CONOPT DLL.
 
int COI_CALLCONV COIGET_MaxThreads (coiHandle_t cntvect)
 returns the maximum number of threads that can be used by CONOPT.
 
double COI_CALLCONV COIGET_MaxHeapUsed (coiHandle_t cntvect)
 After a model has been solved this method will return the amount of heap memory used.
 
int COI_CALLCONV COIGET_RangeErrors (coiHandle_t cntvect)
 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

◆ COI_Solve()

int COI_CALLCONV COI_Solve ( coiHandle_t cntvect)

method for starting the solving process of CONOPT.

Parameters
cntvectthe control vector

◆ COIGET_Version()

void COI_CALLCONV COIGET_Version ( int * major,
int * minor,
int * patch )

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

Parameters
majormajor version number
minorminor version number
patchpatch version number

◆ COIGET_MaxThreads()

int COI_CALLCONV COIGET_MaxThreads ( coiHandle_t cntvect)

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.

Parameters
cntvectthe control vector

◆ COIGET_MaxHeapUsed()

double COI_CALLCONV COIGET_MaxHeapUsed ( coiHandle_t cntvect)

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

Parameters
cntvectthe control vector

◆ COIGET_RangeErrors()

int COI_CALLCONV COIGET_RangeErrors ( coiHandle_t cntvect)

returns the range errors that were encountered.

Parameters
cntvectthe control vector