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

How to add callbacks? #222

Closed
m-kahr opened this issue Mar 4, 2019 · 2 comments · Fixed by #261
Closed

How to add callbacks? #222

m-kahr opened this issue Mar 4, 2019 · 2 comments · Fixed by #261
Labels
Wrapper: MathOptInterface Relates to the MathOptInterface API

Comments

@m-kahr
Copy link

m-kahr commented Mar 4, 2019

Hi,
I am a bit puzzled on who is "responsible" for my question, hence, I opened a thread also here. In a nutshell, I updated to JuMP v0.19, and it's documentation says that callbacks are now solver-specific. However, I do not find something about adding callbacks here in the documentation nor in the MathOptInterface docs.
So my question is, what is the right way to add callbacks?
Thank you in advance.

@odow
Copy link
Member

odow commented Mar 4, 2019

Per my reply on Discourse, there is unlikely to be any movement before we come to a consensus.

Here is one proposal with the plumbing from JuMP -> MOI -> Gurobi.

JuMP: jump-dev/JuMP.jl#1849
MOI: jump-dev/MathOptInterface.jl#670
Gurobi: jump-dev/Gurobi.jl#194

As @mlubin said, if you require callbacks, use JuMP 0.18 for now.

If you have any ideas about how CPLEX-specific callbacks should look (and you have time), feel free to mock up some demos so we can discuss.

@m-kahr
Copy link
Author

m-kahr commented Mar 5, 2019

Okay, thank you for your reply. In that case I will use JuMP 0.18 until there is a solution. However, I think it is better not to suggest something about CPLEX-specific callbacks since I am more a user than a developer ;).

@odow odow added the Wrapper: MathOptInterface Relates to the MathOptInterface API label Oct 30, 2019
@odow odow mentioned this issue Nov 4, 2019
16 tasks
@odow odow closed this as completed in #261 Nov 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Wrapper: MathOptInterface Relates to the MathOptInterface API
Development

Successfully merging a pull request may close this issue.

2 participants