I am implementing an iterative method for solving a problem. We need to have a set of constraints in the model at one iteration but not necessary for the subsequent iterations. One way is to remove them at the beginning of the next iteration altogether. However, this is a time-consuming solution. I need an intelligent way to add a set of constraints to the model at one iteration, and while I run the second iteration, those added constraints are no longer in the model? I will be appreciated it if you suggest me a way to do it.
Please sign in to leave a comment.