I have written a CP model in Python, which uses CP-SAT solver. I need to run that model multiple times, and in each run I modify constraints. Currently, I create the model object from scratch, every time I want to run the model. Is there anyway, I can modify variables/constraints of an existing model, so that I don't need to build the model from scratch every time?
To give better context, please consider the below sample model.
Now, in the 2nd run of the problem, I want to do following changes.
How can this be achieved without building the model from scratch?
--
You received this message because you are subscribed to the Google Groups "or-tools-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to or-tools-discu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/or-tools-discuss/893ca21b-1fc4-4be3-98bb-687d7eda7d5fn%40googlegroups.com.