|
CONOPT
|
Data Structures | |
| class | conopt.ConstraintType |
| class | conopt.ObjectiveElement |
| class | conopt.Sense |
Functions | |
| void | conopt.ModelData.setProblemDimension (long numvar, long numcons, long numnz, long numnlnz) |
| int | conopt.ModelData.addConstraint (ConstraintType constype, double rhs, int slackstatus) |
| int | conopt.ModelData.addConstraint (ConstraintType constype, double rhs) |
| int | conopt.ModelData.addConstraint (ConstraintType constype, double rhs, int[] varindex, double[] value, int[] nlflag, int slackstatus) |
| int | conopt.ModelData.addConstraint (ConstraintType constype, double rhs, int[] varindex, double[] value, int[] nlflag) |
| int | conopt.ModelData.addVariable (double lower, double upper, double curr, int varstatus) |
| int | conopt.ModelData.addVariable (double lower, double upper, double curr) |
| int | conopt.ModelData.addVariable (double lower, double upper) |
| int | conopt.ModelData.addVariable (double lower, double upper, int[] consindex, double[] value, int[] nlflag, double curr, int varstatus) |
| int | conopt.ModelData.addVariable (double lower, double upper, int[] consindex, double[] value, int[] nlflag, double curr) |
| int | conopt.ModelData.addVariable (double lower, double upper, int[] consindex, double[] value, int[] nlflag) |
| void | conopt.ModelData.setObjectiveElement (ObjectiveElement elem, int elemindex) |
| void | conopt.ModelData.setOptimizationSense (Sense sense) |
| void | conopt.ModelData.setInitialStatusOption (int inistat) |
Methods that are used to define the model to be solved by CONOPT.
The model is defined by iteratively adding variables and constraints using the conopt.ModeData.addConstraint and conopt.ModeData.addVariable methods.
|
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.
| 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 from conopt.ConoptModelData.
Definition at line 276 of file ModelData.java.
|
inline |
adds a constraint to the problem. The non-zero coefficients are added later
| 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 from conopt.ConoptModelData.
Definition at line 290 of file ModelData.java.
|
inline |
adds a constraint to the problem. The non-zero coefficients are added later
| constype | the type of constraint, 0: ==, 1: >=, 2: <=, 3: free |
| rhs | the right hand side |
Reimplemented from conopt.ConoptModelData.
Definition at line 304 of file ModelData.java.
|
inline |
adds a constraint to the problem. The matrix non-zeros are added based on the supplied variables
| 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 from conopt.ConoptModelData.
Definition at line 321 of file ModelData.java.
|
inline |
adds a constraint to the problem. The matrix non-zeros are added based on the supplied variables
| 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 from conopt.ConoptModelData.
Definition at line 338 of file ModelData.java.
|
inline |
adds a variable to the model. The non-zero coefficients are added later.
| 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 from conopt.ConoptModelData.
Definition at line 353 of file ModelData.java.
|
inline |
adds a variable to the model. The non-zero coefficients are added later.
| lower | lower bound for the variable |
| upper | upper bound for the variable |
| curr | initial value of the variable, can be set to 0 |
Reimplemented from conopt.ConoptModelData.
Definition at line 368 of file ModelData.java.
|
inline |
adds a variable to the model. The non-zero coefficients are added later.
| lower | lower bound for the variable |
| upper | upper bound for the variable |
Reimplemented from conopt.ConoptModelData.
Definition at line 382 of file ModelData.java.
|
inline |
adds a variable to the problem. The matrix non-zeros are added based on the supplied constraints.
| 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 from conopt.ConoptModelData.
Definition at line 400 of file ModelData.java.
|
inline |
adds a variable to the problem. The matrix non-zeros are added based on the supplied constraints.
| 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 from conopt.ConoptModelData.
Definition at line 418 of file ModelData.java.
|
inline |
adds a variable to the problem. The matrix non-zeros are added based on the supplied constraints.
| 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 from conopt.ConoptModelData.
Definition at line 435 of file ModelData.java.
|
inline |
sets the index for the objective variable or constraint
Reimplemented from conopt.ConoptModelData.
Definition at line 445 of file ModelData.java.
|
inline |
sets the optimisation direction.
Reimplemented from conopt.ConoptModelData.
Definition at line 455 of file ModelData.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:
If inistat == 2: The variable status has the following behaviour:
Reimplemented from conopt.ConoptModelData.
Definition at line 489 of file ModelData.java.