users-prolog
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

FD constraint


From: PRADOS Julien
Subject: FD constraint
Date: Tue, 28 Jan 2003 09:06:45 +0100
User-agent: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.1) Gecko/20020827

In gnu prolog, when I work with FD constraints, can I constraint a boolean B to be the result of a test between two variables X and Y ??? how should I do this ???

example, I'd like to wrote something like this:

X #= 3,
Y #< 10,
B #= (X#<Y).

and have the folowing result:

X = 3,
Y = _#0(0..9)
B = _#1(0..1)


*********


or also write something like this

C #= (A #/\ B),
C #= 1.

and have the result

A = 1
B = 1,
C = 1.







reply via email to

[Prev in Thread] Current Thread [Next in Thread]