CONOPT
|
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 | jconopt.ModelData |
A class that can be extended to build and solve a model using Conopt. More... | |
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 jconopt.ModelData class, then defining the virtual functions that correspond to callbacks in C API.
Defining the model requires the use of the jconopt.ModelData.addConstraint and jconopt.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 jconopt.ModelData.evaluateNonlinearTerm and jconopt.ModelData.evaluateNonlinerJacobian.