Temporal Planning, Scheduling and Execution

Slides:



Advertisements
Similar presentations
Algorithm Design Methods (I) Fall 2003 CSE, POSTECH.
Advertisements

Foundations of Constraint Processing Temporal Constraints Networks 1Topic Foundations of Constraint Processing CSCE421/821, Spring
ECE 667 Synthesis and Verification of Digital Circuits
Constraint Propagation Algorithms for Temporal Reasoning Marc Vilain, Henry Kautz (AAAI 1986) Presentation by Lin XU March 4, 2002.
Motion Planning for Point Robots CS 659 Kris Hauser.
IKI 10100: Data Structures & Algorithms Ruli Manurung (acknowledgments to Denny & Ade Azurat) 1 Fasilkom UI Ruli Manurung (Fasilkom UI)IKI10100: Lecture10.
Advanced Algorithm Design and Analysis (Lecture 7) SW5 fall 2004 Simonas Šaltenis E1-215b
Breadth-First Search Seminar – Networking Algorithms CS and EE Dept. Lulea University of Technology 27 Jan Mohammad Reza Akhavan.
Discussion #34 1/17 Discussion #34 Warshall’s and Floyd’s Algorithms.
Maintenance Routing Gábor Maróti CWI, Amsterdam and NS Reizigers, Utrecht Models for Maintenance Routing 2nd AMORE Seminar, Partas, 30.
10/27 Exam post-mortem Phased-relaxation approach Order generalization (Partialization) Temporal Networks.
4/15: LPG contd. And Temp. constraint networks. --~30 min of LPG discussion --Temporal constraint networks --Next class: Read Scheduling paper --Next Week:
Jean-Charles REGIN Michel RUEHER ILOG Sophia Antipolis Université de Nice – Sophia Antipolis A global constraint combining.
1.A finer version of PPC. 2.Cheaper than PPC and F-W. 3.Guarantees the minimal network. 4.Automatically decomposes the graph into its bi-connected components:
Chao Chen Wednesday, February 26, Temporal Constraint Networks Chapter 12 Chao Chen CSCE Advanced Constraint Processing.
CS541 Advanced Networking 1 Routing and Shortest Path Algorithms Neil Tang 2/18/2009.
CS 326A: Motion Planning Basic Motion Planning for a Point Robot.
Advanced Constraint Processing, Fall 2009 Temporal Constraints Networks 4/23/20091Topic Advanced Constraint Processing CSCE , Fall 2009:
Optimizing Compilers for Modern Architectures Dependence: Theory and Practice Allen and Kennedy, Chapter 2 pp
Iterative Flattening in Cumulative Scheduling. Cumulative Scheduling Problem Set of Jobs Each job consists of a sequence of activities Each activity has.
The greedy method Suppose that a problem can be solved by a sequence of decisions. The greedy method has that each decision is locally optimal. These.
Graph (II) Shortest path, Minimum spanning tree GGuy
Homework 1 ( Written Portion )  Max : 75  Min : 38  Avg : 57.6  Median : 58 (77%)
CSCE350 Algorithms and Data Structure Lecture 17 Jianjun Hu Department of Computer Science and Engineering University of South Carolina
Path Planning for a Point Robot
Advanced Constraint Processing, Spring 2013 Temporal Constraints Networks 1/9/20131Temporal Reasoning Advanced Constraint Processing CSCE 921, Spring 2013:
Improved Human-Robot Team performance using Chaski Proceeding: HRI '11HRI '11 Proceedings of the 6th international conference on Human-robot interaction.
Ch.6 Phylogenetic Trees 2 Contents Phylogenetic Trees Character State Matrix Perfect Phylogeny Binary Character States Two Characters Distance Matrix.
Temporal Constraint Management in Artificial Intelligence - Introduction: time & temporal constraints - The problem - Survey of AI approaches to temporal.
Easiest-to-Reach Neighbor Search Fatimah Aldubaisi.
The all-pairs shortest path problem (APSP) input: a directed graph G = (V, E) with edge weights goal: find a minimum weight (shortest) path between every.
1 SYNTHESIS of PIPELINED SYSTEMS for the CONTEMPORANEOUS EXECUTION of PERIODIC and APERIODIC TASKS with HARD REAL-TIME CONSTRAINTS Paolo Palazzari Luca.
Constraint Satisfaction Basics strongly influenced by Dr. Rina Dechter: “Constraint Processing”
Pipelining and Retiming
A * Search A* (pronounced "A star") is a best first, graph search algorithm that finds the least-cost path from a given initial node to one goal node out.
Graph Theory. undirected graph node: a, b, c, d, e, f edge: (a, b), (a, c), (b, c), (b, e), (c, d), (c, f), (d, e), (d, f), (e, f) subgraph.
A Structural Characterization of Temporal Dynamic Controllability Paul Morris NASA Ames Research Center Moffett Field, CA 94035, U.S.A.
All Pairs Shortest Path Algorithms Aditya Sehgal Amlan Bhattacharya.
Scheduling Overview Conjunctive Graph; Potentials, properties and existence conditions; Methods for scheduling; Potential task method Pert method;
Scheduling with Constraint Programming
Shortest Paths.
Temporal Plan Execution: Dynamic Scheduling and Simple Temporal Networks Brian C. Williams J/6.834J December 2nd,
Cycle Canceling Algorithm
Project Management: PERT/CPM
Introduction to Spatial Computing CSE 5ISC
Activity networks – Example 1
Spatio-temporal Relational Constraint Calculi
Consistency Methods for Temporal Reasoning
Temporal Planning: Part 2
Courtsey & Copyright: DESIGN AND ANALYSIS OF ALGORITHMS Courtsey & Copyright:
Algorithm Analysis Fall 2017 CS 4306/03
Design and Analysis of Algorithm
Dealing with Changes of Time-Aware Processes
CS223 Advanced Data Structures and Algorithms
Single-Source All-Destinations Shortest Paths With Negative Costs
SE Tasks for a Concept Development Project
Lecture 7 All-Pairs Shortest Paths
Shortest paths & Weighted graphs
Single-Source All-Destinations Shortest Paths With Negative Costs
Planning for Human-Robot Collaboration
Section 2: Multiple choice
Floyd-Warshall Algorithm
Inequalities and their Graphs
All pairs shortest path problem
Algorithms (2IL15) – Lecture 7
Presented by-Kapil Kumar Cse-iii rd year
Lecture 19 Linear Program
All Pairs Shortest Path Examples While the illustrations which follow only show solutions from vertex A (or 1) for simplicity, students should note that.
Chapter 9 Graph algorithms
COSC 3101A - Design and Analysis of Algorithms 12
Presentation transcript:

Temporal Planning, Scheduling and Execution Brian C. Williams 16.412J/6.834J November 25th, 2002 1

Cassini Saturn Orbital Insertion courtesy JPL

Programming& Execution Histories(?) Goals Projective Task Expansion Temporal Planner Scheduler Flexible Sequence (Plans) Task Dispatch Plan Runner Goals Modes Model-based Programming& Execution Task-Decomposition Execution Reactive Task Expansion Observations Commands

Outline Temporal Planning Representing Time Temporal Consistency and Scheduling Execution with Dynamic Scheduling

Flexible Sequence (Plans) Histories(?) Goals Projective Task Expansion Temporal Planner Scheduler Flexible Sequence (Plans) Task Dispatch Plan Runner Goals Modes Model-based Execution (w planner) Task-Decomposition Execution Reactive Task Expansion Observations Commands

Flexible Sequence (Plans) Histories(?) Goals Projective Task Expansion Temporal Planner Scheduler Flexible Sequence (Plans) Task Dispatch Plan Runner Goals Modes Model-based Execution (w planner) Task-Decomposition Execution Reactive Task Expansion Observations Commands

Outline Temporal Planning Representing Time Temporal Consistency and Scheduling Execution with Dynamic Scheduling

Qualitative Temporal Constraints (Allen 83) x before y x meets y x overlaps y x during y x starts y x finishes y x equals y y after x y met-by x y overlapped-by x y contains x y started-by x y finished-by x y equals x X Y X Y X Y Y X X Y Y X Y X

Deep Space One Example: Temporal Constraints Timer Idle Max_Thrust Idle Th_Seg contained_by equals meets Start_Up Shut_Down Thr_Boundary Thrust Standby Th_Sega Idle_Seg Accum_NO_Thr Accum_Thr CP(Ips_Tvc) SEP_Segment Accum SEP Action Attitude Poke

Qualitative Temporal Constraints maybe Expressed as Inequalities (Vilain, Kautz 86) x before y X+ < Y- x meets y X+ = Y- x overlaps y (Y- < X+) & (X- < Y+) x during y (Y- < X-) & (X+ < Y+) x starts y (X- = Y-) & (X+ < Y+) x finishes y (X- < Y-) & (X+ = Y+) x equals y (X- = Y-) & (X+ = Y+)

Metric Time: Quantitative Temporal Constraint Networks (Dechter, Meiri, Pearl 91) A set of time points Xi at which events occur. Unary constraints (a0 < Xi < b0 ) or (a1 < Xi < b1 ) or . . . Binary constraints (a0 < Xj - Xi < b0 ) or (a1 < Xj - Xi < b1 ) or . . .

Visualize TCSP as Directed Constraint Graph 1 3 4 2 [10,20] [30,40] [60,inf] [20,30] [40,50] [60,70]

Simple Temporal Networks (Dechter, Meiri, Pearl 91) A set of time points Xi at which events occur. Unary constraints (a0 < Xi < b0 ) or (a1 < Xi < b1 ) or . . . Binary constraints (a0 < Xj - Xi < b0 ) or (a1 < Xj - Xi < b1 ) or . . . Sufficient to represent: most Allen relations simple metric constraints Can’t represent: Disjoint tokens

Simple Temporal Network Tij = (aij£ Xi - Xj £ bij) 1 3 4 2 [10,20] [30,40] [60,inf] [20,30] [40,50] [60,70]

A Completed Plan Forms an STN       

TCSP Queries (Dechter, Meiri, Pearl, AIJ91) Is the TCSP consistent? What are the feasible times for each Xi? What are the feasible durations between each Xi and Xj? What is a consistent set of times? What are the earliest possible times? What are the latest possible times?

TCSP Queries (Dechter, Meiri, Pearl, AIJ91) Is the TCSP consistent? Planning What are the feasible times for each Xi? What are the feasible durations between each Xi and Xj? What is a consistent set of times? What are the earliest possible times? Execution What are the latest possible times?

Outline Temporal Planning Representing Time Temporal Consistency and Scheduling Execution with Dynamic Scheduling

To Query STN Map to Distance Graph Gd = < V,Ed > Edge encodes an upper bound on distance to target from source. Xj - Xi £ bij Xi - Xj £ - aij Tij = (aij£ Xj - Xi £ bij) 1 3 4 2 [10,20] [30,40] [40,50] [60,70] 70 1 3 4 2 20 50 -10 40 -30 -40 -60

Induced Constraints for Gd Path constraint: i0 =i, i1 = . . ., ik = j Intersected path constraints: where dij is the shortest path from i to j

Compute Intersected Paths by All Pairs Shortest Path (e. g Compute Intersected Paths by All Pairs Shortest Path (e.g., Floyd-Warshall’s algorithm ) 1. for i := 1 to n do dii 0; 2. for i, j := 1 to n do dij aij; 3. for k := 1 to n do 4. for i, j := 1 to n do 5. dij min{dij, dik + dkj}; k i j

Shortest Paths of Gd 70 1 2 4 3 20 50 -10 40 -30 -40 -60 d-graph

STN Minimum Network d-graph STN minimum network

Test Consistency: No Negative Cycles 70 1 2 4 3 20 50 -10 40 -30 -40 -60 d-graph

Latest Solution 20 40 1 2 -10 -30 -10 20 50 3 4 -40 -60 70 d-graph Node 0 is the reference. 20 40 1 2 -10 -30 -10 20 50 3 4 -40 -60 70 d-graph

Earliest Solution 20 40 1 2 -10 -30 -10 20 50 3 4 -40 -60 70 d-graph Node 0 is the reference. 20 40 1 2 -10 -30 -10 20 50 3 4 -40 -60 70 d-graph

Feasible Values X1 in [10, 20] X2 in [40, 50] X3 in [20, 30] d-graph

Solution by Decomposition Select value for 1 15 [10,20] d-graph

Solution by Decomposition Select value for 1 15 Select value for 2, consistent with 1 45 [40,50], 15+[30,40] d-graph

Solution by Decomposition Select value for 1 15 Select value for 2, consistent with 1 45 Select value for 3, consistent with 1 & 2 30 [20,30], 15+[10,20],45+[-20,-10] d-graph

Solution by Decomposition Select value for 1 15 Select value for 2, consistent with 1 45 Select value for 3, consistent with 1 & 2 30 d-graph Select value for 4, consistent with 1,2 & 3 O(N2)

Outline Temporal Planning Representing Time Temporal Consistency and Scheduling Execution with Dynamic Scheduling