In Gecode, I am using a merit function to select variables when branching.
In order to compute variable v's merit, I need to access some other variables values, but it looks like at the time the merit function is called, the space variables have not yet been asigned any values :
Exception: IntVar::val: Attempt to access value of unassigned variable.
Am I doing something wrong? Is there a way to access variables values in merit functions?