Re: [eclipse-clp-users] Knappsack-Problem Modification

From: Wit Jakuczun <wit.jakuczun_at_gmail.com>
Date: Tue, 13 Apr 2010 12:55:07 +0200
W dniu 2010-04-13 12:34, Wit Jakuczun pisze:
>> What I've tried so far is the following that can be called by:
>> assignItems([B1,B2,B3,B4,B5,B6],Measure)
>>
> What is wrong with this solution? It seems to be ok (see below for 
> small remarks).
>
Next remarks:
1)  You are using fd library. It is, according to my knowledge, 
recommended to use ic library.
2) Domains of CLP variables should consist of integers (unless you are 
using ic_symbolic library)

[B1,B2,B3,B4,B5,B6] #:: ["B","C","D"]

I do not know why this construction is being compiled? Any one could explain?




Best regards

-- 
[ Wit Jakuczun http://pl.linkedin.com/in/jakuczunwit ]
Received on Tue Apr 13 2010 - 10:55:22 CEST

This archive was generated by hypermail 2.2.0 : Thu Feb 02 2012 - 02:31:58 CET