|
| Tut_ModelData () |
|
void | buildModel () |
| adds the variables and constraints for the problem
|
|
int | FDEval (const double x[], double *g, double jac[], int rowno, const int jacnum[], int mode, int ignerr, int *errcnt, int numvar, int numjac, int thread) |
| defines the nonlinearities of the model by returning numerical values.
|
|
| ConoptModelData () |
|
virtual | ~ConoptModelData () |
|
virtual int | readMatrix (double lower[], double curr[], double upper[], int vsta[], int type[], double rhs[], int esta[], int colsta[], int rowno[], double value[], int nlflag[], int numvar, int numcon, int numnz) |
| loads the structure of the model into CONOPT.
|
|
void | setProblemDimension (unsigned int numvar, unsigned int numcons, unsigned int numnz, unsigned int numnlnz) |
| sets the problem dimension. This is called if the user wants to implement a custom readMatrix() method.
|
|
int | addConstraint (ConoptConstraintType constype, double rhs, int slackstatus=-1) |
| adds a constraint to the problem. The non-zero coefficients are added later
|
|
int | addConstraint (ConoptConstraintType constype, double rhs, const std::vector< int > &varindex, const std::vector< double > &value, const std::vector< int > &nlflag, int slackstatus=-1) |
| adds a constraint to the problem. The matrix non-zeros are added based on the supplied variables
|
|
int | addVariable (double lower, double upper, double curr=0, int varstatus=-1) |
| adds a variable to the model. The non-zero coefficients are added later.
|
|
int | addVariable (double lower, double upper, const std::vector< int > &consindex, const std::vector< double > &value, const std::vector< int > &nlflag, double curr=0, int varstatus=-1) |
| adds a variable to the problem. The matrix non-zeros are added based on the supplied constraints.
|
|
void | setObjectiveElement (ConoptObjectiveElement elem, int elemindex) |
| sets the index for the objective variable or constraint
|
|
void | setOptimizationSense (ConoptSense sense) |
| sets the optimisation direction.
|
|
void | setInitialStatusOption (int inistat) |
| the setting to indicate how the initial status of the variables and slack variables will be handled.
|
|
int | numVar () const |
| returns the number of variables in the model
|
|
int | numCons () const |
| returns the number of constraints in the model
|
|
int | numHessianNonzeros () const |
| returns the number of non-zeros in the Hessian
|
|
const ConoptVariable & | getVariable (int index) const |
| returns a reference to the variable object
|
|
const ConoptConstraint & | getConstraint (int index) const |
| returns a reference to the constraint object
|
|
void | setSDEvaluationType (ConoptSDEvaluationType sdevaltype) |
| informs CONOPT of the method for evaluating the second derivative
|
|
void | setSDLagrangianStructure (const std::vector< int > &rownum, const std::vector< int > &colnum) |
| sets the structure of the second derivatives of the Lagrangian
|
|
const std::vector< int > & | getSDLagrangianRowNumbers () const |
| returns the row numbers in the second derivative of the lagrangian structure
|
|
const std::vector< int > & | getSDLagrangianColumnNumbers () const |
| returns the column numbers in the second derivative of the lagrangian structure
|
|
virtual int | FDEvalIni (const double x[], const int rowlist[], int mode, int listsize, int numthread, int ignerr, int *errcnt, int numvar) |
| an optional function that can be used to improve the efficiency of the function evaulations.
|
|
virtual int | FDEvalEnd (int ignerr, int *errcnt) |
| an optional function that will be called at the end of the function evaluation stage.
|
|
virtual int | FDInterval (const double xmin[], const double xmax[], double *gmin, double *gmax, double jmin[], double jamx[], int rowno, const int jacnum[], int mode, double pinf, int numvar, int numjac) |
| defines intervals for the nonlinearities of the model, again by returning numerical values.
|
|
virtual int | SDLagrVal (const double x[], const double u[], const int hsrw[], const int hscl[], double hsvl[], int *nodrv, int numvar, int numcon, int nhess) |
| Computes and returns the numerical values of the Hessian.
|
|
virtual int | SDDirLagr (const double x[], const double dx[], const double u[], double d2g[], int newpt, int *nodrv, int numvar, int numcon) |
| computes the directional second derivative for the Lagrangian
|
|
virtual int | SDDir (const double x[], const double dx[], double d2g[], int rowno, const int jacnum[], int *nodrv, int numvar, int numjac, int thread) |
| computes the directional second derivative for a single constraint
|
|
virtual int | SDDirIni (const double x[], const double dx[], const int rowlist[], int listsize, int numthread, int newpt, int *nodrv, int numvar) |
| called by CONOPT before a sequence of 2DDir calls each time either the point or the direction changes.
|
|
virtual int | SDDirEnd (int *nodrv) |
| called by CONOPT after a sequence of 2DDir calls each time either the point or the direction changes.
|
|
Definition at line 15 of file tutorial.cpp.