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

Option to specify variable values when determining if an inequality is active #22

Open
Robbybp opened this issue Aug 10, 2023 · 0 comments

Comments

@Robbybp
Copy link
Collaborator

Robbybp commented Aug 10, 2023

Currently there is no option. We just use the latest solution (via JuMP.value) and let JuMP throw its error if there is no solution available. Some options:

  • Methods with point::Function and point::Dict{VariableRef,Float64}. This mirrors the JuMP.primal_feasibility_report API. The skip_missing optional argument might be nice to copy as well
  • A var_value::Function optional argument. This mirrors the JuMP.value API, which we probably have to use anyway

Since we probably want to use the var_value option to JuMP.value, a function seems like the most natural first thing to support. If the user has a dict, they can always just pass in x -> point[x]. Then we probably want to support skip_missing as well.

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

1 participant