Delay-Aware Period Assignment in Control Systems Anton CervinLund University Sweden Enrico BiniScuola Superiore Sant’Anna, Pisa, Italy Real-Time Systems.

Slides:



Advertisements
Similar presentations
Fakultät für informatik informatik 12 technische universität dortmund Classical scheduling algorithms for periodic systems Peter Marwedel TU Dortmund,
Advertisements

Simulation of Feedback Scheduling Dan Henriksson, Anton Cervin and Karl-Erik Årzén Department of Automatic Control.
Hadi Goudarzi and Massoud Pedram
Fast Algorithms For Hierarchical Range Histogram Constructions
THE UNIVERSITY of TEHRAN Mitra Nasri Sanjoy Baruah Gerhard Fohler Mehdi Kargahi October 2014.
The Impact of Channel Estimation Errors on Space-Time Block Codes Presentation for Virginia Tech Symposium on Wireless Personal Communications M. C. Valenti.
P. Venkataraman Mechanical Engineering P. Venkataraman Rochester Institute of Technology DETC2014 – 35148: Continuous Solution for Boundary Value Problems.
RUN: Optimal Multiprocessor Real-Time Scheduling via Reduction to Uniprocessor Paul Regnier † George Lima † Ernesto Massa † Greg Levin ‡ Scott Brandt ‡
1 Deferrable Scheduling for Temporal Consistency: Schedulability Analysis and Overhead Reduction Ming Xiong : Lucent Bell Labs Song Han: City University.
Towards optimal priority assignments for real-time tasks with probabilistic arrivals and probabilistic execution times Dorin MAXIM INRIA Nancy Grand Est.
Random Walks and BLAST Marek Kimmel (Statistics, Rice)
Asymptotic error expansion Example 1: Numerical differentiation –Truncation error via Taylor expansion.
Image Segmentation and Active Contour
Visual Recognition Tutorial
Towards Feasibility Region Calculus: An End-to-end Schedulability Analysis of Real- Time Multistage Execution William Hawkins and Tarek Abdelzaher Presented.
280 SYSTEM IDENTIFICATION The System Identification Problem is to estimate a model of a system based on input-output data. Basic Configuration continuous.
SIGMETRICS 2008: Introduction to Control Theory. Abdelzaher, Diao, Hellerstein, Lu, and Zhu. CPU Utilization Control in Distributed Real-Time Systems Chenyang.
19 April 2013Lecture 3: Interval Newton Method1 Interval Newton Method Jorge Cruz DI/FCT/UNL April 2013.
Lecture 5: Learning models using EM
SYSTEMS Identification
EE 685 presentation Optimization Flow Control, I: Basic Algorithm and Convergence By Steven Low and David Lapsley Asynchronous Distributed Algorithm Proof.
Fakultät für informatik informatik 12 technische universität dortmund Classical scheduling algorithms for periodic systems Peter Marwedel TU Dortmund,
Planning operation start times for the manufacture of capital products with uncertain processing times and resource constraints D.P. Song, Dr. C.Hicks.
1 Efficiency of Algorithms. 2  Two main issues related to the efficiency of algorithms:  Speed of algorithm  Efficient memory allocation  We will.
Spring 2002Real-Time Systems (Shin) Rate Monotonic Analysis Assumptions – A1. No nonpreemptible parts in a task, and negligible preemption cost –
University of Colorado Boulder ASEN 5070: Statistical Orbit Determination I Fall 2014 Professor Brandon A. Jones Lecture 7: Linearization and the State.
Embedded System Design Framework for Minimizing Code Size and Guaranteeing Real-Time Requirements Insik Shin, Insup Lee, & Sang Lyul Min CIS, Penn, USACSE,
PETE 603 Lecture Session #29 Thursday, 7/29/ Iterative Solution Methods Older methods, such as PSOR, and LSOR require user supplied iteration.
Chapter 4 – Periodic Task Scheduling In many real-time systems periodic tasks dominate the demand. Three classic periodic task scheduling algorithms: –
Technische Universität Dortmund Classical scheduling algorithms for periodic systems Peter Marwedel TU Dortmund, Informatik 12 Germany 2007/12/14.
Normalised Least Mean-Square Adaptive Filtering
End-to-End Delay Analysis for Fixed Priority Scheduling in WirelessHART Networks Abusayeed Saifullah, You Xu, Chenyang Lu, Yixin Chen.
First Order Linear Equations Integrating Factors.
New Schedulability Tests for Real- Time task sets scheduled by Deadline Monotonic on Multiprocessors Marko Bertogna, Michele Cirinei, Giuseppe Lipari Scuola.
Machine Learning CUNY Graduate Center Lecture 3: Linear Regression.
Embedded System Design Framework for Minimizing Code Size and Guaranteeing Real-Time Requirements Insik Shin, Insup Lee, & Sang Lyul Min CIS, Penn, USACSE,
Chapter 2.6 Comparison of Algorithms modified from Clifford A. Shaffer and George Bebis.
Week 2 CS 361: Advanced Data Structures and Algorithms
Geo479/579: Geostatistics Ch12. Ordinary Kriging (1)
Two schemes for feedback scheduling on hybrid control systems Chen Xi.
Trust-Aware Optimal Crowdsourcing With Budget Constraint Xiangyang Liu 1, He He 2, and John S. Baras 1 1 Institute for Systems Research and Department.
Computer Science and Engineering Parallel and Distributed Processing CSE 8380 March 01, 2005 Session 14.
ECE 8443 – Pattern Recognition ECE 8423 – Adaptive Signal Processing Objectives: Deterministic vs. Random Maximum A Posteriori Maximum Likelihood Minimum.
1 Reducing Queue Lock Pessimism in Multiprocessor Schedulability Analysis Yang Chang, Robert Davis and Andy Wellings Real-time Systems Research Group University.
Scheduling policies for real- time embedded systems.
Integrated Scheduling and Synthesis of Control Applications on Distributed Embedded Systems Soheil Samii 1, Anton Cervin 2, Petru Eles 1, Zebo Peng 1 1.
Experiences with Enumeration of Integer Projections of Parametric Polytopes Sven Verdoolaege, Kristof Beyls, Maurice Bruynooghe, Francky Catthoor Compiler.
S.A.T. Math Testing Tactics Tactic 10: Don’t Do More Than You Have To.
Efficient computation of Robust Low-Rank Matrix Approximations in the Presence of Missing Data using the L 1 Norm Anders Eriksson and Anton van den Hengel.
ORSIS Conference, Jerusalem Mountains, Israel May 13, 2007 Yoni Nazarathy Gideon Weiss University of Haifa Yoni Nazarathy Gideon Weiss University of Haifa.
EE 685 presentation Optimization Flow Control, I: Basic Algorithm and Convergence By Steven Low and David Lapsley.
Monte-Carlo method for Two-Stage SLP Lecture 5 Leonidas Sakalauskas Institute of Mathematics and Informatics Vilnius, Lithuania EURO Working Group on Continuous.
IMPACT OF CACHE PARTITIONING ON MULTI-TASKING REAL TIME EMBEDDED SYSTEMS Presentation by: Eric Magil Research by: Bach D. Bui, Marco Caccamo, Lui Sha,
Robotics Research Laboratory 1 Chapter 7 Multivariable and Optimal Control.
1  The Problem: Consider a two class task with ω 1, ω 2   LINEAR CLASSIFIERS.
SYSTEMS Identification Ali Karimpour Assistant Professor Ferdowsi University of Mashhad Reference: “System Identification Theory For The User” Lennart.
1 Real-Time Scheduling. 2Today Operating System task scheduling –Traditional (non-real-time) scheduling –Real-time scheduling.
Forrelation: A Problem that Optimally Separates Quantum from Classical Computing.
Optimal Superblock Scheduling Using Enumeration Ghassan Shobaki, CS Dept. Kent Wilken, ECE Dept. University of California, Davis
Classical scheduling algorithms for periodic systems Peter Marwedel TU Dortmund, Informatik 12 Germany 2012 年 12 月 19 日 These slides use Microsoft clip.
Chapter 2-OPTIMIZATION G.Anuradha. Contents Derivative-based Optimization –Descent Methods –The Method of Steepest Descent –Classical Newton’s Method.
Neural Networks 2nd Edition Simon Haykin 柯博昌 Chap 3. Single-Layer Perceptrons.
INTRO TO OPTIMIZATION MATH-415 Numerical Analysis 1.
 Solve the equation.  1.) 3x = 23  2.) 2(x + 7) 2 = 16 Warm Up.
Lecture 6: Real-Time Scheduling
Latent Variables, Mixture Models and EM
Feature space tansformation methods
Joint Optimization of Multiple Behavioral and Implementation Properties of Digital IIR Filter Designs Magesh Valliappan, Brian L. Evans, and Mohamed Gzara.
Ch 4. Periodic Task Scheduling
CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4: KFUPM CISE301_Topic1.
Presentation transcript:

Delay-Aware Period Assignment in Control Systems Anton CervinLund University Sweden Enrico BiniScuola Superiore Sant’Anna, Pisa, Italy Real-Time Systems Symposium, 2008 Matlab routine available at:

Overview We find an analytical solution!!! n independent plants to be controlled by n controllers one CPU to schedule them Problem: assign the periods {T i } such that overall control cost is minimized 11 22 nn T1T1 T2T2 TnTn CPU

The execution of a controller a set of n control tasks {  1,...,  n } scheduled by FP A task  i is modeled by (C i, T i ), where: C i is the worst-case computation time; T i is the period; U i =C i /T i is the utilization; R ij is the job response time; no deadline is enforced.

The cost of a controller The cost is standard Linear Quadratic Gaussian (LQG) that is We make a linearization It applies to any other domain where period, delay minimization is required

The linear cost “The cost J i is ” Let J i (T,  ) be any smooth cost function, T i 0 and  i 0 be nominal values of period and delay of  i (for example T i 0 =  i 0 =C i ) 1.make a linear approx of J i at (T i k,  i k ) and we set  i k and  i k as the partial derivative of J i ; 2.Solve (very efficiently) the linear problem and set T i k+1 as the solution and  i k+1 accordingly 3.Go back to 1. The convergence is not demonstrated, but always obtained.

Modeling the delay In control,  i is the separation between sampling and actuation How do we model  i as function of T 1,...,T n ? separation from activation to completion varies job by job  i =R i ? Overestimate, no expression func of T i  i =R i ub ? Exists expression of T i, larger overestimate  i =avg j {R ij } ? good estimate, no expression Average response time seems the good one

The delay approximation seems a good approximation of avg j {R ij } it’s the resp time if hp tasks were fluid if, a posteriori, we see good performance then it’s a good delay approximation We claim that average R ij is “something like” (2,4) (3,6) 7566

Formalization of the problem Seto et al [RTSS96] solved with  i =0 Notice we don’t care of classic FP schedulability! We aggregate the overall cost by sum J i

Solution of the problem Analytical solution of the problem Lagrange multipliers + Partial differentiation + Luck = At pag. 296, Equations (34)--(37), you can see the expression of the solution

The priority assignment RM is not guaranteed to be optimal. What is the control-optimal assignment? Intuition: since the cost is Since we found the analytical (fast) solution, then we can try to enumerate all possible ( n! ) priority orderings large  i  high priority to  i two “orthogonal” problems: priority assignment (based on  i ) and period assignment (based on  i )

Introducing experiments Tested methods: FirstVertex, by Bini, Di Natale [RTSS05] RiApprox, this method Seto96(1), by Seto et al [RTSS96], U=1 Seto96(Ulub), Seto96, U=U lub

One experiment CiCi U JiJi ii ii Seto96(Ulub) Seto96(1) FirstVertex RiApprox Matlab code available on my homepage priority assigned by brute force ( n! )

One experiment CiCi U JiJi ii ii Seto96(Ulub) Seto96(1) FirstVertex RiApprox Matlab code available on my homepage priority assigned by brute force ( n! )

Quality of delay approx task priority random C i,  i,  i, n  {3,7,19} We compute periods according RiApprox For all tasks we evaluate R i approx /R i avg R i avg is computed by simulating the schedule on x axis, tasks by decreasing pri highestlowest R i approx /R i avg

Quality of delay approx task priority highestlowest R i approx /R i avg

Comparing the costs n=2n=5n=10n=20 Seto96( U lub ) 20  839  349  767  3 FirstVertex 16  935  350  1259  5 RiApprox 16  733  342  655  4 n=2n=5n=10n=20 Seto96( U lub ) 24  651  960  11  14 FirstVertex 22  642  957  676  10 RiApprox 19  540  648  866  4 n=2n=5n=10n=20 Seto96( U lub ) 27  381    9 FirstVertex 27  861  14   9 RiApprox 24  4102    7 2 stable poles 2 stable, 1 unstable poles 3 stable, unstable poles cost is LQG (not synthetic) 3 kinds of plant generated randomly 2 stable poles 2 stable pole, 1 unstable 3 stable/ustable poles reference is T i =D i =C i costs are normalized with reference

Comparing the costs n=2n=5n=10n=20 Seto96( U lub ) 20  839  349  767  3 FirstVertex 16  935  350  1259  5 RiApprox 16  733  342  655  4 n=2n=5n=10n=20 Seto96( U lub ) 24  651  960  11  14 FirstVertex 22  642  957  676  10 RiApprox 19  540  648  866  4 n=2n=5n=10n=20 Seto96( U lub ) 27  381    9 FirstVertex 27  861  14   9 RiApprox 24  4102    7 2 stable poles 2 stable, 1 unstable poles 3 stable, unstable poles

Future works Extension in presence of a virtual processor. More efficient priority assignment. A delay sequence of 2, 4, 2, 4, 2, 4,... may not perform the same as a constant delay of 3. Account for it.

? ?

Quality of delay approx 2  i magnutude (sensitivity to delay) cost/Seto96(1) 5 tasks random C i,  i we increased the average  i cost is synthetic reference is Seto(1)