Thank you for your answer.
I just would like a clarification because i am getting unexpected results when logging a modified StayConstraint. Maybe i am not using correctly the API or there is another problem.
Here is what i do:
- Create a stay variable, create a stay constraint.
- Add the stay constraint to the solver.
- Suggest a different value for the stay variable.
- log the stay constraint.
In the constraint description the stay variables acquires correctly its new value but the constant in the stay constraint is not updated.
At first, i though that maybe the constraint may have been changed internally and refers to nothing inside the solver. But if I try to remove it with removeConstraint(), nobody complains and getInternalInfo() indicates that the number of constraints goes from 1 to 0, so i believe the constraint was in fact in the solver.
Something is wrong either in the solver, the constraint description, or the way i am using it and i would like to understand what it is ...