users-prolog
[Top][All Lists]
Advanced

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

negative values of Finite Domain Variables


From: Daniel Ajoy
Subject: negative values of Finite Domain Variables
Date: Fri, 27 May 2022 14:28:57 -0500

Hi,

I was expecting:

fd_domain(X,-100,100), 2 #= X + 9.

to produce

X  = -7

But it didn't find that answer. Is it the case that the FD variables can only be positive?

If that's the case, is there a workaround?

Daniel


reply via email to

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