Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to JuMP's new NL interface #23

Open
matteorossini opened this issue Jan 22, 2024 · 0 comments
Open

Update to JuMP's new NL interface #23

matteorossini opened this issue Jan 22, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@matteorossini
Copy link
Collaborator

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 lanl-ansi/PowerModels.jl#901.

Such a change should also be applied to PowerModelsMCDC.

  1. Edit JuMP and PowerModels lines in Project.toml to

    JuMP = "1.15"
    PowerModels = "0.21"
  2. Rename 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.

@matteorossini matteorossini added the enhancement New feature or request label Jan 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant