Skip to main content

Copying Model and Revising Basis Questions

Comments

3 comments

  • Official comment
    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?.
  • Greg Glockner
    • Gurobi Staff
    1. When programming, it's better to save the basis status in code rather than a file. If you must save as a file, make sure you use the same names for variables and constraints.
    2. Which line is causing the error?
    1
  • Nazmi Sener
    • Gurobi-versary
    • Conversationalist
    • First Question

    Thank you for your quick response,

    For second question, I guess "detmas.setAttr("RHS",covcon[athu,k], A[athu,k]*d[k]*hopen[athu] ) " line causes error.

    I want to do in both codes that: There is a main model in a loop. In this loop some RHS values of the constraints of the model change in each loop. End of the each loop, changes in the RHS are taken back and transformed to the main model. So I think keeping the main model's basis helps us to reducing computational time. However there are inappropriate things in my models.

    Thanks in advance,

    Warm regards,

     

    1

Post is closed for comments.