Skip to main content Accessibility help
×
Hostname: page-component-848d4c4894-4rdrl Total loading time: 0 Render date: 2024-06-19T15:24:58.766Z Has data issue: false hasContentIssue false

3 - Constraint programming in a nutshell

Published online by Cambridge University Press:  15 December 2009

Krzysztof Apt
Affiliation:
Centre for Mathematics and Computer Science, Amsterdam
Get access

Summary

AT THIS STAGE it is useful to get a better feeling of what constraint programming is about. Recall that we stated in Chapter 1 that in constraint programming the programming process is limited to a generation of constraints and a solution of these constraints by means of domain specific or general methods. The aim of this chapter is to provide an intuitive introduction to these methods. In the subsequent chapters we shall discuss them in a more detailed and precise way.

To discuss these techniques it is useful to formalise appropriate notions of equivalence between CSPs. We do this in Section 3.1. Then we describe in Section 3.2 a general framework which allows us to explain the basics of constraints programming. It involves various procedures that capture specific aspects of constraint programming. Subsequently we illustrate these procedures by means of two extended examples. In Section 3.3 we consider the Boolean CSPs and in Section 3.4 constrained optimization problems involving the polynomial constraints on integer intervals.

Equivalence of CSPs

We mentioned already in Chapter 1 that we view constraint programming as a process of transforming the CSPs. To describe this process closer it is useful to formalise a number of notions concerning CSPs.

First, recall that a constraint C on a sequence of variables y1, …, yk with respective domains D1, …, Dk associated with them is a subset of D1 × … × Dk.

Type
Chapter
Information
Publisher: Cambridge University Press
Print publication year: 2003

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

Save book to Kindle

To save this book to your Kindle, first ensure coreplatform@cambridge.org is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.

Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.

Find out more about the Kindle Personal Document Service.

  • Constraint programming in a nutshell
  • Krzysztof Apt, Centre for Mathematics and Computer Science, Amsterdam
  • Book: Principles of Constraint Programming
  • Online publication: 15 December 2009
  • Chapter DOI: https://doi.org/10.1017/CBO9780511615320.003
Available formats
×

Save book to Dropbox

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.

  • Constraint programming in a nutshell
  • Krzysztof Apt, Centre for Mathematics and Computer Science, Amsterdam
  • Book: Principles of Constraint Programming
  • Online publication: 15 December 2009
  • Chapter DOI: https://doi.org/10.1017/CBO9780511615320.003
Available formats
×

Save book to Google Drive

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.

  • Constraint programming in a nutshell
  • Krzysztof Apt, Centre for Mathematics and Computer Science, Amsterdam
  • Book: Principles of Constraint Programming
  • Online publication: 15 December 2009
  • Chapter DOI: https://doi.org/10.1017/CBO9780511615320.003
Available formats
×