Originally posted by: SystemAdmin
I am performing a two-phase search where one set of dvars is being fixed, followed by a second set of dvars. However, there are many more dvars that are auxiliary to the model that I wish to leave unfixed... Therefore, I've created a custom IloCustomIntVarChooser whose choose() method returns -1 (skip this dvar) for all remaining dvars.
By doing so, the search successfully fixes the anticipated dvars, followed by an exception being thrown, which states:
ilog.concert.IloException: IloInt IloIntVarChooser::choose(...) : unfixed variables remains while the function return -1
At this point, the IloCP instance is unstable - no matter whether I execute cp.abortSearch() or cp.endSearch(), any attempt to add new constraints to the Model are met with an exception stating:
ilog.concert.IloException: This change is not allowed during a search.
My question is, how do I clear out this previous "failed" search so that I can continue with manual constraint entry?
#CPOptimizer#DecisionOptimization