Lecture 9 Extensions and Open Problems

Similar documents
Lecture 10 Summary and Open Questions

Temporal logic-based decision making and control. Jana Tumova Robotics, Perception, and Learning Department (RPL)

Computer Lab 1: Model Checking and Logic Synthesis using Spin (lab)

Automated Software Synthesis for Complex Robotic Systems

Stable Trajectory Design for Highly Constrained Environments using Receding Horizon Control

The Embedded Systems Design Challenge. EPFL Verimag

Model Checking Revision: Model Checking for Infinite Systems Revision: Traffic Light Controller (TLC) Revision: 1.12

Value Iteration. Reinforcement Learning: Introduction to Machine Learning. Matt Gormley Lecture 23 Apr. 10, 2019

Cooperative Task Planning of Multi-Robot Systems with Temporal Constraints 1

15-780: MarkovDecisionProcesses

!"#$"%"& When can a UAV get smart with its operator, and say 'NO!'? Jerry Ding**, Jonathan Sprinkle*, Claire J. Tomlin**, S.

A set-based approach to robust control and verification of piecewise affine systems subject to safety specifications

Online Algorithms. Lecture 11

Name: UW CSE 473 Midterm, Fall 2014

A Decomposition Approach to Multi-vehicle Cooperative Control

Outline. No Free Lunch Theorems SMTWTP. Outline DM812 METAHEURISTICS

Software Architecture. Lecture 4

Marco Wiering Intelligent Systems Group Utrecht University

Computer Lab 1: Model Checking and Logic Synthesis using Spin (lab)

This project has received funding from the European Union s Horizon 2020 research and innovation programme under grant agreement No

Linking Natural Language to Action. Advisors: George Pappas and Norm Badler

Resource-bound process algebras for Schedulability and Performance Analysis of Real-Time and Embedded Systems

Networked Cyber-Physical Systems

Experimental Evaluation and Formal Analysis of High-Level Tasks with Dynamic Obstacle Anticipation on a Full-Sized Autonomous Vehicle

Lecture 2. Decidability and Verification

Inverse KKT Motion Optimization: A Newton Method to Efficiently Extract Task Spaces and Cost Parameters from Demonstrations

Introduction to Control Systems Design

Addressing Verification Bottlenecks of Fully Synthesized Processor Cores using Equivalence Checkers

Temporal Logic Motion Planning for Mobile Robots

What are Embedded Systems? Lecture 1 Introduction to Embedded Systems & Software

Probabilistic Planning for Behavior-Based Robots

Robotic Behaviors. Potential Field Methods

Improved BDD-based Discrete Analysis of Timed Systems

ICS 52: Introduction to Software Engineering

Controlling Hybrid Systems

Artificial Intelligence

Creating Smart Agents:

Let s start with occluding contours (or interior and exterior silhouettes), and look at image-space algorithms. A very simple technique is to render

Distributed Systems Programming (F21DS1) Formal Verification

Interfacing TuLiP with the JPL Statechart Autocoder: Initial progress toward synthesis of flight software from formal specifications

Design and Evaluation of the Ultra- Reliable Low-Latency Wireless Protocol EchoRing

Predictive Autonomous Robot Navigation

Robots & Cellular Automata

1. (10 points) Draw the state diagram of the DFA that recognizes the language over Σ = {0, 1}

Temporal Logic Control of Discrete-Time Piecewise Affine Systems

Planning & Decision-making in Robotics Case Study: Planning for Autonomous Driving

CSCI 445 Amin Atrash. Control Architectures. Introduction to Robotics L. Itti, M. J. Mataric

A Study on Run Time Assurance for Complex Cyber Physical Systems

Modeling, Simulation and Analysis of Integrated Building Energy and Control Systems. Michael Wetter. October 8, 2009

Algorithmic Verification. Algorithmic Verification. Model checking. Algorithmic verification. The software crisis (and hardware as well)

Model-Based Design of Connected and Autonomous Vehicles

Temporal Logic Control for Stochastic Linear Systems using Abstraction Refinement of Probabilistic Games

A Tutorial on Runtime Verification and Assurance. Ankush Desai EECS 219C

Specification and Analysis of Real-Time Systems Using Real-Time Maude

Scalable Lazy SMT-Based Motion Planning

4/6/2011. Model Checking. Encoding test specifications. Model Checking. Encoding test specifications. Model Checking CS 4271

The Arbitrated Network Control Systems Approach to CPS

Formal Verification: Practical Exercise Model Checking with NuSMV

Incremental Runtime Verification of Probabilistic Systems

Computer aided verification

Formal Methods in Software Engineering. Lecture 07

To be or not programmable Dimitri Papadimitriou, Bernard Sales Alcatel-Lucent April 2013 COPYRIGHT 2011 ALCATEL-LUCENT. ALL RIGHTS RESERVED.

Model Checking for Hybrid Systems

INF672 Protocol Safety and Verification. Karthik Bhargavan Xavier Rival Thomas Clausen

Software verification for ubiquitous computing

Introduction & Formal Methods

Xuandong Li. BACH: Path-oriented Reachability Checker of Linear Hybrid Automata

Agent Based Intersection Traffic Simulation

Automatic synthesis of switching controllers for linear hybrid systems: Reachability control

Chapter 1 Introduc0on

Markov Decision Processes. (Slides from Mausam)

Robotics Tasks. CS 188: Artificial Intelligence Spring Manipulator Robots. Mobile Robots. Degrees of Freedom. Sensors and Effectors

Short-Cut MCMC: An Alternative to Adaptation

RICE UNIVERSITY Temporal Logic Motion Planning in Partially Unknown Environments

Control Systems. Introduction to Control System.

Modelling and verification of cyber-physical system

Model Checking of Statecharts using Automatic White Box Test Generation

Lecture 2: Symbolic Model Checking With SAT

Lecture 9: Reachability

Subsystem Hazard Analysis (SSHA)

A Graceful Degradation Framework for Distributed Embedded Systems William Nace Philip Koopman

Software Architecture--Continued. Another Software Architecture Example

Probabilistic Model Checking. Mohammad Roohitavaf

Research Article Modeling and Simulation Based on the Hybrid System of Leasing Equipment Optimal Allocation

Ian Mitchell. Department of Computer Science The University of British Columbia

Using Advice in Model-Based Reinforcement Learning

Exam. Material for Exam. Exam Location. Time. Lecture 24:Resource Bounded Reasoning. Location GSMN 51 Goessmann Lab

State Space Reduction For Hierarchical Reinforcement Learning

Hierarchical Multi-Objective Planning For Autonomous Vehicles

Time-annotated game graphs for synthesis from abstracted systems

Multi-Disciplinary Design of an Aircraft Landing Gear with Altair HyperWorks

Using Hybrid Automata for Early Spacecraft Design Evaluation

Planning and Control: Markov Decision Processes

System Correctness. EEC 421/521: Software Engineering. System Correctness. The Problem at Hand. A system is correct when it meets its requirements

Infinite Time Optimal Control of Hybrid Systems with a Linear Performance Index

Supervisory Control Synthesis the Focus in Model-Based Systems Engineering

A Brief Introduction to Reinforcement Learning

Apprenticeship Learning for Reinforcement Learning. with application to RC helicopter flight Ritwik Anand, Nick Haliday, Audrey Huang

Formal Methods for Software Development

Outline. SLD challenges Platform Based Design (PBD) Leveraging state of the art CAD Metropolis. Case study: Wireless Sensor Network

Transcription:

Lecture 9 Extensions and Open Problems Richard M. Murray Nok Wongpiromsarn Ufuk Topcu California Institute of Technology EECI, 18 May 2012 Outline: Review key concepts from the course Discussion open issues, technical challenges and risks Hand out certificates! TS ( b (a b)

Some Important Trends in Control in the Last Decade (Online) Optimization-based control Increased use of online optimization (MPC/RHC) Use knowledge of (current) constraints & environment to allow performance and adaptability Layering and architectures Command & control at multiple levels of abstraction Modularity in product families via layers Formal methods for analysis, design and synthesis Combinations of continuous and discrete systems Formal methods from computer science, adapted for hybrid systems (mixed continuous & discrete states) Components Systems Enterprise Movement of control techniques from inner loop to outer loop to entire enterprise (eg, supply chains) Use of systematic modeling, analysis and synthesis techniques at all levels Integration of software with controls (Internet of things, cyber-physical systems, etc) 2

Formal Methods for System Verification & Synthesis Specification using LTL Linear temporal logic (LTL) is a math l language for describing linear-time prop s Provides a particularly useful set of operators for constructing LT properties without specifying sets Methods for verifying an LTL specification Theorem proving: use formal logical manipulations to show that a property is satisfied for a given system model Model checking: explicitly check all possible executions of a system model and verify that each of them satisfies the formal specification Methods for synthesis of correct-by-construction control protocols Build on results in logic synthesis and (recent) results in GR(1) synthesis Key challenges: dynamics, uncertainty, complexity 3

Hybrid, Multi-Agent System Description Subsystem/agent dynamics - continuous ẋ i = f i (x i, i,y i,u i ) x i 2 R n,u i 2 R m y i = h i (x i, i ) y i 2 R q Agent mode (or role ) - discrete A encodes internal state + relationship to current task Transition = r(x, ) Communications graph G Encodes the system information flow Neighbor set N i (x, ) Task Encode task as finite horizon optimal control + temporal logic (assume coupled) J = 0 T L(x,, u) dt + V (x(t ), (T )), ( init e) = ( s g ) Strategy Control action for individual agents u i = (x, ) {g i j(x, ) : r i j(x, )} i = ri j (x, ) g(x, ) = true unchanged otherwise. Communications channel Communicated information can be lost, delayed, reordered; rate constraints y i j[k] = y i (t k j ) t k+1 t k >T r γ = binary random process (packet loss) Decentralized strategy u i (x, )=u i (x i, i,y i, y i = {y j 1,...,y j m i } j k N i m i = N i Similar structure for role update i ) 4

Hierarchical, Networked Control Systems Planning stack Different views Multi-scale models Implementation Mission Planner Tactical Planner Trajectory Generation long-horizon specification short-horizon specification continuous dynamics& constraints W 0... W L 1 W L W L W L 1 min Z T t 0 W 0 L(x, u)dt s.t. ẋ = f(x, u) g(x, u) apple 0 High level mission abstraction (iterative graph search) Reactive planner: decision-making based on events in environment Continuous control action based on mode and cost Inner Loop Actuation Vehicle Multi-layer approach Use optimal trajectory generation to create a discrete abstraction that captures the dynamics at a simplified level Reactive planner based on GR(1) synthesis (possibly RHC) High level planner sends specifications to reactive planer Online versus offline decisions at each level 5

Temporal Logic Planning (TuLiP) toolbox http://tulip-control.sourceforge.net Python Toolbox GR(1), LTL specs Nonlin dynamics Supports discretization via MPT Control protocol designed using JTLV Receding horizon compatible Applications of TuLiP in the last few years Autonomous vehicles - traffic planner (intersections and roads, with other vehicles) Distributed camera networks - cooperating cameras to track people in region Electric power transfer - fault-tolerant control of generator + switches + loads Project 5: add new functionality to TuLiP (with example + documentation) 6

Project Possibilities Possibilities mentioned during the course 1. Verify correctness of actuation mode logic for Alice using SPIN model checker and message channels 2. Create a model of the RoboFlag drill (simplified) in Promela and verify correctness using SPIN 3. Create a specification for the RoboFlag drill and synthesize a (decentralized) protocol to solve it 4. Synthesize intersection logic for a car at an intersection 5. Add new functionality to TuLiP (with document n + examples) Project from your own research area Pick something where you can do verification and/or synthesis of a control protocol Could be theoretical or computational Process Send e-mail to Richard & Ufuk in the coming week with a specific proposal Work through the project and write up a 4-8 page report No specific due date, but June or July would be good op run command. Paused (P) - depress brakes - reject all directives except steering Estop Run Resuming (Re) - start timer on entry - transition after 5 sec Estop Paused Estop Disable Timeout Disabled (D) - depress brakes - send trans disable - reject all directives Estop Disable Running (Ru) - normal operating state - process all directives Shift Shif e is not disabled, eventually Gcdrive sta 7

Open (Research) Issues Optimality: language-constrained, optimal trajectory generation ( init e) = ( s g ) J = 0 T L(x,, u) dt + V (x(t ), (T )), Partial order computation and hierarchical structure How do we determine the partial order for RHTLP and link to supervisory levels? Verification and synthesis with (hard) real-time constraints How do we incorporate time in our specifications, verification and synthesis tools? Note: time automata and timed temporal logic formulas available... Contract-based design: automate search interfaces for distributed synthesis How do we decompose a larger problem into smaller pieces? Especially important for large scale projects with multiple teams/companies Uncertainty and robustness How to specify uncertainty for transition systems, robustness for controllers, specs New methods for describing robustness by Tabuada et al: look at how much the specifications must be enlarged to capture new behaviors based on uncertainty Many other directions: incremental, probabilistic, performance metrics,... Identify problems where knowledge of dynamics, uncertainty and feedback matter 8

Wolff, Topcu, Murray RSS 2012 (s) Optimal Synthesis with Weighted Average Costs Problem Setting Deterministic weighted transition system TS LTL specification ϕ J( ):=limsup n!1 P n i=0 c( i, i+1) Problem: Compute run σ that minimizes J over all σ and satisfies ϕ. Main Results Reduce problem to finding optimal cycle in product automaton P. Dynamic programming recurrence computes optimal cost cycle on P = (V,E). Fk(v) is minimum cost walk of length k between vertices s, v in V. Complexity: O(na(mn +n 2 log(n)) for 0-1 weights, where na is the number of accepting states. Example Costs lower near boundary ϕ = a b x Optimal (black) and feasible using DFS (green) (shading represents cost) Questions Nondeterministic transition system? Reactive environments? Multi-objective? Discounted cost function?

Wolff, Topcu, Murray CDC 2012 (s) Markov Decision Processes with LTL Specifications Problem Setting Markov decision process (MDP) system model, with uncertainty in transitions (disturbances, failures) LTL specification ϕ (probably GR(1)) Problem: Maximize probability of MDP satisfying ϕ over uncertainty set: Example Differential drive robot (x,y,theta) Transition probabilities estimated (MC) ϕ = (R1 R2) unsafe home Main Results Transform P = MDP x LTL to stochastic shortest path (SSP) form Compute satisfaction probabilities on SSP with robust dynamic program g Project policy π back to MDP Complexity: O(n2m log(1/ε)2) for ε- suboptimal policy Questions Simpler fragments of temporal logic? Tradeoffs between costs and probability of success? Principled abstraction of MDPs from continuous systems?

Technical Challenges and Risks 1. Writing LTL (or other temporal logic) specifications is not a job for mortals Easy to make mistakes when writing LTL and hard to interpret complex formulas Possible approach: domain specific tools that provide engineer-friendly interface 2. Model checking and logic synthesis tools won t work on large problems Combinatorial explosion in discrete states for modest engineering systems will make it impossible to apply model checking/synthesis to raw problem Approaches: abstraction layers and modularity via interfaces - Vertical layering: apply tools to different layers and enforce bisimulation - Horizontal contracts: define formal subsystem interfaces & reason about them 3. Expertise in modeling and specification not yet developed Engineers in domains in which these tools are needed don t yet have experience developing models that ignore the right sets of things - Compare to reduced order models for aircraft (aerodynamic, aeroelastic) and agreed on specifications (bandwidth, response time, stability margins, etc) - Particularly worried about dynamics, uncertainty, interconnection - How do we convince FAA to allow use of these tools? Approach (?): explore application domains, moving from modest to complex problems, and develop expertise, tools, tool chains, processes,... 11

Aircraft Vehicle Management Systems Electrical Power System Landing Gear Fuel System Propulsion and Power Environmental Control System Power Transmission Thermal, Electrical, Lubrication Systems Hydraulic System Servo System MuSyC workshop, Apr 2011 12

Specification, Design and Verification of NCS Specification How do we describe correct behavior? Design What tools can we use to design protocols to implement that behavior? J = 0 T L(x,, u) dt + V (x(t ), (T )), ( init e) = ( s g ) Verification How do we know if it is actually correct? 13