CONOPT
|
Public Member Functions | |
synchronized void | delete () |
void | swigReleaseOwnership () |
void | swigTakeOwnership () |
ConoptModelData () | |
int | readMatrix (SWIGTYPE_p_double lower, SWIGTYPE_p_double curr, SWIGTYPE_p_double upper, SWIGTYPE_p_int vsta, SWIGTYPE_p_int type, SWIGTYPE_p_double rhs, SWIGTYPE_p_int esta, SWIGTYPE_p_int colsta, SWIGTYPE_p_int rowno, SWIGTYPE_p_double value, SWIGTYPE_p_int nlflag, int numvar, int numcon, int numnz) |
void | setProblemDimension (long numvar, long numcons, long numnz, long numnlnz) |
int | addConstraint (ConstraintType constype, double rhs, int slackstatus) |
int | addConstraint (ConstraintType constype, double rhs) |
int | addConstraint (ConstraintType constype, double rhs, int[] varindex, double[] value, int[] nlflag, int slackstatus) |
int | addConstraint (ConstraintType constype, double rhs, int[] varindex, double[] value, int[] nlflag) |
int | addVariable (double lower, double upper, double curr, int varstatus) |
int | addVariable (double lower, double upper, double curr) |
int | addVariable (double lower, double upper) |
int | addVariable (double lower, double upper, int[] consindex, double[] value, int[] nlflag, double curr, int varstatus) |
int | addVariable (double lower, double upper, int[] consindex, double[] value, int[] nlflag, double curr) |
int | addVariable (double lower, double upper, int[] consindex, double[] value, int[] nlflag) |
void | setObjectiveElement (ObjectiveElement elem, int elemindex) |
void | setOptimizationSense (Sense sense) |
void | setInitialStatusOption (int inistat) |
int | numVar () |
int | numCons () |
int | numHessianNonzeros () |
Variable | getVariable (int index) |
Constraint | getConstraint (int index) |
void | setSDEvaluationType (SDEvaluationType sdevaltype) |
void | setSDLagrangianStructure (int[] rownum, int[] colnum) |
int[] | getSDLagrangianRowNumbers () |
int[] | getSDLagrangianColumnNumbers () |
Protected Member Functions | |
ConoptModelData (long cPtr, boolean cMemoryOwn) | |
void | finalize () |
void | swigDirectorDisconnect () |
Static Protected Member Functions | |
static long | getCPtr (ConoptModelData obj) |
static long | swigRelease (ConoptModelData obj) |
Protected Attributes | |
transient boolean | swigCMemOwn |
The Model Data class
Definition at line 15 of file ConoptModelData.java.
|
inlineprotected |
Definition at line 19 of file ConoptModelData.java.
|
inline |
Constructor
Definition at line 74 of file ConoptModelData.java.
|
inlinestaticprotected |
Definition at line 24 of file ConoptModelData.java.
|
inlinestaticprotected |
Definition at line 28 of file ConoptModelData.java.
|
inlineprotected |
Reimplemented in jconopt.ModelData.
Definition at line 41 of file ConoptModelData.java.
|
inline |
Reimplemented in jconopt.ModelData.
Definition at line 45 of file ConoptModelData.java.
|
inlineprotected |
Reimplemented in jconopt.ModelData.
Definition at line 55 of file ConoptModelData.java.
|
inline |
Reimplemented in jconopt.ModelData.
Definition at line 60 of file ConoptModelData.java.
|
inline |
Reimplemented in jconopt.ModelData.
Definition at line 65 of file ConoptModelData.java.
|
inline |
loads the structure of the model into CONOPT.
Using the C++ interface, there are two ways to load the model into CONOPT.
The first method follows the process used for the Fortran and C interfaces. This involves:
Definition at line 107 of file ConoptModelData.java.
|
inline |
sets the problem dimension. This is called if the user wants to implement a custom readMatrix() method.
NOTE: it is not possible to call setProblemDimension() and addConstraint() or addVariable(). The latter
functions can only be used if the problem dimension is not set and the default readMatrix() method is used.
INGROUP DEFINE_MODEL_XYZ
numvar | the number of variables in the problem |
numcons | the number of constraints in the problem |
numnz | the number of non-zeros in the constraint matrix |
numnlnz | the number of nonlinear non-zeros in the constraint matrix |
Reimplemented in jconopt.ModelData.
Definition at line 125 of file ConoptModelData.java.
|
inline |
adds a constraint to the problem. The non-zero coefficients are added later
INGROUP DEFINE_MODEL_XYZ
constype | the type of constraint, 0: ==, 1: >=, 2: <=, 3: free |
rhs | the right hand side |
slackstatus | initial status of the slack variables, see IniStat |
Reimplemented in jconopt.ModelData.
Definition at line 139 of file ConoptModelData.java.
|
inline |
adds a constraint to the problem. The non-zero coefficients are added later
INGROUP DEFINE_MODEL_XYZ
constype | the type of constraint, 0: ==, 1: >=, 2: <=, 3: free |
rhs | the right hand side |
Reimplemented in jconopt.ModelData.
Definition at line 153 of file ConoptModelData.java.
|
inline |
adds a constraint to the problem. The matrix non-zeros are added based on the supplied variables
INGROUP DEFINE_MODEL_XYZ
constype | the type of constraint, 0: ==, 1: >=, 2: <=, 3: free |
rhs | the right hand side |
varindex | the variables this constraint has non-zero coefficients |
value | the non-zero of the variable |
nlflag | flag to set whether the variable belongs to a non-linear term |
slackstatus | initial status of the slack variables, see IniStat |
Reimplemented in jconopt.ModelData.
Definition at line 170 of file ConoptModelData.java.
|
inline |
adds a constraint to the problem. The matrix non-zeros are added based on the supplied variables
INGROUP DEFINE_MODEL_XYZ
constype | the type of constraint, 0: ==, 1: >=, 2: <=, 3: free |
rhs | the right hand side |
varindex | the variables this constraint has non-zero coefficients |
value | the non-zero of the variable |
nlflag | flag to set whether the variable belongs to a non-linear term |
Reimplemented in jconopt.ModelData.
Definition at line 187 of file ConoptModelData.java.
|
inline |
adds a variable to the model. The non-zero coefficients are added later.
INGROUP DEFINE_MODEL_XYZ
lower | lower bound for the variable |
upper | upper bound for the variable |
curr | initial value of the variable, can be set to 0 |
varstatus | initial status of the variable, see IniStat |
Reimplemented in jconopt.ModelData.
Definition at line 202 of file ConoptModelData.java.
|
inline |
adds a variable to the model. The non-zero coefficients are added later.
INGROUP DEFINE_MODEL_XYZ
lower | lower bound for the variable |
upper | upper bound for the variable |
curr | initial value of the variable, can be set to 0 |
Reimplemented in jconopt.ModelData.
Definition at line 217 of file ConoptModelData.java.
|
inline |
adds a variable to the model. The non-zero coefficients are added later.
INGROUP DEFINE_MODEL_XYZ
lower | lower bound for the variable |
upper | upper bound for the variable |
Reimplemented in jconopt.ModelData.
Definition at line 231 of file ConoptModelData.java.
|
inline |
adds a variable to the problem. The matrix non-zeros are added based on the supplied constraints.
INGROUP DEFINE_MODEL_XYZ
lower | lower bound for the variable |
upper | upper bound for the variable |
consindex | the constraints this variable has non-zero coefficients |
value | the non-zero of the variable |
nlflag | flag to set whether the variable belongs to a non-linear term |
curr | initial value of the variable, can be set to 0 |
varstatus | initial status of the variable, see IniStat |
Reimplemented in jconopt.ModelData.
Definition at line 249 of file ConoptModelData.java.
|
inline |
adds a variable to the problem. The matrix non-zeros are added based on the supplied constraints.
INGROUP DEFINE_MODEL_XYZ
lower | lower bound for the variable |
upper | upper bound for the variable |
consindex | the constraints this variable has non-zero coefficients |
value | the non-zero of the variable |
nlflag | flag to set whether the variable belongs to a non-linear term |
curr | initial value of the variable, can be set to 0 |
Reimplemented in jconopt.ModelData.
Definition at line 267 of file ConoptModelData.java.
|
inline |
adds a variable to the problem. The matrix non-zeros are added based on the supplied constraints.
INGROUP DEFINE_MODEL_XYZ
lower | lower bound for the variable |
upper | upper bound for the variable |
consindex | the constraints this variable has non-zero coefficients |
value | the non-zero of the variable |
nlflag | flag to set whether the variable belongs to a non-linear term |
Reimplemented in jconopt.ModelData.
Definition at line 284 of file ConoptModelData.java.
|
inline |
sets the index for the objective variable or constraint
INGROUP DEFINE_MODEL_XYZ
Reimplemented in jconopt.ModelData.
Definition at line 294 of file ConoptModelData.java.
|
inline |
sets the optimisation direction.
INGROUP DEFINE_MODEL_XYZ
Reimplemented in jconopt.ModelData.
Definition at line 304 of file ConoptModelData.java.
|
inline |
the setting to indicate how the initial status of the variables and slack variables will be handled.
The initial status is set in the addVariable() and addConstraint() methods, or in the readMatrix() method if the
classical model input approach is used. By default, the value of inistat is 0, which means that the variable and
slack status is ignored.
If inistat == 1:
The variable status has the following behaviour:
Reimplemented in jconopt.ModelData.
Definition at line 338 of file ConoptModelData.java.
|
inline |
returns the number of variables in the model
INGROUP QUERY_MODEL_XYZ
Reimplemented in jconopt.ModelData.
Definition at line 348 of file ConoptModelData.java.
|
inline |
returns the number of constraints in the model
INGROUP QUERY_MODEL_XYZ
Reimplemented in jconopt.ModelData.
Definition at line 358 of file ConoptModelData.java.
|
inline |
returns the number of non-zeros in the Hessian
INGROUP QUERY_MODEL_XYZ
Reimplemented in jconopt.ModelData.
Definition at line 368 of file ConoptModelData.java.
|
inline |
returns a reference to the variable object
INGROUP QUERY_MODEL_XYZ
Reimplemented in jconopt.ModelData.
Definition at line 378 of file ConoptModelData.java.
|
inline |
returns a reference to the constraint object
INGROUP QUERY_MODEL_XYZ
Reimplemented in jconopt.ModelData.
Definition at line 388 of file ConoptModelData.java.
|
inline |
informs CONOPT of the method for evaluating the second derivative
INGROUP DEFINE_SECOND_DERIVATIVE_XYZ
Reimplemented in jconopt.ModelData.
Definition at line 398 of file ConoptModelData.java.
|
inline |
sets the structure of the second derivatives of the Lagrangian
INGROUP DEFINE_SECOND_DERIVATIVE_XYZ
rownum | Vector of row numbers of the lower triangular part of the Hessian. |
colnum | Vector of column numbers of the lower triangular part of the Hessian. |
Reimplemented in jconopt.ModelData.
Definition at line 411 of file ConoptModelData.java.
|
inline |
returns the row numbers in the second derivative of the lagrangian structure
Definition at line 418 of file ConoptModelData.java.
|
inline |
returns the column numbers in the second derivative of the lagrangian structure
Definition at line 425 of file ConoptModelData.java.
|
protected |
Definition at line 17 of file ConoptModelData.java.