-
Notifications
You must be signed in to change notification settings - Fork 11
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
The get_optimizer_attribute returns an error #46
Comments
Hi! Thanks for the issue. You're probably right - there has been a lot of movement in jump over the past years and this project has been dormant for a long time. Glad you are getting some use out of it. I'd be happy to integrate your fix if you'd like to open a PR for it? |
Thank you to you for the package :-) I have tried to follow the chain of issues, but it's a bit complicated. I believe if the issue is solved, letting the user choose the linear solver would be a much neater solution... |
I have used the new API (see my specific PR) to test 2016R2 under the two "options" under the MUMPS trick: Option 1: if typeof(scenario) <: OptimalPriceScenario
@constraint(model, vars.Tₐₜ[1] == config.tatm₀);
JuMP.fix(vars.K[1], config.k₀; force=true);
else
JuMP.fix(vars.Tₐₜ[1], config.tatm₀; force=true);
@constraint(model, vars.K[1] == config.k₀);
end Option 2: JuMP.fix(vars.K[1], config.k₀; force=true);
JuMP.fix(vars.Tₐₜ[1], config.tatm₀; force=true); and solving on both OptimalPrice and BasePrice I get using the two options the same results: OptimalPrice option #1 OptimalPrice option #2: I believe this means the original issue has been solved upstream and the package on this sense can be simplified.... what do you think ? |
When used according to the documentation:
I get the error:
This seems related to the fact that somehow (change of JuMP API?)
solve
and the inner functionselectLinearSolver
fails to add alinear_solver
option, and hence the get call returns an error.If I indeed use directly:
then it works.
The text was updated successfully, but these errors were encountered: