CONOPT
Loading...
Searching...
No Matches

Functions

integer(c_int) function conopt::coidef_ini (cntvect)
 initializes the Control Vector by placing default values in the various positions.
 
integer(c_int) function conopt::coi_create (cntvect)
 initializes CONOPT and creates the control vector.
 
integer(c_int) function conopt::coi_free (cntvect)
 frees the control vector.
 

Detailed Description

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

The initialisation of the control vector is preformed by calling conopt::coi_create(). This will create a vector that is of the appropriate size for the control vector. The memory allocated for the control vector is freed with a call to conopt::coi_free().

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

◆ coidef_ini()

integer(c_int) function conopt::coidef_ini ( integer(c_int), dimension(*), intent(inout) cntvect)

initializes the Control Vector by placing default values in the various positions.

Attention
Either this method or conopt::coi_create() must be called.

There is currently no error checking and this method will always return 0.

If you have multiple models with multiple Control Vectors then you must call either this method or conopt::coi_create() to create a control vector for each. If you solve a sequence of different models then you can use the same Control Vector provided you don't need to reinitialize it. If the control vector must be reinitialized, then it is necessary to call conopt::coi_free() followed by conopt::coi_create() between the solves.

Parameters
cntvectthe control vector

Definition at line 53 of file conopt.f90.

◆ coi_create()

integer(c_int) function conopt::coi_create ( integer(c_int), dimension(:), pointer cntvect)

initializes CONOPT and creates the control vector.

This method calls an initialization step for the Control Vector that places default values in the various positions. In addition, the initialization will set the parameters associated with the base and array indices, i.e. starting at 1 for Fortran and 0 for C.

If you have multiple models with multiple Control Vectors then you must call this method for each control vector. If you solve a sequence of different models then you can use the same Control Vector provided you don't need to reinitialize it. If the control vector must be reinitialized, then it is necessary to call conopt::coi_free() followed by conopt::coi_create() between the solves.

Parameters
cntvectthe control vector

Definition at line 1725 of file conopt.f90.

◆ coi_free()

integer(c_int) function conopt::coi_free ( integer(c_int), dimension(:), pointer cntvect)

frees the control vector.

Parameters
cntvectthe control vector

Definition at line 1748 of file conopt.f90.