Tobias Achterberg
unread,Feb 15, 2016, 8:24:31 AM2/15/16Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to gur...@googlegroups.com
Gurobi itself is not faster with C++ than with Python. Whatever API you use, the
Gurobi-internal algorithms are implemented in C. The API is just a thin layer
around our C interface. And since the combinatorial explosion (why MIP is
NP-hard) happens in the tree search inside the internal MIP algorithm, the API
does not matter in this regard.
In terms of speed, the API is only important for model construction, solution
extraction, and if you are using a callback function. But typically, if you are
using your language in the right way and are not solving thousands of tiny and
really easy MIPs, then this difference should be negligible.
Sometimes, garbage collector languages like Java or Python have disadvantages
for huge models in terms of memory efficiency.
Regards,
Tobias