CONOPT
|
Functions | |
integer function | coidef_numvar (cntvect, numvar) |
defines the number of variables in the model. | |
integer function | coidef_numcon (cntvect, numcon) |
defines the number of constraints in the model. | |
integer function | coidef_numnz (cntvect, numnz) |
defines the number of nonzero elements in the Jacobian. | |
integer function | coidef_numnlnz (cntvect, numnlnz) |
defines the Number of Nonlinear Nonzeros. | |
integer function | coidef_numhess (cntvect, numhess) |
defines the Number of Hessian Nonzeros. | |
integer function | coidef_optdir (cntvect, optdir) |
defines the Optimization Direction. | |
integer function | coidef_objvar (cntvect, objvar) |
defines the Objective Variable. | |
integer function | coidef_objcon (cntvect, objcon) |
defines the Objective Constraint. | |
Before any model data can be loaded into CONOPT, the dimensions of the problem must be first specified.
This includes the number of variables, the number of constraints, the number of non-zeros, etc. The routines for registering the problem sizes are given in this section. These sizes are used in callbacks when loading the problem matrix and evaluating the first derivatives.
integer function coidef_numvar | ( | integer, dimension(numcallback) | cntvect, |
integer | numvar ) |
defines the number of variables in the model.
defines the number of variables in the model. The number does not include any slack or artificial variables.
cntvect | the control vector |
numvar | the number of variables |
Definition at line 357 of file coistart.f90.
integer function coidef_numcon | ( | integer, dimension(numcallback) | cntvect, |
integer | numcon ) |
defines the number of constraints in the model.
defines the number of constraints in the model. The number includes the objective function if the objective is defined as an expression (see coidef_objcon() and coidef_objvar()).
cntvect | the control vector |
numcon | the number of constraints |
Definition at line 397 of file coistart.f90.
integer function coidef_numnz | ( | integer, dimension(numcallback) | cntvect, |
integer | numnz ) |
defines the number of nonzero elements in the Jacobian.
defines the number of nonzero elements in the Jacobian of the model (the matrix of first derivatives of all constraints with respect to all variables).
cntvect | the control vector |
numnz | the number of nonzero elements |
Definition at line 436 of file coistart.f90.
integer function coidef_numnlnz | ( | integer, dimension(numcallback) | cntvect, |
integer | numnlnz ) |
defines the Number of Nonlinear Nonzeros.
defines the number of nonlinear nonzeros in the Jacobian. The number is zero if the model is linear and positive if the model is nonlinear.
cntvect | the control vector |
numnlnz | the number of nonlinear nonzeros |
Definition at line 475 of file coistart.f90.
integer function coidef_numhess | ( | integer, dimension(numcallback) | cntvect, |
integer | numhess ) |
defines the Number of Hessian Nonzeros.
defines the number of nonzeros in the Hessian. The number is zero if the model is linear and positive if the model is nonlinear.
cntvect | the control vector |
numhess | the number of nonzeros in Hessian |
Definition at line 512 of file coistart.f90.
integer function coidef_optdir | ( | integer, dimension(numcallback) | cntvect, |
integer | optdir ) |
defines the Optimization Direction.
defines the optimization direction. OptDir = +1
defines maximization and OptDir = -1
defines minimization. Setting an optimization direction is optional. If no optimization direction is set, the CONOPT will search for a feasible solution and then stop.
cntvect | the control vector |
optdir | the optimization direction |
Definition at line 551 of file coistart.f90.
integer function coidef_objvar | ( | integer, dimension(numcallback) | cntvect, |
integer | objvar ) |
defines the Objective Variable.
cntvect | the control vector |
objvar | the index of the objective variable |
Definition at line 585 of file coistart.f90.
integer function coidef_objcon | ( | integer, dimension(numcallback) | cntvect, |
integer | objcon ) |
defines the Objective Constraint.
TYPE
in ReadMatrix
in section ReadMatrix.If both an objective variable and constraint are set, the last one set will be used in the optimization. You can turn a previously defined objective off by defining variable or constraint 0 as the objective (Fortran notation) or variable or constraint -1 (C notation).
cntvect | the control vector |
objcon | the index of the objective constraint |
Definition at line 628 of file coistart.f90.