CONOPT
Loading...
Searching...
No Matches
ConoptModelData Class

Topics

 Defining the model
 Methods that are used to define the model to be solved by CONOPT.
 
 Querying the model
 Methods to query information about the model.
 
 Evaluating non-linear function values and derivatives
 Virtual functions to be implemented by the user for the evaluation of non-linear functions and derivatives.
 
 Defining the second derivative
 Virtual functions that can be optionally implemented by the user to define the second order derivatives.
 

Data Structures

class  ConoptModelData
 The Model Data class. More...
 

Functions

 ConoptModelData::ConoptModelData ()
 
virtual ConoptModelData::~ConoptModelData ()
 

Detailed Description

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.

Function Documentation

◆ ConoptModelData()

ConoptModelData::ConoptModelData ( )

Constructor

◆ ~ConoptModelData()

virtual ConoptModelData::~ConoptModelData ( )
virtual

Destructor