Is C API faster then the Python API?
Awaiting user inputHi,
We are solving our ILP problem with Gurobi and are having issues with the run time. We are trying to think of different ways to improve this and are wondering if there would be a difference if we ran on Guropi C instead of Gurobi python
Thanks.
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 try Gurobot, our chatbot interface offering instant, expert-level support. -
Hi Kim,
I don't believe that encoding your model in C rather than Python would change the solver behavior itself.
Is the runtime long due to the optimization taking so much time?
If yes, we'd need to have a look at the optimization log to suggest ideas.
If not, you could try profiling your code to see which parts of model generation consume excessive amounts of time.
Best regards
Jonasz0
Post is closed for comments.
Comments
2 comments