1 Outline:  Optimization of Timed Systems  TA-Modeling of Scheduling Tasks  Transformation of TA into Mixed-Integer Programs  Tree Search for TA using.

Slides:



Advertisements
Similar presentations
Linear Programming Problem
Advertisements

Hybrid Systems Presented by: Arnab De Anand S. An Intuitive Introduction to Hybrid Systems Discrete program with an analog environment. What does it mean?
Timed Automata.
Lecture 10: Integer Programming & Branch-and-Bound
Progress in Linear Programming Based Branch-and-Bound Algorithms
CIS 540 Principles of Embedded Computation Spring Instructor: Rajeev Alur
1 Logic-Based Methods for Global Optimization J. N. Hooker Carnegie Mellon University, USA November 2003.
Integer Programming and Branch and Bound Brian C. Williams November 15 th, 17 th, 2004 Adapted from slides by Eric Feron, , 2002.
1 Optimisation Although Constraint Logic Programming is somehow focussed in constraint satisfaction (closer to a “logical” view), constraint optimisation.
Revisiting the Optimal Scheduling Problem Sastry Kompella 1, Jeffrey E. Wieselthier 2, Anthony Ephremides 3 1 Information Technology Division, Naval Research.
Scheduling Using Timed Automata Borzoo Bonakdarpour Wednesday, April 13, 2005 Selected Topics in Algorithms and Complexity (CSE960)
Job Scheduling Lecture 19: March 19. Job Scheduling: Unrelated Multiple Machines There are n jobs, each job has: a processing time p(i,j) (the time to.
1 Contents college 3 en 4 Book: Appendix A.1, A.3, A.4, §3.4, §3.5, §4.1, §4.2, §4.4, §4.6 (not: §3.6 - §3.8, §4.2 - §4.3) Extra literature on resource.
1 Combinatorial Problems in Cooperative Control: Complexity and Scalability Carla Gomes and Bart Selman Cornell University Muri Meeting March 2002.
LP formulation of Economic Dispatch
Daniel Kroening and Ofer Strichman Decision Procedures An Algorithmic Point of View Deciding ILPs with Branch & Bound ILP References: ‘Integer Programming’
Metaheuristics Meta- Greek word for upper level methods
Operations Research Models
Decision Procedures An Algorithmic Point of View
1 Outline:  Outline of the algorithm  MILP formulation  Experimental Results  Conclusions and Remarks Advances in solving scheduling problems with.
Transformation of Timed Automata into Mixed Integer Linear Programs Sebastian Panek.
MILP Approach to the Axxom Case Study Sebastian Panek.
Introduction to Job Shop Scheduling Problem Qianjun Xu Oct. 30, 2001.
Operations Research Assistant Professor Dr. Sana’a Wafa Al-Sayegh 2 nd Semester ITGD4207 University of Palestine.
Types of IP Models All-integer linear programs Mixed integer linear programs (MILP) Binary integer linear programs, mixed or all integer: some or all of.
Integer Programming Key characteristic of an Integer Program (IP) or Mixed Integer Linear Program (MILP): One or more of the decision variable must be.
AMETIST Review Meeting June 2003 Deliverable Axxom Case Study: Scheduling of Lacquer Production Contributors: Axxom Dortmund Twente Verimag.
MILP algorithms: branch-and-bound and branch-and-cut
To accompany Quantitative Analysis for Management, 8e by Render/Stair/Hanna 11-1 © 2003 by Prentice Hall, Inc. Upper Saddle River, NJ Chapter 11.
1 Short Term Scheduling. 2  Planning horizon is short  Multiple unique jobs (tasks) with varying processing times and due dates  Multiple unique jobs.
A Graph Search Algorithm for Optimal Control of Hybrid Systems Olaf Stursberg University of Dortmund Germany Work financially supported by the European.
Advanced Algorithm Design and Analysis (Lecture 14) SW5 fall 2004 Simonas Šaltenis E1-215b
Branch-and-Cut Valid inequality: an inequality satisfied by all feasible solutions Cut: a valid inequality that is not part of the current formulation.
Chapter 2) CSP solving-An overview Overview of CSP solving techniques: problem reduction, search and solution synthesis Analyses of the characteristics.
Scheduling Lacquer Productions with Uppaal AXXOM case study of the Ametist project Angelika Mader Distributed and Embedded Systems Group, University of.
Integer LP In-class Prob
Linear Programming Short-run decision making model –Optimizing technique –Purely mathematical Product prices and input prices fixed Multi-product production.
IE 312 Review 1. The Process 2 Problem Model Conclusions Problem Formulation Analysis.
Review for E&CE Find the minimal cost spanning tree for the graph below (where Values on edges represent the costs). 3 Ans. 18.
Constraint Programming for the Diameter Constrained Minimum Spanning Tree Problem Thiago F. Noronha Celso C. Ribeiro Andréa C. Santos.
1 Chapter 6 Reformulation-Linearization Technique and Applications.
1 Chapter 5 Branch-and-bound Framework and Its Applications.
Biointelligence Lab School of Computer Sci. & Eng. Seoul National University Artificial Intelligence Chapter 8 Uninformed Search.
Water resources planning and management by use of generalized Benders decomposition method to solve large-scale MINLP problems By Prof. André A. Keller.
Discrete Optimization MA2827 Fondements de l’optimisation discrète Material from P. Van Hentenryck’s course.
MIT and James Orlin © The Geometry of Linear Programs –the geometry of LPs illustrated on GTC.
Scheduling with Constraint Programming
Review: Discrete Mathematics and Its Applications
Lecture 7: Constrained Conditional Models
Decision Support Systems
Aircraft Landing Problem
Dynamic Pickup and Delivery with Transfers
An Introduction to Linear Programming Pertemuan 4
The minimum cost flow problem
Role and Potential of TAs for Industrial Scheduling Problems
Instructor: Rajeev Alur
Lecture 11: Tree Search © J. Christopher Beck 2008.
On Using Linearly Priced Timed Automata for Flow Analysis
Timed Automata Formal Systems Pallab Dasgupta Professor,
Chapter 6. Large Scale Optimization
Integer Programming (정수계획법)
Instructors: Fei Fang (This Lecture) and Dave Touretzky
Review: Discrete Mathematics and Its Applications
Integer Programming (정수계획법)
Linear Programming Problem
Graphical solution A Graphical Solution Procedure (LPs with 2 decision variables can be solved/viewed this way.) 1. Plot each constraint as an equation.
Major Design Strategies
Major Design Strategies
Chapter 6. Large Scale Optimization
Discrete Optimization
Presentation transcript:

1 Outline:  Optimization of Timed Systems  TA-Modeling of Scheduling Tasks  Transformation of TA into Mixed-Integer Programs  Tree Search for TA using Branch&Bound Principles  Simple Scheduling Example Optimization of Timed Automata by Branch&Bound Techniques Sebastian Panek, Sebastian Engell and Olaf Stursberg Process Control Lab, University of Dortmund

2 Motivation Optimization of Timed Systems:  determine a sequence of steps that minimizes a given cost criterion,  fix the points of time at which the steps are started and/or terminated. Cost criterion:  maximize number of steps in a given time horizon, or  minimize the overall time required to perform a given number of steps.

3 “Standard” Approaches  Timed Automata (TA) based:  Tree encodes possible evolutions  Search for the cost-optimal path (Reachability analysis + cost evaluation)  Mixed-Integer Programming (MIP):  Algebraic (in-)equalities for continuous and discrete variables  Solution by mathematical programming (or: constraint progr., evolutionary algorithms, …) Objective: combine both approaches

4 Modeling with Linearly Priced TA:  set of locations:  set C of clocks and their valuations:  transitions (with guards, actions and resets):  synchronization via labels:  costs for locations and transitions Shortest path computation:  summation of costs along paths: c  search for cost-minimal path into states that satisfy a logic property Properties: + simple modeling (modularity + synchronisation) + “natural” encoding of sequential behavior  no guess for the cost-to-go (as additional criterion for pruning branches) TA-based Approach

5 MIP-based Approach Formulation:  mathematical program with linear (in-)equalities and objective function Most common solution:  state space enumeration with Branch-and-Bound (B&B): B&B tree: nodes represent discrete decisions computation of lower and upper cost bounds: relaxing discrete variables to continuous ones, solution of sub-problems by linear progr. (LP) feasible set reduction by comparing bounds Properties: + guess for the cost-to-go usable for pruning (and as heuristics for branch selection)  problem formulation can be intriguing (large number of variables and inequalities)  encoding of sequential behavior requires binary auxiliary variables (  tree size!)

6 Problem statement: set of operations Set of machines (resources): Machine assignment: Jobs: total order on subsets of operations Constraints: job orders, operation durations, exclusive resource allocation, timing constraints Objective: search for the valid schedule with minimal operating costs, operation times, or resource usage. Example: 2 jobs, 2 exclusive machines, 4 operations Job m1 m2 Job m1 m2 Job-Shop Scheduling

7 Jobs modeled as automata: Resources modeled as separate automata with synchronized transitions (via labels ): [equivalently for Job 2 and Resource 2] abced Job 1 yx Resource 1 Scheduling Problem modeled by TA

8 Procedure: Modeling as LPTA Main part: model transformation TA2MILP solution using an MILP solver Problem specification LPTA modelMILP model MILP solver TA2MILP Method 1: TA-Modeling + MILP-Solution

9 Procedure to create MILP models from LPTA models: Linearly priced timed automata with costs on locations and transitions Compositionality is preserved in the MILP model Polyhedral guards on transitions and invariants on locations Synchronization through sync labels on transitions No shared variables at the present Planned: start from graphic model TA2MILP: Overview

10 Binary variables dt for transitions, 0-1 variables dl for locations, time index k Transition dynamics: l1 l4 l3 l2 t1t2 t3 t4 TA2MILP: Locations and Transitions

11 Description as logical propositions (disjunctive formulation) Vectors of real variables for clocks (when entering locations) (when leaving locations) Time delay in locations: l1 l4 l3 l2 t1t2 t3 t4 G1 G2 Inv1 TA2MILP: Clocks, Invariants, and Guards

12 Introduce vectors, the entries of which are 0 if resets occur and 1 otherwise. l1 l4 l3 l2 t1t2 t3 t4 G1 G2 Inv1 r2 r4 r1 r3 TA2MILP: Clock Resets

13 For the synchronization of two LPTA: introduce additional clocks z, w that measure absolute time l1 l4 l3 l2 t1t2 t3 t4 G1 G2 Inv1 r2 r4 r1 r3 l5l6 t5 S S zkzk wjwj TA2MILP: Composition and Synchronization

14 Example: 2 jobs, 2 machines, 4 operations, minimize makespan TA model as described above MILP model formulation yields: 2450 equations 843 real decision variables 60 binary decision variables Implementation with the GAMS mathematical modeling language Solution using the GAMS/CPLEX package Job m1 m2 Job m1 m2 Application to the Example

15 Computation of the optimal schedule took 0.6 seconds on a 2.4 GHz machine 3 out of 8 possible schedules Optimal S 1 Suboptimal S 2 Worst S 3 Alternative: construct MILP model from composed automata (not discussed here) 2 5 m1 m m1 m m1 m Results for Method 1

16 Problem specification LPTA modelMILP model LP model Shortest Path Algo TA2MILP Relaxation LP Fix variables for the current state Lower bound Search graph LP solver calls B&B cuts = cost-to-go optimal solution Method 2: Shortest Path Search + B&B

17 Solution Algorithm (Best lower bound search)

18 costs lower bound termination after 14 nodes Example: Reachability Graph

19 Shortest path computation (Dijkstra): Takes nodes with lowest costs from Waiting requires 29 nodes to find the optimum Our best-lower-bound algorithm: Takes nodes with lowest lower bound from Waiting needs 14 nodes to find the optimum Termination after comparison of upper bound (9) of node 14 and all lower bounds (exactly the same way like B&B) (Alternatives: breadth-first and depth-first search) Results for Method 2

20 Computing cost minimal paths for LPTA models Reducing the state space using B&B techniques (lower bounds and branch cuts) Other reduction techniques from both domains can still be applied Application domain: not restricted to scheduling Current work: implementation of the algorithm. Next steps: Using the implementation, investigate these points: How much can the state space be reduced using B&B techniques in the domain of TA? Performance comparison between MILP, TA, and combined approaches. Application to the Axxom case study. Conclusions and Outlook