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

Can I build a model using at the same time a matrix approach and a dictionary approach?

回答済み

コメント

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 try Gurobot, our chatbot interface offering instant, expert-level support.
  • Maliheh Aramon
    • Gurobi Staff

    Hi Juan, 

    Which Gurobi version you are using? In Gurobi versions <= 9.5.0, it is not possible to add an instance of LinExpr(your \(\texttt{term2}\) objective) to an instance of MLinExpr (your \(\texttt{term1}\) objective). However, in the latest Gurobi version 9.5.1, this operation can be done.

    The Gurobi Matrix API has some limitations, but our development team is continually working to improve the usability of the Matrix API. Therefore, I would suggest updating to the latest version to have access to the latest improvement.

    Best regards,

    Maliheh

    0
  • Juan Calle
    • Gurobi-versary
    • Curious
    • First Comment

    Hi Maliheh,

    Thanks for your reply.

    I noticed that I was using Gurobi 9.1.1

    I am going to update to the latest version.

    Best,

    Juan

     

     

    0

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