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

Python API: Shape of single entry of MVaR variable differs

回答済み

コメント

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?.
  • Eli Towle
    • Gurobi Staff

    In Gurobi 9.1, selecting a single element from an MVar object returns an MVar of shape \( \texttt{(1,)} \). This behavior was changed in Gurobi 9.5, where selecting a single element from an MVar object returns a Var object. You can read more about this in the detailed release notes for version 9.5.

    I suspect the Python environment on your Windows machine still has Gurobi version 9.1 installed. Can you please check which Gurobi version is installed using the following?

    import gurobipy as gp
    print(gp.gurobi.version())

     

    1
  • Akylas Stratigakos
    • Gurobi-versary
    • First Comment
    • First Question

    Yes, you are correct. The Windows machine still has the 9.1 version, I mistakenly thought it was up to date.

     

    0

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