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

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

回答済み

コメント

2件のコメント

  • Maliheh Aramon
    • Gurobi Staff 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

サインインしてコメントを残してください。