Defining a model as a class vs as a function in python
Hi Gurobi community,
I am implementing a decomposition approach to solve a MIP in python. I would like to know if there will any benefit in using an object-oriented paradigm for the implementation of the decomposition algorithm. To make the question more specific, would I get any benefit from defining a model as a function instead of defining it as a class? May somebody shares an example of a model implemented as a class instead of as a function.
Any help would be greatly appreciated.
Thanks
Juan
0
-
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?.
Post is closed for comments.
Comments
1 comment