470 likes | 621 Views
Gerd Behrman , Ed Brinksma, Ansgar Fehnker , Tho ma s Hune , Kim Lars en , Paul Pet tersson , Judi Romijn , Frits Vaandrager. CUPPAAL Efficient Minimum-Cost Reachability for Linearly Priced Timed Automata. Overview . Introduction Linear Priced Timed Automata Priced Zones and Facets
E N D
Gerd Behrman,Ed Brinksma, Ansgar Fehnker,Thomas Hune, Kim Larsen, PaulPettersson, Judi Romijn, Frits Vaandrager CUPPAALEfficient Minimum-Cost Reachabilityfor Linearly Priced Timed Automata
Overview • Introduction • Linear Priced Timed Automata • Priced Zones and Facets • Operations on Priced Zones • Algorithm • First Experimental Findings • Conclusion
INTRODUCTION Observation Many scheduling problems can be phrased naturally as reachability problems for timed automata!
INTRODUCTION UNSAFE SAFE Mines 5 10 25 20 At most 2 crossing at a time Need torch Can they make it within 60 minutes ? Observation Many scheduling problems can be phrased naturally as reachability problems for timed automata!
INTRODUCTION UNSAFE SAFE Mines 5 10 25 20 Observation Many scheduling problems can be phrased naturally as reachability problems for timed automata!
INTRODUCTION Steel Production Plant Crane A • A. Fehnker, T. Hune, K. G. Larsen, P. Pettersson • Case study of Esprit-LTRproject 26270 VHS • Physical plant of SIDMARlocated in Gent, Belgium. • Part between blast furnace and hot rolling mill. Objective:model the plant, obtain schedule and control program for plant. Machine 2 Machine 3 Machine 1 Lane 1 Machine 4 Machine 5 Lane 2 Buffer Crane B Storage Place Continuos Casting Machine
INTRODUCTION hbrine water water mbrine salt store cooling water heat water water heater hbrine cooling water pump pump Batch Processing Plant (VHS)
INTRODUCTION Earlier work • Asarin & Maler (1999)Time optimal control using backwards fixed point computation • VHS consortium (1999)Steel plant and chemical batch plant case studies • Niebert, Tripakis & Yovine (2000)Minimum-time reachability using forward reachability • Behrmann, Fehnker et all (2000)Minimum-time reachability using branch-and-bound
INTRODUCTION • Advantages • Easy and flexible modeling of systems • whole range of verification techniques becomes available • Controller/Program synthesis • Disadvantages • Existing scheduling approaches perform somewhat better • Our goal • See how far we get; • Integrate model checking and scheduling theory.
INTRODUCTION More general cost function • In scheduling theory one is not just interested in shortest schedules; also other cost functions are considered • This leads us to introduce a model of linear priced timed automata which adds prices to locations and transitions • The price of a transition gives the cost of taking it, and the price of a location specifies the cost per time unit of staying there.
PRICED AUTOMATA Example
PRICED AUTOMATA EXAMPLE: Optimal rescue plan for important persons (Presidents and Actors) UNSAFE GORE CLINTON SAFE Mines 9 2 5 10 25 20 BUSH DIAZ 3 10 OPTIMAL PLAN HAS ACCUMULATED COST=195 and TOTAL TIME=65!
PRICED AUTOMATA Definition
PRICED AUTOMATA Definition
PRICED AUTOMATA Example of execution
PRICED AUTOMATA Cost • The cost of a finite execution is the sum of the prices of all the transitions occuring in it • The minimal cost of a location is the infimum of the costs of the finite executions ending in the location • The minimum-cost problem for LPTAs is the problem to compute the minimal cost of a given location of a given LPTA • In the example below, mincost(C ) = 7 ? DECIDABILITY ?
PRICED ZONES Zones Operations
PRICED ZONES Canonical Datastructure for ZonesDifference Bounded Matrices Bellman’58, Dill’89 -4 -4 x1-x2<=4 x2-x1<=10 x3-x1<=2 x2-x3<=2 x0-x1<=3 x3-x0<=5 Shortest Path Closure O(n^3) x1 x2 x1 x2 4 10 3 3 2 3 2 -2 -2 2 2 x0 x3 x0 x3 1 5 5
PRICED ZONES New Canonical Datastructure Minimal collection of constraints RTSS 1997 -4 -4 x1-x2<=4 x2-x1<=10 x3-x1<=2 x2-x3<=2 x0-x1<=3 x3-x0<=5 Shortest Path Closure O(n^3) x1 x2 x1 x2 4 10 3 3 2 3 2 -2 -2 2 2 x0 x3 x0 x3 1 5 5 -4 Shortest Path Reduction O(n^3) x1 x2 Space worst O(n^2) practice O(n) 3 3 2 2 x0 x3
PRICED ZONES Priced Zone y Z 2 -1 4 x
PRICED ZONES Reset Z y 2 -1 4 x
PRICED ZONES Reset Z y 2 -1 4 x {y}Z
PRICED ZONES Reset Z y 2 -1 4 x 4 {y}Z
PRICED ZONES Reset Z y 2 -1 4 -1 1 x 4 2 {y}Z 4 A split of {y}Z
PRICED ZONES FacetsThe solution
PRICED ZONES Delay y Z 3 -1 4 x
PRICED ZONES Delay Delay in a location with cost-rate 3 3 y Z 2 3 -1 4 x
PRICED ZONES Delay 4 -1 y 0 Z A split of 3 3 -1 4 x
PRICED ZONES FacetsThe solution
PRICED ZONES Optimal Forward ReachabilityExample 8 6 10 4 10 2 0 0 10 10 10 2 4 6 8 10 10 10 1 1 1 1 1 8 6 4 2 8 10 10 6 4 2 10 10
ALGORITHM Branch & Bound Algorithm
EXPERIMENTS EXAMPLE: Optimal rescue plan for important persons (Presidents and Actors) UNSAFE GORE CLINTON SAFE Mines 9 2 5 10 25 20 BUSH DIAZ 3 10 OPTIMAL PLAN HAS ACCUMULATED COST=195 and TOTAL TIME=65!
EXPERIMENTS Experiments MC Order
EXPERIMENTS Optimal Broadcast Router2 Router1 k=1 k=0 costA1, costB1 costA2, costB2 B 3 sec Basecost 5 sec A costA4, costB4 costA3, costB3 k=0 k=0 costB1 costA1 Router4 Router3 Given particular subscriptions, what is the cheapest schedule for broadcasting k?
EXPERIMENTS Experimental Results
EXPERIMENTS Scaling Up ? • # Schedules • 4 routers: 120 • 5 routers: 83.712 • 6 routers: ?????????? • Finding Feasible Schedule using UPPAAL (6 routers) • 16.490 expl. symb. st. (with Active Clock Reduction) • Minimum Time Schedule (6 routers) • 96.417 using Minimum Time Reachability (Ansgar) • 106.628 using Minimum Cost Reachability (BC=1, all other cost=0) time optimal schedule takes 12 seconds.
Current & Future Work • IMPLEMENTATION – thorough analysis • Applications – (Gossing Girls, Production Plant) • Generalization • Minimum Cost Reachability under timing constraints avoiding certain states • Minimum Time Reachability under cost constraints • Maximum Cost between two types of states • Relationships to Reward Models • Parameterized Extension • Extensions to Optimal Controllability