Re: CLP(FD) problem in GNU Prolog
From: Andrew Eremin (a.eremin_at_icparc.ic.ac.uk)
Date: 02/03/04
- Next message: Colin Barker: "Re: CLP(FD) problem in GNU Prolog"
- Previous message: Stephen Meyles: "CLP(FD) problem in GNU Prolog"
- In reply to: Stephen Meyles: "CLP(FD) problem in GNU Prolog"
- Next in thread: Stephen Meyles: "Re: CLP(FD) problem in GNU Prolog"
- Reply: Stephen Meyles: "Re: CLP(FD) problem in GNU Prolog"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 03 Feb 2004 10:08:08 +0000
Stephen Meyles wrote:
>
> I'm playing around with constraint programming using GNU Prolog and I
> don't understand the following. I wrote the code below trying to
> solve the described problem, and don't understand why it fails to
> return an answer if P2 is constrained to [2,3,5,7], but works fine
> with P2 constrained to 7.
It gives the same answer both ways in ECLiPSe, so I assume it's a bug in
the implementation of GNU Prolog's fd constraints.
-- Andrew Eremin Research Assistant Tel: +44 (0)20 7594 8299 IC-Parc, Imperial College London Fax: +44 (0)20 7594 8432 London SW7 2AZ Email: a.eremin@icparc.ic.ac.uk
- Next message: Colin Barker: "Re: CLP(FD) problem in GNU Prolog"
- Previous message: Stephen Meyles: "CLP(FD) problem in GNU Prolog"
- In reply to: Stephen Meyles: "CLP(FD) problem in GNU Prolog"
- Next in thread: Stephen Meyles: "Re: CLP(FD) problem in GNU Prolog"
- Reply: Stephen Meyles: "Re: CLP(FD) problem in GNU Prolog"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|