Reference
Contents
Index
NLPModelsJuMP.MathOptNLPModelNLPModelsJuMP.MathOptNLSModelNLPModelsJuMP.NonLinearStructureNLPModelsJuMP.OptimizerNLPModelsJuMP.add_constraint_modelNLPModelsJuMP.coo_sym_add_mul!NLPModelsJuMP.coo_sym_dotNLPModelsJuMP.parser_MOINLPModelsJuMP.parser_NLNLPModelsJuMP.parser_SAFNLPModelsJuMP.parser_VAFNLPModelsJuMP.parser_linear_expressionNLPModelsJuMP.parser_nonlinear_expressionNLPModelsJuMP.parser_objective_MOINLPModelsJuMP.parser_variablesNLPModelsJuMP.replace!
NLPModelsJuMP.MathOptNLPModel — Method
MathOptNLPModel(model; hessian=true, name="Generic", backend=MOI.Nonlinear.SparseReverseMode())Construct a MathOptNLPModel from a JuMP model. The backend selects the model and evaluator for scalar nonlinear objectives and for quadratic and nonlinear constraints. Linear constraint rows come first, followed by the rows in the backend model’s order. A legacy MOI.NLPBlock supplies its own evaluator and requires a backend whose model has MOI.Nonlinear.ModelWithQuad as its outer layer. Vector nonlinear oracles require the modern nonlinear interface.
hessian should be set to false for multivariate user-defined functions registered without hessian.
NLPModelsJuMP.MathOptNLSModel — Method
MathOptNLSModel(model, F, hessian=true, name="Generic")Construct a MathOptNLSModel from a JuMP model and a container of JuMP GenericAffExpr (generated by @expression) and NonlinearExpression (generated by @NLexpression). Vector nonlinear oracles can be used with affine residuals and modern constraints.
hessian should be set to false for multivariate user-defined functions registered without hessian.
NLPModelsJuMP.NonLinearStructure — Type
NonLinearStructureStructure containing Jacobian and Hessian structures of nonlinear constraints:
- nnln: number of nonlinear constraints
- nl_lcon: lower bounds of nonlinear constraints
- nl_ucon: upper bounds of nonlinear constraints
- jac_rows: row indices of the Jacobian in Coordinate format (COO) format
- jac_cols: column indices of the Jacobian in COO format
- nnzj: number of non-zero entries in the Jacobian
- hess_rows: row indices of the Hessian in COO format
- hess_cols: column indices of the Hessian in COO format
- nnzh: number of non-zero entries in the Hessian
NLPModelsJuMP.Optimizer — Type
Optimizer()Set MOI.AutomaticDifferentiationBackend() to select the backend that the next MOI.copy_to will use for nonlinear objectives and constraints.
NLPModelsJuMP.add_constraint_model — Method
add_constraint_model(Fmodel, Fi)Add the nonlinear constraint Fi == 0 to the model Fmodel. If Fi is an Array, then we iterate over each component.
NLPModelsJuMP.coo_sym_add_mul! — Method
coo_sym_add_mul!(rows, cols, vals, x, y, α)Perform the update y ← y + α * A * x where A is a symmetric matrix in COO format given by (rows, cols, vals). Only one triangle of A should be passed.
NLPModelsJuMP.coo_sym_dot — Method
coo_sym_dot(rows, cols, vals, x, y)Compute the product xᵀAy of a symmetric matrix A given by (rows, cols, vals). Only one triangle of A should be passed.
NLPModelsJuMP.parser_MOI — Method
parser_MOI(moimodel, index_map)Parse linear constraints of a MOI.ModelLike.
NLPModelsJuMP.parser_NL — Method
parser_NL(nlp_data; hessian)Parse nonlinear constraints of an nlp_data.
Returns:
- nlcon: NonLinearStructure containing Jacobian and Hessian structures
NLPModelsJuMP.parser_SAF — Method
parser_SAF(fun, set, linrows, lincols, linvals, nlin, lin_lcon, lin_ucon, index_map)Parse a ScalarAffineFunction fun with its associated set. linrows, lincols, linvals, lin_lcon and lin_ucon are updated.
NLPModelsJuMP.parser_VAF — Method
parser_VAF(fun, set, linrows, lincols, linvals, nlin, lin_lcon, lin_ucon, index_map)Parse a VectorAffineFunction fun with its associated set. linrows, lincols, linvals, lin_lcon and lin_ucon are updated.
NLPModelsJuMP.parser_linear_expression — Method
parser_linear_expression(cmodel, nvar, index_map, F)Parse linear expressions of type VariableRef and GenericAffExpr{Float64,VariableRef}.
NLPModelsJuMP.parser_nonlinear_expression — Method
parser_nonlinear_expression(cmodel, nvar, F; hessian)Parse nonlinear expressions of type NonlinearExpression.
NLPModelsJuMP.parser_objective_MOI — Method
parser_objective_MOI(moimodel, nvar, index_map)Parse linear and quadratic objective of a MOI.ModelLike.
NLPModelsJuMP.parser_variables — Method
parser_variables(model)Parse variables informations of a MOI.ModelLike.
NLPModelsJuMP.replace! — Method
replace!(ex, x)Walk the expression ex and substitute in the actual variables x.