How to implement subset constraints in Gurobi in python?
AnsweredHi all, I am a newbie in Gurobi and I don't know how to implement subset in gurobi. Any help will be appreciated. Thanks in advance.
-
Official comment
This post is more than three years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum. Or why not try our AI Gurobot?. -
how to use two callbacks in gurobi please help
0 -
Hi and welcome to Gurobi!
You can only use one callback function, but this function can do multiple things. (So this should not be any limitation.) Could you elaborate what you would want to do in these two callbacks?
You can find more information about using callbacks in the documentation: http://www.gurobi.com/documentation/8.1/refman/index.html (Choose your programming language and then navigate to callbacks. Here is the one for Python: http://www.gurobi.com/documentation/8.1/refman/py_callbacks.html)
There are also some code examples: http://www.gurobi.com/documentation/8.1/examples/example_source_code.html
E.g. a Python example (that can be adapted to your needs) can be found here: http://www.gurobi.com/documentation/8.1/examples/callback_py.html
0
Post is closed for comments.
Comments
3 comments