Originally posted by: Petr Vilím
Hello,
maybe you can diagnose the problem using function IloCP.restore(IloSolution). From the documentation of this function:
This member function uses the invoking CP optimizer object to instantiate the variables in solution with their saved values. The value of any objective added to the solution is not restored. If the solution does not violate any constraints of the model extracted by the invoking CP optimizer, then true is returned and the state of the constraint variables in the CP optimizer reflect those stored in solution. Otherwise the optimizer's state remains unchanged and false is returned.
So if the function returns false then there is some violated constraint in the model. And therefore the solution doesn't help as starting point.
And if the function returns true then you can check whether all variables are fixed after the restoration. If they are not then, when the solution is used as starting point, CP Optimizer isn't probably able to find values for the remaining unfixed variables in reasonable time.
Best regards, Petr
#CPOptimizer#DecisionOptimization