CONOPT
Loading...
Searching...
No Matches

Functions

int COI_CALLCONV coiCreate (coiHandle_t *cntvect)
 initialises and create the control vector.
 
int COI_CALLCONV coiFree (coiHandle_t *cntvect)
 frees the control vector.
 
void COI_CALLCONV coiFinalize (void)
 finializes the solving process for CONOPT. This must be called when using OpenMP. It will terminate the running processes cleanly.
 

Detailed Description

The Control Vector is the main communication region between the modeler and CONOPT.

In Fortran, memory for the control must be allocated by the user. The size of the Control Vector must be at least equal to that defined by coidef_size(). The user is the responsible for freeing the allocated memory.

In C, the method coiCreate() performs the initialisation of the Control Vector. The memory is freed by a call to coiFree().

Note
You can work simultaneously with multiple models by using one control vector for each model, or you can use one control vector for a sequence of models.

Function Documentation

◆ coiCreate()

int COI_CALLCONV coiCreate ( coiHandle_t * cntvect)

initialises and create the control vector.

Parameters
*cntvecta pointer to the control vector

◆ coiFree()

int COI_CALLCONV coiFree ( coiHandle_t * cntvect)

frees the control vector.

Parameters
*cntvecta pointer to the control vector

◆ coiFinalize()

void COI_CALLCONV coiFinalize ( void )

finializes the solving process for CONOPT. This must be called when using OpenMP. It will terminate the running processes cleanly.