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

Add a function to get inner-most optimizer #2565

Closed
odow opened this issue Apr 20, 2021 · 0 comments · Fixed by #2572
Closed

Add a function to get inner-most optimizer #2565

odow opened this issue Apr 20, 2021 · 0 comments · Fixed by #2572
Labels
Category: Internals Related to JuMP internals
Milestone

Comments

@odow
Copy link
Member

odow commented Apr 20, 2021

Something we see frequently is people doing

model = Model(Clp.Optimizer)
glpk = backend(model).optimizer.model.optimizer

This touches internal fields, and prevents us from changing the layers between model and glpk (#2513).

We should add a function

function backend_optimizer(model::Model)

that retrieves the inner optimizer.

@odow odow added the Category: Internals Related to JuMP internals label Apr 20, 2021
@odow odow added this to the 1.0 milestone Apr 20, 2021
This was referenced Apr 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Internals Related to JuMP internals
Development

Successfully merging a pull request may close this issue.

1 participant