CONSTRAINT PROGRAMMING Computer Science Seminar April 9 th, 2004 Kerem Kacel.

Slides:



Advertisements
Similar presentations
Non-Binary Constraint Satisfaction Toby Walsh Cork Constraint Computation Center.
Advertisements

ISN Workshop September 2003 Constraint Programming in Practice: Scheduling a Rehearsal Barbara Smith.
1 Constraint Satisfaction Problems A Quick Overview (based on AIMA book slides)
1 CMSC 471 Fall 2002 Class #6 – Wednesday, September 18.
Introduction. IC-Parc2 ECLiPSe Components Constraint Logic Programming system, consisting of  A runtime core Data-driven computation, backtracking, garbage.
Ontological Logic Programming by Murat Sensoy, Geeth de Mel, Wamberto Vasconcelos and Timothy J. Norman Computing Science, University of Aberdeen, UK 1.
G53CLP Constraint Logic Programming Modeling CSPs – Case Study I Dr Rong Qu.
Semiring-based Soft Constraints Francesco Santini ERCIM Contraintes, INRIA – Rocquencourt, France Dipartimento di Matematica e Informatica,
IBM Labs in Haifa Generation Core: IBM's Systematic Constraint Solver.
Constraint Processing and Programming Introductory Exemple Javier Larrosa.
/425 Declarative Methods - J. Eisner1 Constraint Programming.
1 Concurrency Specification. 2 Outline 4 Issues in concurrent systems 4 Programming language support for concurrency 4 Concurrency analysis - A specification.
Programming with Constraints Jia-Huai You. Subject of Study Constraint Programming (CP) studies the computational models, languages, and systems for solving.
Constraint Satisfaction Problems. Constraint satisfaction problems (CSPs) Standard search problem: – State is a “black box” – any data structure that.
4 Feb 2004CS Constraint Satisfaction1 Constraint Satisfaction Problems Chapter 5 Section 1 – 3.
Constraint Logic Programming Ryan Kinworthy. Overview Introduction Logic Programming LP as a constraint programming language Constraint Logic Programming.
Programming Languages Structure
Heterochronous Dataflow in Ptolemy II Brian K. Vogel EE249 Project Presentation, Dec. 4, 1999.
CprE 458/558: Real-Time Systems
Nogood Recording for Static and Dynamic Constraint Satisfaction Problems Thomas Schiex, Gerard Verfaillie C.E.R.T.-O.N.E.R.A.(France)
Constraint Logic Programming (CLP) Luis Tari March 10, 2005.
How to Play Sudoku & Win Integer Programming Formulation of a Popular Game Sven LeyfferSven Leyffer, Argonne, Feb. 15, 2005 (windoze powerpoint sumi painting.
Constraint Satisfaction Problems
Constraint Reasoning Florida Institute of Technology Computer Science.
Constraint Programming: In Pursuit of the Holy Grail Roman Barták Charles University, Prague
CP Summer School Modelling for Constraint Programming Barbara Smith 1.Definitions, Viewpoints, Constraints 2.Implied Constraints, Optimization,
MBSat Satisfiability Program and Heuristics Brief Overview VLSI Testing B Marc Boulé April 2001 McGill University Electrical and Computer Engineering.
Constraint Satisfaction Problems (CSPs) CPSC 322 – CSP 1 Poole & Mackworth textbook: Sections § Lecturer: Alan Mackworth September 28, 2012.
Constraint Satisfaction Problems Chapter 6. Review Agent, Environment, State Agent as search problem Uninformed search strategies Informed (heuristic.
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
CP Summer School Modelling for Constraint Programming Barbara Smith 2. Implied Constraints, Optimization, Dominance Rules.
Hande ÇAKIN IES 503 TERM PROJECT CONSTRAINT SATISFACTION PROBLEMS.
Introduction to Database Systems1. 2 Basic Definitions Mini-world Some part of the real world about which data is stored in a database. Data Known facts.
Edge and Boundary interpretation Consistent line drawing labeling via backtracking Presented by Guy Shtub.
Comp763: Modern Computer Games Using Constraint Logic Programming to Analyze the Chronology in a William Faulkner Story Jennifer BurgSheau-Dong Lang Irwin.
Ontology-Based Computing Kenneth Baclawski Northeastern University and Jarg.
Solving Problems by searching Well defined problems A probem is well defined if it is easy to automatically asses the validity (utility) of any proposed.
1 Lic Presentation Memory Aware Task Assignment and Scheduling for Multiprocessor Embedded Systems Radoslaw Szymanek / Embedded System Design
Compiler Design Introduction 1. 2 Course Outline Introduction to Compiling Lexical Analysis Syntax Analysis –Context Free Grammars –Top-Down Parsing –Bottom-Up.
Constraints and Search Toby Walsh Cork Constraint Computation Centre (4C) Logic & AR Summer School, 2002.
Methods of Software Development Karl Lieberherr Spring 2007.
CHAPTER 5 SECTION 1 – 3 4 Feb 2004 CS Constraint Satisfaction 1 Constraint Satisfaction Problems.
Foundations of Constraint Processing, Fall 2004 October 3, 2004Interchangeability in CSPs1 Foundations of Constraint Processing CSCE421/821, Fall 2004:
A Constraint Language Approach to Grid Resource Selection Chuang Liu, Ian Foster Distributed System Lab University of Chicago
1. 2 Outline of Ch 4 Best-first search Greedy best-first search A * search Heuristics Functions Local search algorithms Hill-climbing search Simulated.
Robust Planning using Constraint Satisfaction Techniques Daniel Buettner and Berthe Y. Choueiry Constraint Systems Laboratory Department of Computer Science.
Chapter 5. Advanced Search Fall 2011 Comp3710 Artificial Intelligence Computing Science Thompson Rivers University.
Chapter 5 Team Teaching AI (created by Dewi Liliana) PTIIK Constraint Satisfaction Problems.
1 CSC 384 Lecture Slides (c) , C. Boutilier and P. Poupart CSC384: Lecture 16  Last time Searching a Graphplan for a plan, and relaxed plan heuristics.
Paper Presentation Classroom Assignment using Constraint Logic Programming [Slim Abdennadher, Matthias Saft, Sebastian Will] University of Munich Presented.
1 Constraint Satisfaction Problems (CSP). Announcements Second Test Wednesday, April 27.
Mechanisms for Requirements Driven Component Selection and Design Automation 최경석.
Composing semantic Web services under constraints E.Karakoc, P.Senkul Journal: Expert Systems with Applications 36 (2009)
© 2012 IBM Corporation Perfect Hashing and CNF Encodings of Cardinality Constraints Yael Ben-Haim Alexander Ivrii Oded Margalit Arie Matsliah SAT 2012.
Wolfgang Runte Slide University of Osnabrueck, Software Engineering Research Group Wolfgang Runte Software Engineering Research Group Institute.
CENG 424-Logic for CS Introduction Based on the Lecture Notes of Konstantin Korovin, Valentin Goranko, Russel and Norvig, and Michael Genesereth.
Wolfgang Runte Slide Marwane El Kharbili Wolfgang Runte University of Osnabrueck Institute of Computer Science Software Engineering Research.
Modelling and Solving Configuration Problems on Business
Automatic Test Generation
Consistency Methods for Temporal Reasoning
Constraint Satisfaction Problems (CSPs)
Constraint Satisfaction Problem
Business Decision Modeling
Computer Programming.
Chapter 3: Finite Constraint Domains
Programming Languages 2nd edition Tucker and Noonan
Incorporating Constraint Checking Costs in Constraint Satisfaction Problem Suryakant Sansare.
Semantic and Declarative Technologies AIT Budapest
Constraint Satisfaction Problems (CSP)
Presentation transcript:

CONSTRAINT PROGRAMMING Computer Science Seminar April 9 th, 2004 Kerem Kacel

OUTLINE Introduction History The Method Constraint Logic Programming Applications Pros/Cons Discussion

What is Constraint Programming? Software technology Describe and solve large, combinatorial problems 2 steps State the constraints of the problem Find a solution satisfying all of the constraints

What is a Constraint? Defined on a set of variables A relation on their domains e.g. “The circle is inside the square” Does NOT necessarily specify values Does restrict values

Properties of Constraints Express partial information X > 0 Heterogeneous Y = ABS(X) Non-directional X = Y+1 also means Y = X-1

Properties of Constraints (2) Additive X 1 also means X>1, X<4 Declarative “The pen is on the table” Usually dependent X + Y = 5, X * Y = 6

OUTLINE Introduction History The Method Constraint Logic Programming Applications Pros/Cons Discussion

Some History Constraint Satisfaction Problems (CSPs) were formalized in early 70s Constraint Logic Programming (CLP) emerged in early 80s, named by IBM Prolog II was the first Later CHIP (Constraints Handling in Prolog) Prolog III

Some History Cosytec Founder of “Global Constraints” Helped solve a large class of problems Planning, scheduling, sequencing ILOG SOLVER Constraint programming classes for C++, Java

OUTLINE Introduction History The Method Constraint Logic Programming Applications Pros/Cons Discussion

METHOD Define the problem as a CSP (Constraint Satisfaction Problem) Solve the CSP

What is a CSP? Constraint Satisfaction Problem Set of variables X = {x 1,…,x n } Domains D i for each variable Set of constraints An example CSP A::{1,2}, B::{1,2}, C::{1,2} A = B, A ≠ C, B > C

Solving a CSP Example CSP A::{1,2}, B::{1,2}, C::{1,2} A = B, A ≠ C, B > C Generate & Test For every value assignment in the domains, check if constraint is met e.g. A = 2, B = 2, C = 1

Solving a CSP Example CSP A::{1,2}, B::{1,2}, C::{1,2} A = B, A ≠ C, B > C Back-Tracking Start with a specific assignment Change values one by one until a solution is reached

Solving a CSP Problem: These methods are inefficient Other methods are being researched to optimize

OUTLINE Introduction History The Method Constraint Logic Programming Applications Pros/Cons Discussion

Constraint Logic Programming Constraints + LP = CLP Platforms: CHIP ECLiPSe

OUTLINE Introduction History The Method Constraint Logic Programming Applications Pros/Cons Discussion

APPLICATIONS Assignment problems Personnel assignment Scheduling problems Class schedules in schools Production planning Database Systems Ensure consistency of data

APPLICATIONS Natural Language Processing Construction of efficient parsers Electrical Engineering Locating faults in circuits Molecular Biology DNA sequences

PROS/CONS + Declarative Describe the problem, not solution + Semantics Clean, elegant languages - Unpredictable We don’t know how efficient

DISCUSSION “Were you to ask me which programming paradigm is likely to gain most in commercial significance over the next 5 years I’d have to pick Constraint Logic Programming, even though it’s perhaps currently one of the least known and understood.” Dick Pountain, BYTE, February 1995