© J. Christopher Beck 20051 Lecture 12: Constraint Programming 2.

Slides:



Advertisements
Similar presentations
Vehicle Routing & Job Shop Scheduling: Whats the Difference? ICAPS03, June 13, 2003 J. Christopher Beck, Patrick Prosser, & Evgeny Selensky Dept. of Computing.
Advertisements

Algorithm Design Methods (I) Fall 2003 CSE, POSTECH.
University of Toronto Mechanical & Industrial Engineering An Introduction to Constraint Programming J. Christopher Beck Dept. of Mechanical & Industrial.
University of Toronto Mechanical & Industrial Engineering An Introduction to Constraint Programming Part II: Solving Scheduling Problems J. Christopher.
Lecture 11 Last Time: Local Search, Constraint Satisfaction Problems Today: More on CSPs.
1 Constraint Satisfaction Problems A Quick Overview (based on AIMA book slides)
Lecture 6: Job Shop Scheduling Introduction
© J. Christopher Beck Lecture 7: Shifting Bottleneck.
© J. Christopher Beck Lecture 17: Tabu Search.
Truth Maintenance Systems. Outline What is a TMS? Basic TMS model Justification-based TMS.
Review: Constraint Satisfaction Problems How is a CSP defined? How do we solve CSPs?
Lecture 10: Integer Programming & Branch-and-Bound
© J. Christopher Beck Lecture 15: CP Search.
© J. Christopher Beck Lecture 14: Assembly Line Scheduling 2.
CPSC 322, Lecture 4Slide 1 Search: Intro Computer Science cpsc322, Lecture 4 (Textbook Chpt ) January, 12, 2009.
CPSC 322, Lecture 12Slide 1 CSPs: Search and Arc Consistency Computer Science cpsc322, Lecture 12 (Textbook Chpt ) January, 29, 2010.
Constraint Satisfaction Problems
GRASP-an efficient SAT solver Pankaj Chauhan. 6/19/ : GRASP and Chaff2 What is SAT? Given a propositional formula in CNF, find an assignment.
CS460 Fall 2013 Lecture 4 Constraint Satisfaction Problems.
8-1 Problem-Solving Examples (Preemptive Case). 8-2 Outline Preemptive job-shop scheduling problem (P-JSSP) –Problem definition –Basic search procedure.
© J. Christopher Beck Lecture 11: Constraint Programming 1.
Chapter 5 Outline Formal definition of CSP CSP Examples
© J. Christopher Beck Lecture 22: Local Search for Sports Scheduling.
Distributed Scheduling. What is Distributed Scheduling? Scheduling: –A resource allocation problem –Often very complex set of constraints –Tied directly.
How do you solve radical algebraic equations? =9.
Brute Force Search Depth-first or Breadth-first search
Finite Capacity Scheduling 6.834J, J. Overview of Presentation What is Finite Capacity Scheduling? Types of Scheduling Problems Background and History.
Constraint Programming for Supply Chain Management J. Christopher Beck Cork Constraint Computation Centre (4C) SCM Information Day, Nov.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
CP Summer School Modelling for Constraint Programming Barbara Smith 1.Definitions, Viewpoints, Constraints 2.Implied Constraints, Optimization,
© J. Christopher Beck Lecture 5: Project Planning 2.
Jobshop scheduling. We have a set of resources a set of jobs a job is a sequence of operations/activities sequence the activities on the resources.
Introduction to search Chapter 3. Why study search? §Search is a basis for all AI l search proposed as the basis of intelligence l inference l all learning.
© J. Christopher Beck Lecture 13: Modeling in Constraint Programming.
Midterm Review Prateek Tandon, John Dickerson. Basic Uninformed Search (Summary) b = branching factor d = depth of shallowest goal state m = depth of.
Computer Science CPSC 322 Lecture 13 Arc Consistency (4.5, 4.6 ) Slide 1.
CP Summer School Modelling for Constraint Programming Barbara Smith 2. Implied Constraints, Optimization, Dominance Rules.
Constraint Satisfaction CPSC 386 Artificial Intelligence Ellen Walker Hiram College.
Hande ÇAKIN IES 503 TERM PROJECT CONSTRAINT SATISFACTION PROBLEMS.
CSC 423 ARTIFICIAL INTELLIGENCE Constraint Satisfaction Problems.
© J. Christopher Beck Lecture 6: Time/Cost Trade-off in Project Planning.
15.053Tuesday, April 9 Branch and Bound Handouts: Lecture Notes.
© J. Christopher Beck Lecture 25: Workforce Scheduling 3.
Schreiber, Yevgeny. Value-Ordering Heuristics: Search Performance vs. Solution Diversity. In: D. Cohen (Ed.) CP 2010, LNCS 6308, pp Springer-
Chapter 5 Constraint Satisfaction Problems
Constraints and Search Toby Walsh Cork Constraint Computation Centre (4C) Logic & AR Summer School, 2002.
CONSTRAINT-BASED SCHEDULING AND PLANNING Speaker: Olufikayo Adetunji CSCE 921 4/08/2013Olufikayo Adetunji 1 Authors: Philippe Baptiste, Philippe Laborie,
M Tech Project – First Stage Improving Branch-And-Price Algorithms For Solving 1D Cutting Stock Problem Soumitra Pal [ ]
1 Constraint Satisfaction Problems Chapter 5 Section 1 – 3 Grand Challenge:
Arc Consistency CPSC 322 – CSP 3 Textbook § 4.5 February 2, 2011.
Put a different number in each circle (1 to 8) such that adjacent circles cannot take consecutive numbers.
Chapter 13 Backtracking Introduction The 3-coloring problem
Arc Consistency and Domain Splitting in CSPs CPSC 322 – CSP 3 Textbook Poole and Mackworth: § 4.5 and 4.6 Lecturer: Alan Mackworth October 3, 2012.
Using Constructive Search in Resource Scheduling By Andrei Missine.
© J. Christopher Beck Lecture 16: Local Search.
Roman Barták (Charles University in Prague, Czech Republic) ACAT 2010.
Constraint Propagation CS121 – Winter Constraint Propagation2 Constraint Propagation … … is the process of determining how the possible values of.
Jobshop scheduling.
CSPs: Search and Arc Consistency Computer Science cpsc322, Lecture 12
CSPs: Search and Arc Consistency Computer Science cpsc322, Lecture 12
Constraint Satisfaction Problems Lecture # 14, 15 & 16
Lecture 8: Dispatch Rules
Lecture 11: Tree Search © J. Christopher Beck 2008.
CSPs: Search and Arc Consistency Computer Science cpsc322, Lecture 12
Constraint Propagation
Artificial Intelligence
Chapter 6 Planning-Graph Techniques
Lecture 9: Tabu Search © J. Christopher Beck 2005.
Artificial Intelligence
Presentation transcript:

© J. Christopher Beck Lecture 12: Constraint Programming 2

© J. Christopher Beck Outline Quick CP Review More propagation Edge Finding The Overall CP Loop

© J. Christopher Beck The Core of CP Modeling How to represent the problem Heuristic search How to branch How much effort to find a good branch Inference/propagation How much effort Backtracking

© J. Christopher Beck Generic CP Algorithm Assert Commitment Propagators Start Success Solution? Make Heuristic Decision Backtrack Technique Failure Nothing to retract? Dead-end?

© J. Christopher Beck Constraint-Based Analysis (CBA) Operations on the same unary capacity resource What can you infer here?

© J. Christopher Beck CBA Rules For all pairs of activities, A i and A j : Case 1: If lft i – est j < dur i + dur j  lft j – est i then A i must be before A j. Case 2: If dur i + dur j > lft j – est i and dur i + dur j > lft i – est j then dead-end. Case 3: If dur i + dur j  lft j – est i and dur i + dur j  lft i – est j then either OK. On the same unary-capacity resource

© J. Christopher Beck This Lecture Another propagator Edge Finding Exclusion “Big Picture CP” Solve the cut out example

© J. Christopher Beck Edge-Finding Exclusion S est(S) lft(S) 25

© J. Christopher Beck Edge-Finding Exclusion Sest(S)lft(S)

© J. Christopher Beck Exclusion Rules For all non-empty subsets, S, and activities A  S: (lft(S) - est(S) < dur A + dur(S))  (lft(S) - est A < dur A + dur(S)) est A  est(S) + dur(S) (lft(S) - est(S) < dur A + dur(S))  (lft A - est(S) < dur A + dur(S)) lft A  lft(S) - dur(S) On the same, unary capacity resource

© J. Christopher Beck Edge Finding Exclusion Run CBA & Edge Finding Exclusion on the following activities A A A

© J. Christopher Beck Propagators Summary Analyze the current state in order to find new constraints that are implied Make commitments (e.g., remove values) that would otherwise have to be searched over Never make a mistake!

© J. Christopher Beck Heuristics/Branching Use the structure of the search state (e.g., flexibility) to guide the heuristic decisions (“commitment”) Could be mistaken – and so you might need to backtrack

© J. Christopher Beck Generic CP Algorithm Assert Commitment Propagators Start Success Solution? Make Heuristic Decision Backtrack Technique Failure Nothing to retract? Dead-end?

© J. Christopher Beck CP on Cut Out Problem Run CP on the cut out problem Use CBA, EF Exclusion Flexibility Heuristic Activities Jobs1234 1M1, 9M2, 8M3, 4M4, 4 2M1, 5M2, 6M4, 3M3, 6 3M3, 10M1, 4M2, 9M4, 2