メインコンテンツへスキップ

model construction gurobipy; working with tupledicts

回答済み

コメント

3件のコメント

  • 正式なコメント
    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 why not try our AI Gurobot?.
  • Jaromił Najman
    • Gurobi Staff

    Hi Penelope,

    You should have a look at our Python examples and webinars on Optimization with Python. These provide a very good way of getting started with Gurobi and Python.

    The Model.write() is also extremely useful to understand what the model looks like that you are building. In your case, you can add the line \(\texttt{m.write("myLP.lp")}\) before the \(\texttt{optimize}\) call and inspect the generated LP file.

    Best regards,
    Jaromił

    0
  • Penelope Mitchell
    • Gurobi-versary
    • First Question
    • First Comment

    Thank you Jaromił Najman. The model write function has helped me make significant progress. Much obliged!

    Best,

    Penelope

    0

投稿コメントは受け付けていません。