15 July 2005Edward Tsang (Copyright)1 Constraint Satisfaction and Optimization Professor Edward Tsang University of Essex URL:

Slides:



Advertisements
Similar presentations
Constraint Satisfaction Problems
Advertisements

Constraint Satisfaction Patrick Prosser. An Example, Exam Timetabling Someone timetables the exams We have a number of courses to examine how many? Dept.
Constraint Satisfaction Problems Russell and Norvig: Chapter
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)
1 Finite Constraint Domains. 2 u Constraint satisfaction problems (CSP) u A backtracking solver u Node and arc consistency u Bounds consistency u Generalized.
ICS-271:Notes 5: 1 Lecture 5: Constraint Satisfaction Problems ICS 271 Fall 2008.
MBD and CSP Meir Kalech Partially based on slides of Jia You and Brian Williams.
Artificial Intelligence Constraint satisfaction problems Fall 2008 professor: Luigi Ceccaroni.
Review: Constraint Satisfaction Problems How is a CSP defined? How do we solve CSPs?
1 Restart search techniques for Employee Timetabling Problems Amnon Meisels And Eliezer Kaplansky Ben-Gurion University.
Progress in Linear Programming Based Branch-and-Bound Algorithms
CE884 – 19 th February 2010 Industrial Applications of Constraint Satisfaction Dr. James Borrett Visiting Fellow, University of Essex & Global Optimum.
CPSC 322, Lecture 15Slide 1 Stochastic Local Search Computer Science cpsc322, Lecture 15 (Textbook Chpt 4.8) February, 6, 2009.
4 Feb 2004CS Constraint Satisfaction1 Constraint Satisfaction Problems Chapter 5 Section 1 – 3.
Artificial Intelligence Constraint satisfaction Chapter 5, AIMA.
Math443/543 Mathematical Modeling and Optimization
Ryan Kinworthy 2/26/20031 Chapter 7- Local Search part 1 Ryan Kinworthy CSCE Advanced Constraint Processing.
Constraint Satisfaction Problems
Constraint Satisfaction
First PageFirst Page APSolve Sirius House Adastral Park Martlesham Ipswich IP5 3RE Tel: +44(0) Doc Ref: APS(uk)xxxx.
Constraint Satisfaction Problems
Constraint Satisfaction Problems
1 Constraint Satisfaction Problems Slides by Prof WELLING.
CP Summer School Modelling for Constraint Programming Barbara Smith 1.Definitions, Viewpoints, Constraints 2.Implied Constraints, Optimization,
Edward Tsang Research Business applications of Artificial Intelligence Constraint satisfaction & optimization research –A branch of combinatorial optimisation.
Local Search CPSC 322 – CSP 5 Textbook §4.8 February 7, 2011.
Search Methods An Annotated Overview Edward Tsang.
Constraint Satisfaction Problems Chapter 6. Review Agent, Environment, State Agent as search problem Uninformed search strategies Informed (heuristic.
Constraint Satisfaction Read Chapter 5. Model Finite set of variables: X1,…Xn Variable Xi has values in domain Di. Constraints C1…Cm. A constraint specifies.
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.
Searching by Constraint CMSC Artificial Intelligence January 24, 2008.
Hande ÇAKIN IES 503 TERM PROJECT CONSTRAINT SATISFACTION PROBLEMS.
Chapter 5: Constraint Satisfaction ICS 171 Fall 2006.
CSCI 5582 Fall 2006 CSCI 5582 Artificial Intelligence Fall 2006 Jim Martin.
CSC 8520 Spring Paula Matuszek CS 8520: Artificial Intelligence Search 3: Constraint Satisfaction Problems Paula Matuszek Spring, 2013.
FORS 8450 Advanced Forest Planning Lecture 5 Relatively Straightforward Stochastic Approach.
© J. Christopher Beck Lecture 25: Workforce Scheduling 3.
Chapter 5 Constraint Satisfaction Problems
Constraints and Search Toby Walsh Cork Constraint Computation Centre (4C) Logic & AR Summer School, 2002.
Review Test1. Robotics & Future Technology Future of Intelligent Systems / Ray Kurzweil futurist Ray Kurzweil / A Long Bet A Long Bet / Robot Soccer.
An Introduction to Artificial Intelligence Lecture 5: Constraint Satisfaction Problems Ramin Halavati In which we see how treating.
1 Constraint Satisfaction Problems Chapter 5 Section 1 – 3 Grand Challenge:
CHAPTER 5 SECTION 1 – 3 4 Feb 2004 CS Constraint Satisfaction 1 Constraint Satisfaction Problems.
Constraint Satisfaction Problems University of Berkeley, USA
Thursday, 07 January 2016Edward Tsang (Copyright)1 Constraint Satisfaction for Decision Making Professor Edward Tsang University of Essex URL:
Put a different number in each circle (1 to 8) such that adjacent circles cannot take consecutive numbers.
1. 2 Outline of Ch 4 Best-first search Greedy best-first search A * search Heuristics Functions Local search algorithms Hill-climbing search Simulated.
Chapter 5 Team Teaching AI (created by Dewi Liliana) PTIIK Constraint Satisfaction Problems.
Constraint Propagation Artificial Intelligence CMSC January 22, 2002.
Lecture 5: 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.
Roman Barták (Charles University in Prague, Czech Republic) ACAT 2010.
ARTIFICIAL INTELLIGENCE (CS 461D) Dr. Abeer Mahmoud Computer science Department Princess Nora University Faculty of Computer & Information Systems.
CS 561, Session 8 1 This time: constraint satisfaction - Constraint Satisfaction Problems (CSP) - Backtracking search for CSPs - Local search for CSPs.
Constraint Satisfaction Problems Lecture # 14, 15 & 16
Constraint Satisfaction Problem
Advanced Artificial Intelligence
ME 521 Computer Aided Design 15-Optimization
Computer Science cpsc322, Lecture 14
Chapter 3: Finite Constraint Domains
Constraint Satisfaction Problems
Artificial Intelligence
Guided Local Search – CP Meets OR
Constraints and Search
Constraint Satisfaction Problems. A Quick Overview
CS 8520: Artificial Intelligence
Constraint Satisfaction Problems
Presentation transcript:

15 July 2005Edward Tsang (Copyright)1 Constraint Satisfaction and Optimization Professor Edward Tsang University of Essex URL:

15 July 2005Edward Tsang (Copyright) 2 What is Constraint Satisfaction? Constraint satisfaction is a decision problem –You are given a number of decisions to make –For each decision, you are given a (finite) number of choices –Decisions constrain each other Your task is to make those decisions without violating any of the constraints Sometimes you want the “best” solution –If so, you have a (constrained) optimisation problem

15 July 2005Edward Tsang (Copyright) 3 Why constraint satisfaction? It is a very general problem (seen everywhere) –Mainly logistics, scheduling, resources allocation Specialized methods available Now multi-million Pounds/Dollars business Scientific challenges: –Combinatorial explosion (fundamental problem) –Modelling (engineering problem)

15 July 2005Edward Tsang (Copyright) 4 Sample Constraint Applications Resources Allocation –Staff rostering, timetabling –British Telecom’s work force schedulingBritish Telecom’s work force scheduling –British Airway’s flight schedulingBritish Airway’s flight scheduling Transportation –ILOG Dispatcher for vehicle routing –Train and bus scheduling –Collective transportationCollective transportation Logistics –Satellite scheduling –Radio links assignment (military & mobiles) –Telephone Network routing –Airport / container port Industrial Scheduling –Just-in-time scheduling –Hardware configuration –Car sequencingCar sequencing

15 July 2005Edward Tsang (Copyright) 5 Car Sequencing Problem Options ABS CD …   Total: 120 Production: ABS area:  3/5 CD area:  2/3

15 July 2005Edward Tsang (Copyright) 6 Airline Applications Constraint satisfaction and optimization are behind many applications in airline operations; e.g. British Airways uses ECLiPSe (IC-Parc) for scheduling aircraft to serve their flights and ILOG Solver for aircraft stand allocation at airports.

15 July 2005Edward Tsang (Copyright) 7 Transportation Constraint satisfaction is one of the core technologies in transportation optimization. For example Guided Local Search was used in ILOG Solver’s vehicle routing package, Dispatcher. Cairo/Line schedule for collective transportation.

15 July 2005Edward Tsang (Copyright) 8 BT’s Workforce Scheduling BT has many jobs to be done in UK every day. It has to schedule a large number of teams to serve these jobs, subject to time, skill and other constraints. Saving of 0.5% could mean Millions of Pounds per year. Guided Local Search achieved the best results in one of BT’s challenge problems. Technicians Jobs

15 July 2005Edward Tsang (Copyright) 9 CP in Steel Industry IBM helped Korea’s biggest steel manufacturer to apply constraint technology to schedule its production to meet orders. This include the allocation of existing stocks to orders, subject to various constraints, such as size, quality and colour, in order to minimize waste and cost. OrdersSteel Slabs

15 July 2005Edward Tsang (Copyright) 10 Constraint Programming Areas: modelling, algorithms, algorithm mapping, monitoring, packages Given: Problem Description Formulations (Modelling) AlgorithmsImplementations (e.g. ILOG Solver)

15 July 2005Edward Tsang (Copyright) 11 Constraint Techniques Overview Brute-force Search Problem Reduction Lookahead Search –Forward Checking, Arc-consistency Lookahead, …Forward CheckingArc-consistency Lookahead Failure handling at dead-ends –Intelligent Backtracking, Learning Nogoods, …Intelligent Backtracking Variables ordering heuristics Stochastic methods –Local Search, GSAT, Guided Local Search, …Local SearchGuided Local Search Constrained optimization

15 July 2005Edward Tsang (Copyright) 12 Maintaining Arc-Consistency Variables: x, y, z Domains: {1, 2, 3, 4} Constraints: x < y ; y < z x1234 y1234 z1234 x is not supported by y and is not supported by x X y is not supported by z and & is not supported by y X X XX Re-check x as now (with gone) it has no support from y X

15 July 2005Edward Tsang (Copyright) ABCD EFG H Backtracking Search In The 8-Queens Problem Place one queen per row Place one queen at a time Examine each column Backtrack at dead-ends X Complete search, till solution found, or “no solution” is concluded Strategies at dead-ends: Learning “no goods” dependency directed backtracking

15 July 2005Edward Tsang (Copyright) ABCD EFG H Forward Checking Search Problem reduction –a major technique Combined with search methods Reduce domain of future variables Detect dead-ends –To backtrack early X X X X X X X X X X X X X X X X X X X X X X X X X XX X X X X X X X X X X Dead-end detected after Queen 4 – no legal space for row 6, backtrack…

15 July 2005Edward Tsang (Copyright) 15 Arc-Consistency Lookahead 8-Queens Problem Three queens have been placed Maintaining AC ABCD EFG H X XX XXXX XXXXX XXXX XXX X X XXXXX Result: dead-end found in row 7 Backtrack required – typically remove Queen 3

15 July 2005Edward Tsang (Copyright) ABCD EFG H Back Jumping Jump to the latest culprit Recorded earliest conflict Identify the latest culprit, which is 4 Undo queens 5 and 4, continue

15 July 2005Edward Tsang (Copyright) 17 Combinatorial Explosion of the Car Sequencing Problem Schedule 30 cars: –Search space: 30 factorial  leaf nodes Generously allow: –Explore one in every leaf nodes! –Examine nodes per second! Problem takes over 32 thousand years to solve!!! –10 32 ÷ ÷ ÷ 60 ÷ 60 ÷ 24 ÷ 365  31,710 How to contain combinatorial explosion?

15 July 2005Edward Tsang (Copyright) 18 Local Search Ingredients: –Cost function –Neighbourhood function –[Optional] Strategy for visiting neighbours e.g. steepest ascent Problems: –local optimum –Plateau –When to stop? Ok with satisfiability But not optimization local max. global max. Cost function plateau neighbourhood better worse

15 July 2005Edward Tsang (Copyright) 19 The GLS Algorithm Iterative local search In a local minimum s* –Select FeaturesSelect Features Maximize utility –Increase penalties (strengthen constraints) Resume Local Search from s* I i (s*) = 1 if s* exhibits feature i; 0 otherwise p i = penalty of feature I (init. to 0) c i = cost of feature i GLS->TSPFunction

15 July 2005Edward Tsang (Copyright) 20 GLS: Augmented Cost Function Identifying solution features, e.g. Edges used associate costs and penalties to features Given cost function g to minimize Augmented Cost Function h(s) = g (s) +  ×  p i × I i (s)) is parameter to GLS I i (s) = 1 if s exhibits feature i; 0 otherwise p i is penalty for feature i, initialized to 0

15 July 2005Edward Tsang (Copyright) 21 GLS on TSP Local search: 2-opting  = a  g ( t* ) / n Features:  n 2 Features  cost = distance given  e.g. tour [1,5,3,4,6,2] t* = first local minimum produced by local search; g(t*) = cost of t* n = # of cities a = parameter to tune, within (0, 1]

15 July 2005Edward Tsang (Copyright) 22 Summary, Constraint Programming Focus on (finite choices) decision problem Constraint satisfaction is a general problem –Many applications Efficient algorithms developed –To exploit the specific features of the problems CP is a successful multi-£/$M business –ILOG Solver, ECLiPSe, Actenum CP is a technique that can’t be ignored