Check whether a tuple of variables cannot be constrained any further, in Mozart/Oz
-
30-10-2019 - |
문제
Greetings,
The idea can be best given with an example:
Suppose we have a vector vec(a:{FD.int 1#100} b:{FD.int 1#100} c:{FD.int 1#100})
.
I want to be able to add constraints to this vector, until the point that every additional constraint I add
to it does not add any more information, e.g. does not constraint vec.a
, vec.b
and vec.c
any further.
Is it possible to do it in Mozart/Oz?
I'd like to think it that way.
In a loop:
- Access the constraint store,
- Check whether it is changed
- Terminate if there is no change.
올바른 솔루션이 없습니다
제휴하지 않습니다 StackOverflow