Integrating Planning & Scheduling Subbarao Kambhampati Scheduling: The State of the Art.

Slides:



Advertisements
Similar presentations
Constraint Satisfaction Problems
Advertisements

Forward-Chaining Partial-Order Planning Amanda Coles, Andrew Coles, Maria Fox and Derek Long (to appear, ICAPS 2010)
Constraint Satisfaction Problems Russell and Norvig: Parts of Chapter 5 Slides adapted from: robotics.stanford.edu/~latombe/cs121/2004/home.htm Prof: Dekang.
ECE 667 Synthesis and Verification of Digital Circuits
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.
Coping with Time & Continuous Quantities David E. Smith Collaborators: Jeremy Frank, Ari Jónsson.
CALTECH CS137 Winter DeHon CS137: Electronic Design Automation Day 14: March 3, 2004 Scheduling Heuristics and Approximation.
Contents College 4 §4.1, §4.2, §4.4, §4.6 Extra literature on resource constrained project scheduling (will be handed out)
Lecture 10: Integer Programming & Branch-and-Bound
Happy Spring Break!. Integrating Planning & Scheduling Subbarao Kambhampati Scheduling: The State of the Art.
1 Stochastic Event Capture Using Mobile Sensors Subject to a Quality Metric Nabhendra Bisnik, Alhussein A. Abouzeid, and Volkan Isler Rensselaer Polytechnic.
PlanSIG, Dec, Temporal Plans and Resource Management Pieter Buzing & Cees Witteveen Delft University of Technology.
4 Feb 2004CS Constraint Satisfaction1 Constraint Satisfaction Problems Chapter 5 Section 1 – 3.
Chapter 2: Model of scheduling problem Components of any model: Decision variables –What we can change to optimize the system, i.e., model output Parameters.
Integrating Planning & Scheduling Subbarao Kambhampati Scheduling: The State of the Art.
Solving the Protein Threading Problem in Parallel Nocola Yanev, Rumen Andonov Indrajit Bhattacharya CMSC 838T Presentation.
8-1 Problem-Solving Examples (Preemptive Case). 8-2 Outline Preemptive job-shop scheduling problem (P-JSSP) –Problem definition –Basic search procedure.
Reviving Integer Programming Approaches for AI Planning: A Branch-and-Cut Framework Thomas Vossen Leeds School of Business University of Colorado at Boulder.
BNAIC, Oct, Temporal Plans and Resource Management Pieter Buzing & Cees Witteveen TU Delft.
Integrating Planning & Scheduling Subbarao Kambhampati Integrating Planning & Scheduling Agenda:  Questions on Scheduling?  Discussion on Smith’s paper?
Review of Reservoir Problem OR753 October 29, 2014 Remote Sensing and GISc, IST.
1 Planning and Scheduling to Minimize Tardiness John Hooker Carnegie Mellon University September 2005.
1 Combinatorial Problems in Cooperative Control: Complexity and Scalability Carla Gomes and Bart Selman Cornell University Muri Meeting March 2002.
Penn ESE535 Spring DeHon 1 ESE535: Electronic Design Automation Day 5: February 2, 2009 Architecture Synthesis (Provisioning, Allocation)
Iterative Flattening in Cumulative Scheduling. Cumulative Scheduling Problem Set of Jobs Each job consists of a sequence of activities Each activity has.
Constraint Satisfaction Problems
Using Abstraction in Multi-Rover Scheduling Bradley J. Clement and Anthony C. Barrett Artificial Intelligence Group Jet Propulsion Laboratory {bclement,
Introduction to Job Shop Scheduling Problem Qianjun Xu Oct. 30, 2001.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Constraint Satisfaction Problems Chapter 6. Review Agent, Environment, State Agent as search problem Uninformed search strategies Informed (heuristic.
1 The LPSAT Engine and its Application to Metric Planning Steve Wolfman University of Washington CS&E Advisor: Dan Weld.
Chapter 5 Section 1 – 3 1.  Constraint Satisfaction Problems (CSP)  Backtracking search for CSPs  Local search for CSPs 2.
CP Summer School Modelling for Constraint Programming Barbara Smith 2. Implied Constraints, Optimization, Dominance Rules.
Decision Diagrams for Sequencing and Scheduling Andre Augusto Cire Joint work with David Bergman, Willem-Jan van Hoeve, and John Hooker Tepper School of.
Chapter 1. Formulations 1. Integer Programming  Mixed Integer Optimization Problem (or (Linear) Mixed Integer Program, MIP) min c’x + d’y Ax +
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.
1 Outline:  Optimization of Timed Systems  TA-Modeling of Scheduling Tasks  Transformation of TA into Mixed-Integer Programs  Tree Search for TA using.
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.
Towards Proactive Replanning for Multi-Robot Teams Brennan Sellner and Reid Simmons 5th International Workshop on Planning and Scheduling for Space October.
Schreiber, Yevgeny. Value-Ordering Heuristics: Search Performance vs. Solution Diversity. In: D. Cohen (Ed.) CP 2010, LNCS 6308, pp Springer-
Roman Barták Visopt B.V. (NL) / Charles University (CZ) IP&S in complex and dynamic areas Visopt Experience.
CONSTRAINT-BASED SCHEDULING AND PLANNING Speaker: Olufikayo Adetunji CSCE 921 4/08/2013Olufikayo Adetunji 1 Authors: Philippe Baptiste, Philippe Laborie,
Chapter 2) CSP solving-An overview Overview of CSP solving techniques: problem reduction, search and solution synthesis Analyses of the characteristics.
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.
1 CMSC 471 Fall 2004 Class #21 – Thursday, November 11.
Chapter 5 Team Teaching AI (created by Dewi Liliana) PTIIK Constraint Satisfaction Problems.
AAAI of 20 Deconstructing Planning as Satisfiability Henry Kautz University of Rochester in collaboration with Bart Selman and Jöerg Hoffmann.
Product A Product B Product C A1A1 A2A2 A3A3 B1B1 B2B2 B3B3 B4B4 C1C1 C3C3 C4C4 Turret lathes Vertical mills Center lathes Drills From “Fundamentals of.
Roman Barták (Charles University in Prague, Czech Republic) ACAT 2010.
1 Chapter 5 Branch-and-bound Framework and Its Applications.
1 Constraint Satisfaction Problems (CSP). Announcements Second Test Wednesday, April 27.
EBL & DDB for Graphplan (P lanning Graph as Dynamic CSP: Exploiting EBL&DDB and other CSP Techniques in Graphplan) Subbarao Kambhampati Arizona State University.
Scheduling with Constraint Programming
Automatic Test Generation
TÆMS-based Execution Architectures
Basic Project Scheduling
Basic Project Scheduling
Integer Programming (정수계획법)
Chapter 1. Formulations (BW)
Integer Programming (정수계획법)
Graphplan/ SATPlan Chapter
Graphplan/ SATPlan Chapter
CS 8520: Artificial Intelligence
Chapter 1. Formulations.
Constraint Satisfaction Problems
Presentation transcript:

Integrating Planning & Scheduling Subbarao Kambhampati Scheduling: The State of the Art

Integrating Planning & Scheduling Subbarao Kambhampati Simple job-shop Scheduling: Brief Overview Jobshop scheduling –Set of jobs »Each job consists of tasks in some (partial) order –Temporal constraints on jobs »Sequencing constraints »Release times, deadlines, durations l EST, LFT, Duration –Contention/capacity constraints »Each task can be done on a subset of machines CSP Models –Time point model »Tasks as variables, Time points as values »EST, LFT, Machine contention as constraints –Inter-task precedences as variables (PCP model) CSP Techniques –Customized consistency enforcement techniques »ARC-B consistency »Edge-finding –Customized variable/value ordering heuristics »Contention-based »Slack-based –MaxCSP; B&B searches T2 M EST LFT P1,P2 st2 st1

Integrating Planning & Scheduling Subbarao Kambhampati Job Shop Scheduling as a CSP Precedence Constraints Capacity Constraints Variables: Start time st i l Domain: [est i l ….lst i l ] Precedence constraints: st i l + p i l  st j l Release times/deadlines: R  st i 1 ; st i 1 + p i 1  D Capacity Constraints : st i l + p i l  st j l  st j l + p j l  st i l Start Point Representation PCP Representation Variables: Ordering(i,j,R) for task i and j contending for resource R. Dependent Var: St i Domain: {i-before-j, j-before-i} Constraints: Sequencing constraints: O(I,j,R)=i-bef-j Capacity constraints: O(I,j,R)=i-bef-j ORO(I,j,R)=j-bef-I Release times, deadlines: R  sti1 ; sti1 +dui1  D Inter-variable constraints: O(I,j,R)=i-bef-j => sti +pi <= stj Disjunction typically comes through capacity constraints Making the problem harder: --Multi-capacity resources >> a machine that can handle 4 jobs at a time --Disjunctive activities >>schedule at least one of the following tasks --Setup constraints >>if you schedule task1, you need to schedule 3 and 4

Integrating Planning & Scheduling Subbarao Kambhampati Start point vs. PCP (not all that unlike State-space vs. PO) G Solution to the Start point encoding is a single feasible schedule G Handling of multi-capacity resources easy.. G Solution to the PCP encoding is a simple temporal network, all of whose dispatches are feasible schedules –Sort of like PO planning— which gives a PO plan, all of whose linearizations are valid plans G Conventional wisdom is that PCP does not scale well to multi-capacity resource scenarios

Integrating Planning & Scheduling Subbarao Kambhampati Constraint Propagation 1.Pick ordering decision with the overall minimum slack min{slack[(u->v ); slack(v->u)] {Most constrained variable} 2. Assign that ordering decision the value for which the slack is higher. {Least constraining value}  B-slack = slack/sqrt(S) S is the ratio of min and max slacks of a given ordering. to normalize for the variation [20, 3] vs. [4, 3] PCP SCHEDULING

Integrating Planning & Scheduling Subbarao Kambhampati Minimizing Schedule “Makespan” G Approach: –Establish lower and upper bounds on overall schedule end. –Repeatedly apply PCP to find the best solution within these bounds. G Details: –Generate schedule ignoring resource constraints to provide determine lower bound. –Apply one or more dispatch scheduling procedures to provide upper bound. –Apply PCP k times with “common deadlines” evenly distributed between these bounds.

Integrating Planning & Scheduling Subbarao Kambhampati Other Constraint Propagation Ideas Through Resource constraints Arc-Bounds Edge-Finding Many other ideas: --Energy-based propagation --Time-table propagation etc. See Laborie, AIJ 2002

Integrating Planning & Scheduling Subbarao Kambhampati Contention-based Ordering Heuristics time demand Individual Demand of O1 for Rj time demand Aggregate Demand (of all O) for Rj time Individual Demand of O2 for Rj demand Most critical region Operation O1 Start Time Distribution probability Start time 03 6 Contention: Aggregated curves found for each resource Critical Region: Where a resource is contended the most Most Critical Unassigned Operation: Contributes the largest area in critical region Variable Ordering Heuristic: Choose the most critical unassigned operation [Sadeh, 1991]

Integrating Planning & Scheduling Subbarao Kambhampati Current State of Scheduling as CSP G Constraint-based scheduling techniques are an integral part of the scheduling suites by ILOG/I2 –Optimization results comparable to best approximation algorithms currently known on standard benchmark problems. –Best known solutions to more idiosyncratic, “multi- product hoist scheduling” application (PCB electroplating). G Better in most large-scale problems than IP formulations

Integrating Planning & Scheduling Subbarao Kambhampati The Choice Spectrum planning job-shop scheduling

Integrating Planning & Scheduling Subbarao Kambhampati The Choice Spectrum planning job-shop scheduling Job1 task1 < task2 < task3 < … Job2 Job3 … R3R7R1 Ordering choices only

Integrating Planning & Scheduling Subbarao Kambhampati The Choice Spectrum cascading levels of choice planning job-shop scheduling … ………… ……

Integrating Planning & Scheduling Subbarao Kambhampati The Choice Spectrum job-shop scheduling planning resource choices (RCSP) umfagoggin clavitracle fernambulator 5 11 Task1 Task2 Task3 Task4 Task5 Task6 Task8 Task7 [8,17] Ordering choices Resource choices

Integrating Planning & Scheduling Subbarao Kambhampati The Choice Spectrum job-shop scheduling planning resource choices (RCSP) alternative processes process3process7 process8 Task1 Task2 Task3 Task4 Task5 Task6 Task8 Task7 Ordering choices Resource choices Process choices

Integrating Planning & Scheduling Subbarao Kambhampati The Choice Spectrum planning ambitious spacecraft job-shop scheduling resource choices (RCSP) alternative processes Observation choices Instrument choices Calibration target choices Ordering choices Communication choices Instrument status choices

Integrating Planning & Scheduling Subbarao Kambhampati The Choice Spectrum planning Subset Selection ambitious spacecraft observation scheduling process planning job-shop scheduling resource choices (RCSP) alternative processes

Integrating Planning & Scheduling Subbarao Kambhampati Integrating Planning & Scheduling

Subbarao Kambhampati Planning –Initial state & a set of Goals, –A library of actions »Preconditions/effects l Discrete/Continuous »Resource requirements Synthesize a sequence of actions capable of satisfying goals I = initial state G = goal state O i (prec)(effects) [ I ] O i O j O k O m [ G ] Planning vs. Scheduling Scheduling –Set of jobs (may have of tasks in some (partial) order) –Temporal constraints on jobs »EST, LFT, Duration –Contention constraints »Each task can be done on a subset of machines Find start times for jobs that are optimal (wrt make-spans, resource consumption etc) A Continuum --Research into planning and scheduling methods has largely been de-coupled Resource Reasoning Causal Reasoning

Integrating Planning & Scheduling Subbarao Kambhampati Need for Integration G Most existing planners concentrate on action selection, ignoring resource allocation –Plan-based interfaces –Interactive decision support G Most existing schedulers concentrate only on resource allocation, ignoring action selection –E.g. HSTS operation scheduling G Many real-world problems require both capabilities –Supply Chain Management problems »I2, ILOG, Manugistics –Planning in domains with durative actions, continuous change »NASA RAX experiment

Integrating Planning & Scheduling Subbarao Kambhampati Why now? G Significant scale-up in plan synthesis in last 4-5 years –5/6 action plans in minutes to 100 action plans in minutes –Breakthroughs in search space representation, heuristic and domain-specific G Significant strides in our understanding of connections between planning and scheduling –Rich connections between planning and CSP/SAT/ILP »Vanishing separation between planning techniques and scheduling techniques

Integrating Planning & Scheduling Subbarao Kambhampati Approaches for Integration G Extend schedulers to handle action and resource choices G Extend planners to deal with resources, durative actions and continuous quantities G Coupled Architectures –De-coupled –Loosely Coupled (RealPlan System)

Integrating Planning & Scheduling Subbarao Kambhampati Approaches G Decoupled –Existing approaches G Monolithic –Extend Planners to handle time and resources –Extend Schedulers to handle choice G Loosely Coupled –Making planners and schedulers interact

Integrating Planning & Scheduling Subbarao Kambhampati Decoupled approaches (which is how Project Mgmt Done now) Management Technology Development Mid-lower manager Implementers MS Project (task planning) (scheduling)

Integrating Planning & Scheduling Subbarao Kambhampati Extending Planners G ZENO [Penberthy & Weld], IxTET [Ghallab & Laborie], HSTS/RAX [Muscettola] extend a conjunctive plan-space planner with temporal and numeric constraint reasoners G LPSAT [Wolfman & Weld] integrates a disjunctive state- space planner with an LP solver to support numeric quantities G IPPlan [Kautz & Walser; 99] constructs ILP encodings with numeric constraints G TGP [Smith & Weld; 99] supports actions with durations in Graphplan

Integrating Planning & Scheduling Subbarao Kambhampati Actions with Resources and Duration Load(P:package, R:rocket, L:location) Resources: ?h : robot hand Preconditions: Position(?h,L) [?s, ?e] Free(?h) ?s Charge(?h) > 5 ?s Effects: holding(?h, P) [?s, ?t1] depositing(?h,P,R) [?t2, ?e] Busy(?h) [?s, ?e] Free(?h) ?e Charge - =.03*(?e - ?s) ?e Constraints: ?t1 < ?t2 ?e - ?s in [1.0, 2.0] Capacity(robot) = 3 ?s?e Pos(?h,L) Hold(?h,P) dep(?h,P) [1,2] Free(?h) Busy(?h)

Integrating Planning & Scheduling Subbarao Kambhampati What planners are good for handling resources and time? G State-space approaches have an edge in terms of ease of monitoring resource usage –Time-point based representations are known to be better for multi- capacity resource constraints in scheduling G Plan-space approaches have an edge in terms of durative actions and continuous change –Notion of state not well defined in such cases (Too many states) –PCP representations are known to be better for scheduling with single-capacity resources

Integrating Planning & Scheduling Subbarao Kambhampati Extending Scheduling job-shop scheduling planning resource choices (RCSP) alternative processes process3process7 process8 Task1 Task2 Task3 Task4 Task5 Task6 Task8 Task7 Ordering choices Resource choices Process choices

Integrating Planning & Scheduling Subbarao Kambhampati Monolithic Architectures Scale Poorly G Extended planning systems are hard to control –RAX uses a very error-prone hand-coded search control strategy G Extended scheduling systems tend to lose effectiveness due to increased disjunction G Monolithic systems can sometimes show counter- intuitive behavior (by multiplying search failures)

Integrating Planning & Scheduling Subbarao Kambhampati Loosely Coupled Architectures Schedulers already routinely handle resources and metric/temporal constraints. –Let the “planner”concentrate on causal reasoning –Let the “scheduler” concentrate on resource allocation, sequencing and numeric constraints for the generated causal plan PLANNER SCHEDULER Causal Plan Schdule Need better coupling to avoid inter-module thrashing….

Integrating Planning & Scheduling Subbarao Kambhampati Making Loose Coupling Work G How can the Planner keep track of consistency? –Low level constraint propagation »Loose path consistency on TCSPs »Bounds on resource consumption, » LP relaxations of metric constraints –Pre-emptive conflict resolution The more aggressive you do this, the less need for a scheduler.. G How do the modules interact? –Failure explanations; Partial results

Integrating Planning & Scheduling Subbarao Kambhampati RealPlan--Master/Slave Planner does causal reasoning. Scheduler attempts resource allocation If scheduler fails, planner has to restart [Srivastava & Kambhampati ECP,99; AAAI, 2000]

Integrating Planning & Scheduling Subbarao Kambhampati

Integrating Planning & Scheduling Subbarao Kambhampati Performance of Master-Slave Coupling When scheduler fails, no specific guidance is given to the planner

Integrating Planning & Scheduling Subbarao Kambhampati RealPlan: Peer-to-Peer Explanation-directed backtracking between Planner and Scheduler Planner’s CSP: Variables: “goals” Values: “actions” Scheduler’s CSP: Variables: “Actions” Values: “Resources” Set of actions that cannot be scheduled Resource constraints activated by the selected actons

Integrating Planning & Scheduling Subbarao Kambhampati Inter-module Dependency Directed Backtracking Explanation Generation Explanation Translation Generation of Alternative Plan Scheduler’s Task Interface’s Task Planner’s Task Generate compact explanation of the Scheduler’s failure in allocating resources Translate the explanation into the form that make sense to the planner. Use the translated explanation to generate plan that avoid this failure. Planner’s CSP: Variables: “goals” Values: “actions” Scheduler’s CSP: Variables: “Actions” Values: “Resources” Set of actions that cannot be scheduled Resource constraints activated by the selected actons

Integrating Planning & Scheduling Subbarao Kambhampati Resource Domains: A 1, A 2, A 3 : {R 1, R 2 } A 4, A 5 : {S 1, S 2, S 3 } Resource Constraints: A 1  A 2 ; A 2  A 3 ; A 1  A 3 ; A 4  A 5 ; N 1 : {A 1 = R 1 } N 1 : {A 1 = R 1, A 2 = R 2 } N 1 : {A 1 = R 1, A 2 = R 2, A 4 = S 1 } N 1 : {A 1 = R 1, A 2 = R 2, A 4 = S 1, A 3 = R 1 }N 1 : {A 1 = R 1, A 2 = R 2, A 4 = S 1, A 3 = R 2 } A 1 = R 1 A 2 = R 2 A 4 = S 1 A 3 = R 1 A 3 = R 2 Subset of variables that can not be assigned values (reason of failure): (A 1, A 2, A 3 )

Integrating Planning & Scheduling Subbarao Kambhampati

Integrating Planning & Scheduling Subbarao Kambhampati A temporal planner supporting causal plan synthesis CSP-based Finite capacity resource scheduler Mixed Integer/Linear programming module for metric constraints Mission Profile Executor interface Plans with annotated waypoints Execution status Replanning requests Mission modifications Plan criticism Evolving specs Next-Generation Realplan

Integrating Planning & Scheduling Subbarao Kambhampati Summary & Conclusion G Motivated the need for integrating Planning and Scheduling G Discussed the state of the art in Planning and Scheduling G Discussed approaches for Integrating them –Loosely coupled architectures are a promising approach