NLPModelMeta(nvar, ...) describes the problem optimize obj(x) subject
to lvar <= x <= uvar and lcon <= cons(x) <= ucon with nvar
variables and ncon general constraints, as in NLPModels.jl. The
partitions of the variables (ifix, ilow, iupp, irng, ifree,
iinf) and of the constraints (jfix, jlow, jupp, jrng, jfree,
jinf) are computed from the bounds, and nln is the complement of the
linear constraints lin. NLPModelMeta(meta, ...) copies a metadata
object, replacing the fields given.
Usage
NLPModelMeta(
nvar,
x0 = NULL,
lvar = NULL,
uvar = NULL,
nlvb = NULL,
nlvo = NULL,
nlvc = NULL,
ncon = 0L,
y0 = NULL,
lcon = NULL,
ucon = NULL,
nnzo = NULL,
nnzj = NULL,
lin_nnzj = 0L,
nln_nnzj = NULL,
nnzh = NULL,
lin = integer(),
minimize = TRUE,
islp = FALSE,
name = "Generic",
variable_bounds_analysis = TRUE,
constraint_bounds_analysis = TRUE,
sparse_jacobian = TRUE,
sparse_hessian = TRUE,
grad_available = TRUE,
jac_available = NULL,
hess_available = TRUE,
jprod_available = NULL,
jtprod_available = NULL,
hprod_available = TRUE
)
NLSMeta(
nequ,
nvar,
x0 = NULL,
nnzj = NULL,
nnzh = NULL,
lin = integer(),
jac_residual_available = TRUE,
hess_residual_available = TRUE,
jprod_residual_available = TRUE,
jtprod_residual_available = TRUE,
hprod_residual_available = TRUE
)Arguments
- nvar
Number of variables, or an
NLPModelMetato copy.- x0
Initial guess.
- lvar, uvar
Bounds of the variables.
- nlvb, nlvo, nlvc
Numbers of nonlinear variables in both, the objective and the constraints.
- ncon
Number of general constraints.
- y0
Initial Lagrange multipliers.
- lcon, ucon
Bounds of the constraints.
- nnzo
Number of nonzeros of the gradient.
- nnzj, lin_nnzj, nln_nnzj
Numbers of entries of the sparse Jacobian: all, of the linear and of the nonlinear constraints.
- nnzh
Number of entries of the sparse Hessian of the Lagrangian.
- lin
Indices of the linear constraints (or residuals).
- minimize
TRUEto minimize,FALSEto maximize.- islp
Whether the problem is a linear program.
- name
Problem name.
- variable_bounds_analysis, constraint_bounds_analysis
Whether to compute the partitions of the variables and constraints.
- sparse_jacobian, sparse_hessian
Whether the Jacobian and Hessian are sparse.
- grad_available, jac_available, hess_available, jprod_available, jtprod_available, hprod_available
Which derivatives the model provides.
- nequ
Number of residual equations.
- jac_residual_available, hess_residual_available, jprod_residual_available, jtprod_residual_available, hprod_residual_available
Which derivatives of the residual the model provides.