JuMP v1.15 introduced a new interface for nonlinear optimization. This update improves the optimization process by eliminating the need for @NL macros and making the composition of objectives and constraints simpler. It is no longer necessary to separate them into linear and nonlinear versions.
JuMP v1.15 introduced a new interface for nonlinear optimization. This update improves the optimization process by eliminating the need for
@NL
macros and making the composition of objectives and constraints simpler. It is no longer necessary to separate them into linear and nonlinear versions.PowerModels v0.21 has been updated to this new interface. See https://github.com/lanl-ansi/PowerModels.jl/pull/901.
Such a change should also be applied to PowerModelsACDC.
Edit JuMP and PowerModels lines in
Project.toml
toRename the
@NL
macros:@NLobjective
-->@objective
;@NLconstraint
-->@constraint
;@NLexpression
-->@expression
.While making these changes, review the code for any sections that differentiate between NL and non-NL models, and simplify them. Examples: https://github.com/lanl-ansi/PowerModels.jl/pull/901/files.