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

Evaluate yet another review of JuMP Parameters #1126

Open
jd-lara opened this issue Jul 19, 2024 · 1 comment
Open

Evaluate yet another review of JuMP Parameters #1126

jd-lara opened this issue Jul 19, 2024 · 1 comment
Assignees

Comments

@jd-lara
Copy link
Member

jd-lara commented Jul 19, 2024

at JuMP dev the new syntax for parameters was shown and exists since JuMP 1.14. We should refactor some of the parameter handling in PSI that could benefit from better syntaxes.

cc. @odow

@jd-lara jd-lara self-assigned this Jul 19, 2024
@odow
Copy link
Contributor

odow commented Jul 22, 2024

Yeah using @variable(model, p in Parameter(1.0)) and set_parameter_value: https://jump.dev/JuMP.jl/stable/api/JuMP/#JuMP.set_parameter_value

should mean that we automatically add the MOI.EqualTo constraints if you use Gurobi and we automatically use parameters if you use POI or Ipopt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants