CONOPT
Loading...
Searching...
No Matches

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  pyconopt.ModelData
 A class that can be extended to build and solve a model using Conopt. More...
 

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 pyconopt.ModelData class, then defining the virtual functions that correspond to callbacks in C API.

Defining the model requires the use of the pyconopt.ModelData.addConstraint and pyconopt.ModelData.addVariable methods. Solving the model requires the evaluation of the nonlinear functions and corresponding derivatives. As such it is necessary to implement the virtual functions pyconopt.ModelData.evaluateNonlinearTerm and pyconopt.ModelData.evaluateNonlinerJacobian.