I'm using CP as constructor in my LNS algorithm. At every iteration, I need to have a particular domain for any of the decision variables. So at each iteration, I have an integer array of values (IloIntArray) that I should assign to every single variable. This is done through setPossibleValues(domain:IloIntArray). The algorithm seems to work, and improves the initial solution. However, the final solution after some minutes is far away from the optimal solution. So I just need to make sure if I'm using the correct function to manipulate the domains whenever I need, or it's because of another problem. Is setPossibleValues() the thing that I should use for this purpose?
Any comment is appreciated.