Iterative Improvement Techniques for Solving Tight Constraint Satisfaction Problems Hui Zou Constraint Systems Laboratory Department of Computer Science.

Slides:



Advertisements
Similar presentations
Constraint Satisfaction Problems
Advertisements

Local Search Jim Little UBC CS 322 – CSP October 3, 2014 Textbook §4.8
CPSC 322, Lecture 14Slide 1 Local Search Computer Science cpsc322, Lecture 14 (Textbook Chpt 4.8) Oct, 5, 2012.
1 Constraint Satisfaction Problems A Quick Overview (based on AIMA book slides)
IBM Labs in Haifa © 2005 IBM Corporation Adaptive Application of SAT Solving Techniques Ohad Shacham and Karen Yorav Presented by Sharon Barner.
1 Restart search techniques for Employee Timetabling Problems Amnon Meisels And Eliezer Kaplansky Ben-Gurion University.
An Interactive System for Hiring & Managing Graduate Teaching Assistants Ryan Lim Venkata Praveen Guddeti Berthe Y. Choueiry Constraint Systems Laboratory.
CPSC 322, Lecture 14Slide 1 Local Search Computer Science cpsc322, Lecture 14 (Textbook Chpt 4.8) February, 3, 2010.
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.
Foundations of Constraint Processing, Spring 2008 Evaluation to BT SearchApril 16, Foundations of Constraint Processing CSCE421/821, Spring 2008:
Constraint Systems Laboratory Oct 21, 2004Guddeti: MS thesis defense1 An Improved Restart Strategy for Randomized Backtrack Search Venkata P. Guddeti Constraint.
An Empirical Study of the Performance of Preprocessing and Look-ahead Techniques for Solving Finite Constraint Satisfaction Problems Zheying Jane Yang.
Multi-agent Oriented Constraint Satisfaction Authors: Jiming Liu, Han Jing and Y.Y. Tang Speaker: Lin Xu CSCE 976, May 1st 2002.
CPSC 322, Lecture 14Slide 1 Local Search Computer Science cpsc322, Lecture 14 (Textbook Chpt 4.8) February, 4, 2009.
A Constraint Satisfaction Problem (CSP) is a combinatorial decision problem defined by a set of variables, a set of domain values for these variables,
Multi-Agent Based Search vs. Local Search and Backtrack Search for Solving Tight CSPs: A Practical Case Study Hui Zou and Berthe Y. Choueiry Constraint.
Foundations of Constraint Processing Evaluation to BT Search 1 Foundations of Constraint Processing CSCE421/821, Spring
Ryan Kinworthy 2/26/20031 Chapter 7- Local Search part 1 Ryan Kinworthy CSCE Advanced Constraint Processing.
Solvable problem Deviation from best known solution [%] Percentage of test runs ERA RDGR RGR LS Over-constrained.
Constraint Satisfaction Problems
Foundations of Constraint Processing, Fall 2005 Sep 20, 2005BT: A Theoretical Evaluation1 Foundations of Constraint Processing CSCE421/821, Fall 2005:
A Constraint Satisfaction Problem (CSP) is a combinatorial decision problem defined by a set of variables, a set of domain values for these variables,
Foundations of Constraint Processing, Fall 2005 November 2, 2005Local Search for CSPs1 Foundations of Constraint Processing CSCE421/821, Fall 2005:
1 Backdoors To Typical Case Complexity Ryan Williams Carnegie Mellon University Joint work with: Carla Gomes and Bart Selman Cornell University.
Distributed Scheduling. What is Distributed Scheduling? Scheduling: –A resource allocation problem –Often very complex set of constraints –Tied directly.
Foundations of Constraint Processing, Fall 2004 November 18, 2004More on BT search1 Foundations of Constraint Processing CSCE421/821, Fall 2004:
Constraint Satisfaction Problems
Constraint Satisfaction Problems
Distributed Constraint Optimization Michal Jakob Agent Technology Center, Dept. of Computer Science and Engineering, FEE, Czech Technical University A4M33MAS.
CP Summer School Modelling for Constraint Programming Barbara Smith 1.Definitions, Viewpoints, Constraints 2.Implied Constraints, Optimization,
SDQ for data set 5 (500 runs, 5 mins each) PDF for relative solution size for data set 5 (500 runs, 5 mins each) Statistics of solution size (500 runs,
Local Search CPSC 322 – CSP 5 Textbook §4.8 February 7, 2011.
Constraint Satisfaction Problems Chapter 6. Review Agent, Environment, State Agent as search problem Uninformed search strategies Informed (heuristic.
Chapter 5 Section 1 – 3 1.  Constraint Satisfaction Problems (CSP)  Backtracking search for CSPs  Local search for CSPs 2.
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.
Constraint Systems Laboratory 11/26/2015Zhang: MS Project Defense1 OPRAM: An Online System for Assigning Capstone Course Students to Sponsored Projects.
Quality of LP-based Approximations for Highly Combinatorial Problems Lucian Leahu and Carla Gomes Computer Science Department Cornell University.
A local search algorithm with repair procedure for the Roadef 2010 challenge Lauri Ahlroth, André Schumacher, Henri Tokola
CHAPTER 5 SECTION 1 – 3 4 Feb 2004 CS Constraint Satisfaction 1 Constraint Satisfaction Problems.
1. 2 Outline of Ch 4 Best-first search Greedy best-first search A * search Heuristics Functions Local search algorithms Hill-climbing search Simulated.
At the beginning of each semester, CSE hires a number of Graduate Teaching Assistants (GTAs) as graders, lab supervisors, and instructors. The department.
Computing & Information Sciences Kansas State University Friday, 08 Sep 2006CIS 490 / 730: Artificial Intelligence Lecture 7 of 42 Friday, 08 September.
Chapter 5 Team Teaching AI (created by Dewi Liliana) PTIIK Constraint Satisfaction Problems.
Maintaining Consistency in Resource Allocation Trevor Janke & Berthe Y. Choueiry Goals  Study & refine the constraint model of the existing Graduate TAs.
ERA on an over-constrained problem A Constraint-Based System for Hiring & Managing Graduate Teaching Assistants Ryan Lim, Praveen Venkata Guddeti, and.
Shortcomings of Traditional Backtrack Search on Large, Tight CSPs: A Real-world Example Venkata Praveen Guddeti and Berthe Y. Choueiry The combination.
Foundations of Constraint Processing Local Search for CSPs1 Foundations of Constraint Processing CSCE421/821, Spring
Problem Solving with Constraints Local Search for CSPs1 Foundations of Constraint Processing CSCE496/896, Fall2011
Consistency Methods for Temporal Reasoning
Foundations of Constraint Processing
An Empirical Study of the Performance
Robert Glaubius and Berthe Y. Choueiry
Empirical Comparison of Preprocessing and Lookahead Techniques for Binary Constraint Satisfaction Problems Zheying Jane Yang & Berthe Y. Choueiry Constraint.
Computer Science cpsc322, Lecture 14
Computer Science cpsc322, Lecture 14
Intelligent Backtracking Algorithms: A Theoretical Evaluation
Evaluation of (Deterministic) BT Search Algorithms
Evaluation of (Deterministic) BT Search Algorithms
Intelligent Backtracking Algorithms: A Theoretical Evaluation
Intelligent Backtracking Algorithms: A Theoretical Evaluation
Intelligent Backtracking Algorithms: A Theoretical Evaluation
Intelligent Backtracking Algorithms: A Theoretical Evaluation
Foundations of Constraint Processing
Evaluation of (Deterministic) BT Search Algorithms
Intelligent Backtracking Algorithms: A Theoretical Evaluation
Presentation transcript:

Iterative Improvement Techniques for Solving Tight Constraint Satisfaction Problems Hui Zou Constraint Systems Laboratory Department of Computer Science and Engineering University of Nebraska-Lincoln November, 2003 Supported by NSF grant #EPS

Motivation; Related works; Questions Outline Approach: goal, context & model Solvers: designed & evaluated Local search Multi-agent based search Further improvements Directions of future research

Approach Use a small but challenging real-world application to Develop new search techniques Compare & characterize the behavior of various search strategies Identify shortcomings proper to a given search strategy & propose improvements Long term goal: Provide a robust portfolio of search algorithms

Graduate Teaching Assistants (GTA) Assignment problem : In a semester, given – a set of courses, – a set of graduate teaching assistants, and – a set of constraints that specify allowable assignments find a consistent assignment of GTAs to courses Modeling - GTA In practice, this problem is tight, even over-constrained The goal: Ensure GTA support to as many courses as possible Detailed modeling in [Glaubius & Choueiry ECAI 02 WS on Modeling] Model GTA assignment problem into Constraint Satisfaction Problem (CSP)

About the GTA - objectives Optimization criteria 1.Maximize the number of courses covered 2.Maximize the geometric average of the assignments wrt the GTAs’ preference values (between 0 and 5) Problem Constraints are hard, must be met Maximal consistent partial-assignment problem Not a MAX-CSP (which maximizes #constraints satisfied) Context Ability to handle both solvable & unsolvable problem instances [Freuder ’93]

Types of search Systematic search Iterative improvement search Start with an empty assignment & expand it by instantiating one variable at a time Move: expanding a partial solution Start with a complete assignment & improve it by making local changes Move: from state to state Sound & completeNeither sound nor complete Iterative improvement search is particularly effective for large scale problems

Focus Iterative improvement search strategies Local Search (LS) –Heuristic hill-climbing Multi-agent based search (ERA) –Extremely decentralized stochastic search Systematic search Backtrack search (BT) – Heuristic backtrack search [Glaubius & Choueiry 02 ] – (Randomized backtrack search [Guddeti & Choueiry 04] )

Local search Solve non-binary CSPs Performance on solvable & unsolvable CSPs Noise strategies to handle local optima ERA Performance comparison of BT, LS & ERA Local optima in ERA? Solvable vs. unsolvable problem instances Questions addressed

Heuristic hill-climbing (LS) Min-conflict heuristic, for choosing the move –Adapted to non-binary CSPs Uses constraint propagation to handle global constraints (i.e., capacity constraints) –Drawback: Nugatory move Random walk to avoid local optima –Studied effect of the noise probability on performance Random restart to recover from local optima –Studied effect of the number of restart on performance Resulting strategy operates as a greedy stochastic search

Local search - hill-climbing with min-conflict Hill-climbing – Starts from a random state i – Choose state j among all neighbors of state i, such that state j is better than state i Min-conflict (MC) [Minton ’92] – A heuristic to evaluate and choose next state – Solve one million n-queen problem in minutes – Tested only on binary constraints

Local search -Nugatory move Problem When solving global constraints, local search gets stuck in nugatory move. Method Constraint propagation The probability p of satisfying this constraint is 3/(3^3)=11% In case, if |D|=30, p = 3/(30^3)=0.0001

Local search - Empirical study ─ For short response time, LS finds better partial solutions than BT ─ Although theoretically complete, BT thrashes forever ─ LS has qualitatively similar behaviors on solvable & unsolvable CSPs [Guddeti & Choueiry 04]

Local search - Random walk Random walk : – Avoid local optima 1 - p → MC p → Random walk p=0 = MC p=1 = Random walk P=0.02 [ Bartak ‘98]

Local search - Random walk – Set probability p = 1%~50% with increment of 1% – Evaluation criterion: # constraint check (CC) When p ≤ 5%, – MC’s influence is predominant, – noise strategy not enough effective

Local search - Random restart Restarts SD Solvable (%) Unsolvable(%) Restart the search from a new randomly selected state The number of restarts varies from 50~500 with increment of 50 Evaluated by the percentage of unassigned courses SD – standard deviation – The number of restarts does not significantly affect performance – On average, a value of 300 ~ 400 is good enough

Local search - Conclusions Binary vs. non-binary : – Constraint propagation to handle global constraint Local search (LS) vs. systematic search (BT) : – LS: quickly find a good partial solution – LS: monotonic improvement, quick stabilization, one-time reparation Solvable vs. unsolvable – similar behavior in both cases – good performance, but local optima Handle local optima – noise strategies: random walk and random restart – the setting of parameters is likely problem dependent

Background - MAS Multi-agent system (MAS): several agents interact and work together in order to achieve a set of goals. Agents: autonomous (perceive & act), goal-directed, can communicate Interaction protocols: governing communications among agents Environment: where agents live & act acting AgentsEnvironment sensing

ERA - ERA in general ERA [Liu & al. AIJ 2002] –Environment, Reactive rules, and Agents –A multi-agent formulation for solving a general CSP –Transitions between states when agents move Local search only one evaluation value (state cost) for the whole state one global goal, central control ERA each agent has its own evaluation value (position value) each agent has its own local goal, no central control It can be viewed as an extension of local search, but they are different:

ERA - ERA’s components Environment: a two-dimensional array –Each agent corresponds to a variable –Each cell stores two values (domain value, violation value) –Each position corresponds to an assignment –Agent in Zero position  constraints are satisfied ERA=Environment + Reactive rules + Agents

ERA - ERA’s components Reactive rules : –Least-move: choose a position with the min. violation value –Better-move: choose a position with a smaller violation value –Random-move: randomly choose a position Combinations of these basic rules form different behaviors. ERA=Environment + Reactive rules + Agents

ERA - ERA’s components Agents : move in its own row ERA=Environment + Reactive rules + Agents At each state, an agent chooses a position to move to following the reactive rules. The agents will keep moving until all have reached zero position, or a certain time period has elapsed. All agents find zero position Some agents find zero position

ERA - Example ( ERA ) 4-queen problem Init, UpdateEval (agent Q1)Move (agent Q1),UpdateEval (agent Q2) Eval (agent Q3)Move (agent Q3), UpdateEval (agent Q4)Move(agent4), Update

ERA - Empirical study Test on GTA problem : Testing the behavior of ERA Performance comparison: – ERA: FrBLR – LS: hill-climbing, min-conflict & random walk – BT: B&B-like, many orderings (heuristic, random) Observing behavior of individual agents The deadlock phenomenon 8 instances of the GTA problem

Observations: – BLR and FrBLR vibrate – LR quickly reaches a stable value – FrBLR achieves the largest number of agents in zero position FrBLR has the best ability to find a partial solution ERA - Behavior of ERA

Date setSystematic Search (BT)Local Search (LS)Multi-agent Search (ERA) Spring2001b B√ O× Fall2001b B√ O√ Fall2002 B√ O× Spring2003 B√ O√ Unassigned Courses Solution Quality Unused GTAs CC ( ×10 8 ) Unassigned CoursesSolution QualityUnused GTAsAvailable Resource CC ( ×10 8 ) Original/BoostedSolvable?# GTAs# CoursesTotal CapacityTotal LoadRatio=Unassigned Courses Solution Quality Unused GTAs CC ( ×10 8 ) Unassigned CoursesSolution QualityUnused GTAsAvailable Resource CC ( ×10 8 ) Original/BoostedSolvable?# GTAs# CoursesTotal CapacityTotal LoadRatio=Unassigned Courses Solution Quality Unused GTAs CC ( ×10 8 ) Unassigned CoursesSolution QualityUnused GTAsAvailable Resource CC ( ×10 8 ) Original/BoostedSolvable?# GTAs# CoursesTotal CapacityTotal LoadRatio=Unassigned Courses Solution Quality Unused GTAs CC ( ×10 8 ) Unassigned CoursesSolution QualityUnused GTAsAvailable Resource CC ( ×10 8 ) Original/BoostedSolvable?# GTAs# CoursesTotal CapacityTotal LoadRatio=Unassigned Courses Solution Quality Unused GTAs CC ( ×10 8 ) Unassigned CoursesSolution QualityUnused GTAsAvailable Resource CC ( ×10 8 ) Original/BoostedSolvable?# GTAs# CoursesTotal CapacityTotal LoadRatio=Unassigned Courses Solution Quality Unused GTAs CC ( ×10 8 ) Unassigned CoursesSolution QualityUnused GTAsAvailable Resource CC ( ×10 8 ) Original/BoostedSolvable?# GTAs# CoursesTotal CapacityTotal LoadRatio=Unassigned Courses Solution Quality Unused GTAs CC ( ×10 8 ) Unassigned CoursesSolution QualityUnused GTAsAvailable Resource CC ( ×10 8 ) Original/BoostedSolvable?# GTAs# CoursesTotal CapacityTotal LoadRatio= Original/BoostedSolvable?# GTAs# CoursesTotal capacity ( C )Total load ( L )Ratio= C \ L Unassigned CoursesSolution Quality Unused GTAsAvailable Resource CC (×10 8 )Unassigned CoursesSolution Quality Unused GTAsAvailable Resource CC (×10 8 )Unassigned CoursesSolution Quality Unused GTAsAvailable Resource CC (×10 8 ) Observations : - Only ERA can find a full solution on all solvable instances. - ERA leaves more unused GTAs than LS and BT. ERA - Performance comparison

Observation : When  1, ERA outperforms BT & LS < 1, ERA gives the worst solution Observation : On average, LS performs much fewer constraint checks ERA - Performance comparison

ERA performance on solvable instances ERA performance on unsolvable instances Observation : Solvable vs. unsolvable instances: ERA stable on solvable instances oscillates on unsolvable cases LS and BT behave the same way. ERA - Performance comparison

Instances solvable unsolvable Motion of agents variable stable constant Observations : SolvableUnsolvable Variable NoneMost Stable A few Constant MostNone ERA -behavior of individual agents

– Each circle corresponds to a given GTA (position). – Each square represents an agent. – A blank squares indicate that an agent is on a zero position. – The squares with same color indicate agents involved in a deadlock. Observation: ERA is not able to avoid deadlocks and yields a degradation of the solution on over-constrained CSPs. ERA - Deadlock

GoalActions Control SchemaUndoing assignmentsConflict resolution ERA Local + Immune to local optima – May yield instability √ + Flexible + Solves tight CSPs Non-committal – Deadlock – Shorter solutions LS Global + Stable behavior – Liable to local optima × + Quickly stabilizes – Fails to solve tight CSPs even with randomness & restart strategies Heuristic + Longer solutions – Problem-dependent BT Systematic + Stable behavior – Thrashes Only when backtracking + Quickly stabilizes – Fails to solve tight CSPS even with backtracking & restart strategies + advantages – shortcomings ERA - Conclusions

Improving ERA Mixing behaviors of agents Adding global control New search hybrid: ERA & h-BT ERA & LS Conflict resolution strategies for ERA

Improving ERA - Extensions of ERA ERA with mixed-behavior ─ Assign a random behavior before the search ─ Assign behavior randomly during the search Neither of them solves the deadlock problem Enhancing ERA with global control ─ Do not accept a movement that deteriorates the global goal Lead to ‘local search’-like behavior Unsolvable instancesSolvable instances

Improving ERA - Extensions of ERA (cont’) ERA with hybridization ─ fix partial assignment according to previous solution ─ combine with other search approach, such as LS or BT the quality of solutions gets improved ERA with conflict resolution ─ add dummy resources find a complete solution when LS and BT fail remove dummy assignments, solutions are still better

Directions for future research Enhance ERA to handle optimization Conduct thorough & formal empirical evaluations Include other search techniques in comparisons – BT search: Randomized, credit-based – Other local repair: squeaky-wheel method – Market-based techniques, etc. Validate conclusions on other CSPs – random instances, real-world problems Design & evaluate new hybrid search strategies Relate problem tightness to backbone

Acknowledgements Dr. F. Fred Choobineh Dr. Berthe Y. Choueiry (advisor) Dr. Hong Jiang Dr. Peter Revesz Members in the Constraint Systems Laboratory My friends in Lincoln My parents and my wife

Questions