Skip to main content

How to update the constraints of a multi-stage problem (remove some, add some) and ensure that the values of the relevant variables decided upon do not disappear

Answered

Comments

2 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 try Gurobot, our chatbot interface offering instant, expert-level support.
  • Jaromił Najman
    • Gurobi Staff

    The problem I am having is that if I delete the old constraint in this way, then the values of the variables that have been decided will no longer exist either.

    You should save the solution point values of variables of interest after every optimization step if you need them. You can access the solution point values of variables via the X attribute.

    0

Post is closed for comments.