Re: ...Contemplating unspecified constraint SOLVERS.



On Sat, 27 Aug 2005 10:44:57 -0400, "Dirk Mittler"
<mdirk@xxxxxxxxxxxx> wrote:

>It was never my intention to complain. {:-)} And I thank you for pointing
>out that in constraint solvers, "labelling" is an important step. I will
>look up the subject in more detail then, when I find the time. For now I
>*imagine* that labelling could satisfy this need of assigning to the
>attributed variables, after constraints have been specified. This could be
>why in one Prolog example which I've seen, the 'label' command is given last
>over several variables to tell the compiler to solve. It will intrigue me
>then to learn how this command really works.

"labeling" in its simplest form is pretty dumb procedure that uses
trial-and-error method to "assign" values to domain variables
("asign" means selecting a value from variable's domain). It works
more or less this way:

1. Select values from domains of all variables and check
constraints,
2. If constraints satisfied, you have solution. If all values have
been tested, there is no solution
3. If not, change value of one selected domain variable and go to 2

Clearly, there are some technical details how to arrange this
process and make it efficient. See Apt book on constraints about
details of this process.

Advise:

Get ECLIPSE Prolog. Although registration is required, it is free
for non comemrcial applications. It comes with EXTREMELY good
tutorial on Prolog and constraint programming. In chapter 12 you
will find a lot information about constraints, labeling and problem
solving.

Tutorial is here

http://www.icparc.ic.ac.uk/eclipse/reports/tutorial58.pdf

To get ECLIPSE go here

http://www.icparc.ic.ac.uk/eclipse/

A.L.
.



Relevant Pages

  • Re: CLP(FD) team for the ASP solver competition
    ... unquoted variables. ... Prolog is untyped, so why shouldn't we have the luxury? ... equality and several other constraints while many others maintain some ... B-Prolog Version 7.2, All rights reserved, Afany Software 1994-2009. ...
    (comp.lang.prolog)
  • Re: List partitioning
    ... the fact that I'm looking for the best solution based on heuristics and constraints made me think Prolog was the best choice. ... However, I almost don't know anything about Python, so maybe you're right, maybe Python is as good as/better than Prolog for my problem... ... minimize the differences between all groups weight ...
    (comp.lang.prolog)
  • Re: pushing parallel and constraint programming
    ... with constraints. ... Maybe you should look into deductive databases where the ... OntoBroker, smodels, etc.) and there are also Prolog systems that are ... there are a lot of papers by the XSB developers ...
    (comp.lang.prolog)
  • Re: pushing parallel and constraint programming
    ... with constraints. ... Maybe you should look into deductive databases where the ... OntoBroker, smodels, etc.) and there are also Prolog systems that are ... there are a lot of papers by the XSB developers ...
    (comp.lang.prolog)
  • Re: How can I do this without cuts?
    ... > tradeoffs and of integration with other computational models (tabling, constraints, ... > that the Mercury experience is a major improvement in the field. ... Prolog part-application into the application as a whole. ... then we can use Prolog in industry. ...
    (comp.lang.prolog)