Skip to main content

Is C API faster then the Python API?

Awaiting user input

Comments

2 comments

  • Official comment
    Simranjit Kaur
    • Gurobi Staff
    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.
  • Jonasz Staszek
    • Community Moderator
    • Gurobi-versary
    • Thought Leader
    • First Question

    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
    Jonasz

    0

Post is closed for comments.