Skip to main content

Trying to input a large matrix of parameters efficiently

Comments

2 comments

  • Official comment
    Simranjit Kaur
    Gurobi Staff 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 why not try our AI Gurobot?.
  • Matthias Miltenberger
    Gurobi Staff Gurobi Staff

    Hi Pohan,

    It's hard to give concrete advice without seeing your actual data structures. In general, you should try to avoid using for-loops in Python and use list comprehension instead. You may want to put in some timers and do profiling on the code so you can pin down the bottleneck and try to improve on that.

    Cheers,
    Matthias

    0

Post is closed for comments.