Clarifications Required

From: Ranjana Deshpande <ranjana_at_mahindrabt.com>
Date: Thu 23 Dec 1999 10:14:33 AM GMT
Message-ID: <3861F609.A71A6662@mahindrabt.com>
Hi

I would like to know the exact difference between the predicates
"indomain" and "labeling"

In which situations should each of these be used ?

In case I have a list of varibles XList= [X1,X2,X3]
and J is sum(XList)
If I want to minimize J
which should I use
minimize(indomain(XList), XList,XList,J)
or
minimize(labeling(XList), XList,XList,J)


Thanks

Ranjana Deshpande





[ Moderator's note:

Here is the definition of labeling/1:

labeling([]).
labeling([X|Xs]) :-
	indomain(X),
	labeling(Xs).

indomain is for a single domain variable,
labeling is for a list of them.
]
Received on Wed Jan 5 10:53:39 2000

This archive was generated by hypermail 2.1.8 : Wed 16 Nov 2005 06:07:05 PM GMT GMT