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

How to warmstart an LP basis other than m.read(file.bas)? var.VBasis =

回答済み

コメント

4件のコメント

  • 正式なコメント
    Simranjit Kaur
    • Gurobi Staff
    This post is more than two 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.
  • Riley Clement
    • Gurobi Staff

    Hi Kamal,

    To warmstart the LP you need to either provide

    It is not enough the supply VBasis values alone.

    - Riley

    0
  • Kamal Ba
    • Gurobi-versary
    • First Comment
    • First Question

    Thanks for the clarification Riley. I tried

    for var, bas in zip(m.getVars(), I_B):
            var.VBasis = bas
    for cont, bas in zip(m.getConstrs(), I_C):
          cont.CBasis = bas

    And it worked!

    0
  • Riley Clement
    • Gurobi Staff

    Good to hear!  Thanks for update.

    0

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