2008/2/14 ruanzheng <[EMAIL PROTECTED]>:
> I override the "constrain" function to get the optima solution. But when I
> try to get some IntVar variables of the space in the function,
> a runtime error occurs, it says I  try to get the value of some unassigned
> IntVar variable.
> What's the possible mistake of my code?

That you try to access the value (using the val() member function) of
a variable that is not assigned. Check that you are accessing the
value of a variable form the right space, and that the variable should
in fact be assigned (you have all the branchings that are needed).

Cheers,
Mikael

-- 
Mikael Zayenz Lagerkvist, http://www.ict.kth.se/~zayenz/

_______________________________________________
Gecode users mailing list
[EMAIL PROTECTED]
https://www.gecode.org/mailman/listinfo/gecode-users

Reply via email to