A necessary class for defining the model data and function evaluations.
Defining and solving a model using CONOPT requires a model data object. The user must define a class that inherits the ConoptModelData class, then defining the virtual functions that correspond to callbacks in C API.
Defining the model either requires the use of the ConoptModeldata::addConstraint and ConoptModelData::addVariable methods, or the user can redefine the virtual method ConoptModelData::readMatrix. Solving the model requires the evaluation of the nonlinear functions and corresponding derivatives. As such it is necessary to implement the virtual function ConoptModelData::FDEval.
◆ ConoptModelData()
ConoptModelData::ConoptModelData |
( |
| ) |
|
◆ ~ConoptModelData()
virtual ConoptModelData::~ConoptModelData |
( |
| ) |
|
|
virtual |