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.
-
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
Please sign in to leave a comment.
Comments
2 comments