Conference PaperPDF Available

pFaces: An Acceleration Ecosystem for Symbolic Control

Authors:

Abstract and Figures

The correctness of control software in many safety-critical applications such as autonomous vehicles is crucial. One technique to achieve correct control software is called "symbolic control", where complex systems are approximated by fnite-state abstractions. Then, using those abstractions, provably-correct digital controllers are algorithmically synthesized for concrete systems, satisfying complex high-level requirements. Unfortunately, the complexity of synthesizing such controllers grows exponentially in the number of state variables. However, if distributed implementations are considered, high-performance computing platforms can be leveraged to mitigate the effects of the state-explosion problem. We propose pFaces, an extensible software-ecosystem, to accelerate symbolic control techniques. It facilitates designing parallel algorithms and supervises their executions to utilize available computing resources. To demonstrate its capabilities, novel parallel algorithms are designed for abstraction-based controller synthesis. Then, they are implemented inside pFaces and dispatched, for parallel execution, in different heterogeneous computing platforms, including CPUs, GPUs and Hardware Accelerators (HWAs). Results show remarkable reduction in the computation time by several orders of magnitudes as number of processing elements (PEs) increases, which easily outperforms all the existing tools.
Content may be subject to copyright.
pFaces: An Acceleration Ecosystem for Symbolic Control
Mahmoud Khaled
Hybrid Control Systems Group
Technical University of Munich
Munich, Germany
khaled.mahmoud@tum.de
Majid Zamani
Department of Computer Science
University of Colorado Boulder, USA
Department of Computer Science
Ludwig Maximilian University of Munich, Germany
majid.zamani@colorado.edu
ABSTRACT
The correctness of control software in many safety-critical appli-
cations such as autonomous vehicles is crucial. One technique to
achieve correct control software is called "symbolic control", where
complex systems are approximated by nite-state abstractions.
Then, using those abstractions, provably-correct digital controllers
are algorithmically synthesized for concrete systems, satisfying
complex high-level requirements. Unfortunately, the complexity of
synthesizing such controllers grows exponentially in the number
of state variables. However, if distributed implementations are con-
sidered, high-performance computing platforms can be leveraged
to mitigate the eects of the state-explosion problem.
We propose
pFaces
, an extensible software-ecosystem, to accel-
erate symbolic control techniques. It facilitates designing parallel
algorithms and supervises their executions to utilize available com-
puting resources. To demonstrate its capabilities, novel parallel
algorithms are designed for abstraction-based controller synthesis.
Then, they are implemented inside
pFaces
and dispatched, for par-
allel execution, in dierent heterogeneous computing platforms,
including CPUs, GPUs and Hardware Accelerators (HWAs). Results
show remarkable reduction in the computation time by several
orders of magnitudes as number of processing elements (PEs) in-
creases, which easily outperforms all the existing tools.
CCS CONCEPTS
Computing methodologies Parallel algorithms
;Graph-
ics processors;
Computer systems organization Embedded
and cyber-physical systems
;
Software and its engineering
Formal methods
;Parallel programming languages;
Hard-
ware Hardware accelerators;
KEYWORDS
Symbolic Control; Discrete Abstractions; Reactive Synthesis; High
Performance Computing; Parallel Algorithms;
C++
;
OpenCL
; Mes-
sage Passing Interface (MPI); CPU; GPU; FPGA; HW Accelerators.
Permission to make digital or hard copies of all or part of this work for personal or
classroom use is granted without fee provided that copies are not made or distributed
for prot or commercial advantage and that copies bear this notice and the full citation
on the rst page. Copyrights for components of this work owned by others than ACM
must be honored. Abstracting with credit is permitted. To copy otherwise, or republish,
to post on servers or to redistribute to lists, requires prior specic permission and/or a
fee. Request permissions from permissions@acm.org.
HSCC ’19, April 16–18, 2019, Montreal, QC, Canada
©2019 Association for Computing Machinery.
ACM ISBN 978-1-4503-6282-5/19/04. . . $15.00
https://doi.org/10.1145/3302504.3311798
ACM Reference Format:
Mahmoud Khaled and Majid Zamani. 2019.
pFaces
: An Acceleration Ecosys-
tem for Symbolic Control . In 22nd ACM International Conference on Hybrid
Systems: Computation and Control (HSCC ’19), April 16–18, 2019, Montreal,
QC, Canada. ACM, New York, NY, USA, 6 pages. https://doi.org/10.1145/
3302504.3311798
1 INTRODUCTION
Recently, the world has witnessed many emerging safety-critical
applications such as smart buildings, autonomous vehicles and
smart grids. These applications are examples of so-called Cyber-
physical systems (CPS). In CPS, embedded control software plays
a signicant role by monitoring and controlling several physical
variables, such as pressure or velocity, through multiple sensors and
actuators, and communicates with other systems or with supporting
computing servers. A novel approach to design provably correct
embedded control software in an automated fashion, is via formal
method techniques in control [
12
,
14
], and in particular symbolic
control.
Symbolic control provides algorithmically provably-correct con-
trollers based on dynamics of physical systems and some given
high-level requirements. In symbolic control, physical systems are
approximated by nite abstractions and then discrete controllers are
automatically synthesized for those abstractions, using automata-
theoretic techniques [
6
]. Finally, those controllers will be rened to
hybrid ones applicable to the original physical systems. Unlike tra-
ditional design-then-test ows, merging design phases with formal
verication ensures that controllers are certied-by-construction.
Current implementations of symbolic control are designed to
run serially in one CPU [
1
,
4
,
5
,
7
,
8
,
11
,
13
]. This way of imple-
mentation interacts poorly with the symbolic approach, whose
complexity grows exponentially in the number of state variables in
the model. This, consequently, limits the current implementations
to small dynamical systems where controllers are to be computed
o-line. In this work, we investigate novel parallel algorithms and
data structures, and utilizing high-performance computing (HPC)
platforms to mitigate the eects of the state explosion problem.
Traditionally, compute platforms such as super-computers were
expensive and inaccessible to many scientic communities. Moti-
vated by the market (e.g., gaming and cryptocurrencies mining),
compute units (CUs) like GPUs showed remarkable improvement
in speed. This introduced general purpose GPU (GPGPU) to utilize
such CUs for scientic data-parallel tasks. One good example is
how GPUs played a major role in crunching data collected by the
LIGO observatories, in 2015, making the detection of gravitational
A patent application for the tool is led to the European Patent Oce (EPO). This
work was supported in part by the H2020 ERC Starting Grant AutoCPS.
HSCC ’19, April 16–18, 2019, Montreal, QC, Canada Mahmoud Khaled and Majid Zamani
Interconnection Network
CN CN CN· · ·
CPU
GPU
CPU
GPU HWA
CPU
Figure 1: A computing model considered in pFaces. Colored
boxes represent PEs of dierent computation power.
waves possible. Lately, cloud-computing providers, like Amazon
and Microsoft, made it possible for customers to build small clusters
combining CPUs, GPUs and HW-accelerators (HWAs).
This inspired the authors to use HPC platforms for mitigating
the eects of state-explosion problem in symbolic control. However,
current and future techniques need to be (re-)designed for paral-
lel and distributed execution. We propose
pFaces
as a software-
ecosystem that facilitates utilizing HPC platforms. The main con-
tributions of this work are:
(1)
an extensible software ecosystem to support utilizing HPC
platforms for mainly symbolic control and similar elds (e.g.,
reachability analysis);
(2)
novel parallelization of general abstraction-based controller
synthesis that outperforms all the existing tools.
1.1 Similar Works
The concept behind
pFaces
is dierent from currently available
tools [
1
,
4
,
5
,
7
,
8
,
11
,
13
]. They present implementations of separate
techniques while
pFaces
is intended to host the implementation of
any technique. To the best of our knowledge, all existing tools are
designed to run serially in one CPU.
pFaces
is the rst-of-its-kind
tool to support multiple CUs, including CPUs, GPUs, HWAs, and
clusters combining heterogeneous congurations of them.
Surprisingly, most modern CPUs come equipped with internal
GPUs that never get utilized by serial programs. For example, the
Intel Core i5 6200U
processor (HW conguration
CPU1
in Table
2), which contains two CPU-cores, has an internal GPU that can out-
perform the CPU-cores if a data-parallel task is well implemented.
Now, having any of those existing tools run in this processor, might
not utilize the second CPU-core and will never utilize the internal
GPU, which is a waste of resources.
On the other hand, we parallelize a symbolic control technique
similar to that used in [
1
,
7
,
8
,
11
], implement it and compare it with
other existing tools. As reported in Section 5,
pFaces
accelerates the
technique and outperforms them by several orders of magnitudes.
2pFaces: A GENERIC ACCELERATOR
We rst discuss what classes of heterogeneous computing platforms
are considered in
pFaces
. Then, we present the general internal
pFaces
User
Cong.
Files
Developed in C+ +=MPI Developed in OpenCL
Debug and
Log
Files
Figure 2: Internal structure of pFaces.
structure of
pFaces
. The work-ow inside
pFaces
is best under-
stood with a parallel program in hand. Hence, we present it with
one parallel implementation starting from Section 3.
2.1 Supported HPC Platforms
Figure 1 shows a general heterogeneous computing model where
compute nodes (CN) combine dierent CUs (e.g., CPUs, GPUs, and
HWA). All CUs are connected to one, possibly hierarchal, intercon-
nection network. Each CU contributes to the system with a set of
PEs. PEs represent the HW circuits doing mathematical and logical
operations. PEs vary in computation power. For example, CPUs
has small number of PEs (a.k.a. cores or threads in CPU terminol-
ogy), but able to do fast mathematical computations. A GPU has
less powerful PEs (a.k.a. pixel/vertex shader units in GPU termi-
nology) but they come in a large number. PEs of re-congurable
HWAs (e.g., FPGA) are customized HW circuits (e.g., logic circuits
doing application-specic math/logic functionalities) for maximum
possible performance.
pFaces
aims at providing scalable, distributed execution of par-
allel algorithms that utilizes all available PEs in such heterogeneous
systems. To the best of our knowledge,
pFaces
is the only tool that
can deal with all of these types of CUs simultaneously.
2.2 Internal Structure of pFaces
pFaces
introduces a exible interface for utilizing available compu-
tation resources to solve problems arising in the eld of symbolic
control, or similar elds. Therefore, the core of
pFaces
is developed
independent of the targeted problem for acceleration. This is clearly
depicted in Figure 2.
The management ecosystem, depicted in yellow color, is inde-
pendent of the Computation Kernel, depicted in purple color and
denoted by kernel for simplicity, which represents the job to be
accelerated. The management modules are developed in
C++
mixed
with Message Passing Interfaces (
MPI
). We choose
C++
to balance
run eciency and portability.
MPI
enables running instances of
pFaces over dierent CNs that communicate over a network.
Within each CN, a
pFaces
instance identies available CUs using
the resource identication and management engine. It keeps track of
the underlaying hardware architecture and runs parts of the kernel
using the Kernel Tuner Module to assess the compute power of each
of the identied CUs. A Management Engine Module orchestrates the
pFaces: An Acceleration Ecosystem for Symbolic Control HSCC ’19, April 16–18, 2019, Montreal, QC, Canada
work among dierent modules and commands the Task Scheduler
Module which runs the kernel as ecient as possible, using the data
collected after resource identication. A Conguration Interface
Module helps users interact with the kernel via text conguration
les that follow some rules dened by the kernel developer. With
the Logging and Debugging Engine Module,
pFaces
informs the user
about the current state of execution and delivers hints, suggestions
and debugging information about the executing kernel.
Kernels encapsulate the parallel algorithm under consideration.
They should be developed in
OpenCL
with some additional exten-
sions dened by
pFaces
.
OpenCL
is a standard and programming
language for heterogeneous parallel computing. We select
OpenCL
as it is becoming a widely accepted standard for CPUs, GP Us, many
embedded devices, and most recently, for HWAs (e.g., FPGAs [2]).
3 A KERNEL FOR SYMBOLIC CONTROL
Some theoretical background is presented in this section followed
by a novel parallelized version for one of the common techniques
in symbolic control.
Here, nite abstractions are constructed based on the theory in
[
9
], which utilizes a growth-bound (GB) formula to over-approximate
the reachable sets. Algorithmic controller synthesis is done based
on the technique presented in [
11
], which uses xed-point (FP)
computations on the constructed nite-state models.
It is not possible to use those techniques directly in
pFaces
since
they are manifested as serial algorithms. Novel parallel algorithms
are then proposed for constructing nite abstractions and synthe-
sizing symbolic controllers for them. In Section 5, it is shown that
the algorithms scale remarkably as number of PEs increases. We
refer to this kernel by pFaces/GBFP.
3.1 Parallel Construction of Finite Abstractions
We consider general nonlinear systems given in the form of a dif-
ferential equation:
Σ:Û
ξ(t)=f(ξ(t),u),(1)
where
ξ(t) ∈ XRn
is a state vector and
uURm
is an input
vector. We denote by
ξx,u(·)
the trajectory satisfying
(1)
at almost
every
t∈ [
0
,τ]
, where
τR+
is a sampling period, started from
initial condition
ξx,u(
0
)=x
and under some input
u
. Set
¯
X
is a nite
partition on
X
constructed by a set of hyper-rectangles of identical
widths
ηRn
+
. Set
¯
U
is a nite subset of
U
. A nite abstraction of
(1)
is a nite-state system
¯
Σ=(¯
X,¯
U,T)
, where
T¯
Xׯ
Uׯ
X
is
a transition relation that is crafted so that there exists a feedback-
renement relation (FRR)
R Xׯ
X
from
Σ
to
¯
Σ
. Interested readers
can nd more details about FRRs in [9].
For the vector eld of
(1)
, a function
f
:
¯
Xׯ
UX2
char-
acterizes the over-approximations of the reachable sets starting
from a set
¯
x¯
X
when the input
¯
u
is applied. For example, if the
growth-bound map (
β
:
Rn×URn
) introduced in [
9
] is used,
f
can be dened as follows:
f(¯
x,¯
u)=(xlb ,xu b )
:
=(−r+ξ¯
xc,¯
u(τ),
r+ξ¯
xc,¯
u(τ))
, where
r=β(η/
2
,u)
, and
¯
xc¯
x
denotes the centroid of
¯
x
. An over approximation of the reachable sets can then be obtained
by the map
Of
:
¯
Xׯ
U
2
¯
X
dened by
Of(¯
x,¯
u)=Qf(¯
x,¯
u)
,
where Qis a quantization map dened by:
Q(xlb ,xu b )={¯
x¯
X|¯
x∩ [[xlb ,xu b ]] ,∅},(2)
Algorithm 1:
Traditional serial algorithm for constructing
discrete abstractions.
Input: ¯
X,¯
U,Of
Output: A transition relation T¯
Xׯ
Uׯ
X.
1T← ∅ ;
2for all ¯
x¯
Xdo
3for all ¯
u¯
Udo
4for all ¯
xOf(¯
x,¯
u)do
5TT∪ {( ¯
x,¯
u,¯
x)} ;
6end
7end
8end
where
[[xlb ,xu b ]] =[xlb,1,xu b,1]×[xlb ,2,xub,2] × · · · × [xlb,n,
xub,n].
Algorithm 1 depicts the traditional algorithm for constructing
nite abstractions of dynamical systems. The algorithm constructs,
serially,
T¯
Xׯ
Uׯ
X
by iterating over all elements of
¯
Xׯ
U
. For
any
(¯
x,¯
u)
, the evaluation of
Of
and
T|(¯
x,¯
u)
is independent of any
element of
¯
Xׯ
U
. Algorithm 2 is then proposed as a parallelization
of Algorithm 1. Each PE, annotated with an index
p∈ {
1
,
2
,· · · ,P}
,
where
P
is the number of available PEs, handles one
(¯
x,¯
u) ∈ ¯
Xׯ
U
.
Function
I
:
N+\ {∞} → {
1
,
2
, . . . , P}
maps a parallel job (i.e., an
iteration of the
parallel for-all
statement) with index
i
to a PE
with an index
p=I(i)
. The algorithm introduces the abstraction
task as an ideal data-parallel task with no communication overhead
among the processing elements. It is more suitable for CUs with
massive number of PEs (e.g. GPUs and super computers). However,
having
P>|¯
Xׯ
U|
is a waste of computation power. A variant of it
is also provided in
pFaces
/
GBFP
and it aggregates the computation
of all
(¯
x,¯
u)
having the same
¯
x
in one PE, which is more suitable for
CUs with small number of fast PEs (e.g., CPUs and FPGAs).
Instead of storing symbolic transitions in
T
,
f
is used to con-
struct a distributed container
K
:
=K1
lo c K2
lo c ∪ · · · ∪ KP
lo c
, where
the subscript
loc
indicates that
Kp
lo c ¯
Xׯ
U×X2
is stored in a
local-memory of the PE with index
p
. The lines 10-12 in Algorithm
2 are optional and can be omitted if there is no interest to obtain
a combined abstraction. We show in Subsection 3.2 that only the
Algorithm 2:
Proposed parallel algorithm for constructing
discrete abstractions.
Input: ¯
X,¯
U,f
Output: A characteristic set K¯
Xׯ
U×X2.
1K← ∅;
2for all p∈ {1,2,· · · ,P}do
3Kp
lo c ← ∅;
4end
5for all (¯
x,¯
u) ∈ ¯
Xׯ
Uin parallel with index ido
6p=I(i);
7(xlb ,xu b ) ← f(¯
x,¯
u);
8Kp
lo c Kp
lo c ∪ {( ¯
x,¯
u,(xlb ,xu b ))};
9end
10 for all p∈ {1,2,· · · ,P}do
11 KKKp
lo c ;
12 end
HSCC ’19, April 16–18, 2019, Montreal, QC, Canada Mahmoud Khaled and Majid Zamani
distributed containers
Kp
lo c
are required to synthesize symbolic
controllers for ¯
Σ.
Note that using
K
rather than
T
is more ecient since
|T|
is sen-
sitive to
|Of(¯
x,¯
u)|
, while
|K|=
2
n|¯
Xׯ
U|
is constant and consumes,
practically, less memory. This becomes more important when such
operations are executed in PEs of GPUs or FPGAs known for having
limited memory. In Subsection 3.3, we show that
Kp
lo c
can be also
omitted and the abstraction is done on-the-y.
3.2 Parallel Synthesis of Symbolic Controllers
Given
¯
Σ=(¯
X,¯
U,T)
, we dene the controllable predecessor map
CPreT: 2 ¯
Xׯ
U2¯
Xׯ
Ufor Z¯
Xׯ
Uby:
CPreT(Z)={( ¯
x,¯
u) ∈ ¯
Xׯ
U|∅ ,T(¯
x,¯
u) ⊆ π¯
X(Z)},(3)
where
π¯
X(Z)={¯
x¯
X|¯
u¯
U(¯
u,¯
x) ∈ Z}
, and
T(¯
x,¯
u)
is an in-
terpretation of the transitions set
T
as a map
T
:
¯
Xׯ
U
2
¯
X
that evaluates a set of post-states from a state-input pair. We con-
sider reachability and invariance specications given by the LTL
formulae
^ψ
and
ψ
, respectively, where
ψ
is a propositional for-
mula over a set of atomic propositions
AP
. We rst construct an
initial winning set
Zψ={( ¯
x,¯
u) ∈ ¯
Xׯ
U|L(¯
x,¯
u) |=ψ)}
, where
L:¯
Xׯ
U2AP is some labeling function.
To synthesize symbolic controllers for the reachability speci-
cations, we utilize the monotone function
G(Z)
:
=CPreT(Z) ∪ Zψ
to iteratively compute
Z=µZ.G(Z)
starting with
Z0=
. Here,
we adopt a notation from
µ
-calculus with
µ
as the minimal xed
point operator and
Z
is the operated variable. Interested readers
can nd more details in [
6
] and the references therein. The syn-
thesized controller is a map
C
:
¯
Xw
2
¯
U
, where
¯
Xw¯
X
repre-
sents a winning (a.k.a. controllable) set of states. Set
C
is dened
by:
C(¯
x)={¯
u¯
U|( ¯
x,¯
u) ∈ µj(¯
x)Z.G(Z)}
, where
j(¯
x)=inf{i
N|¯
xπ¯
X(µiZ.G(Z))}
, and
µiZ.G(Z)
represents the value of
ith
it-
eration of the minimal xed point computation. Algorithm 3 shows
a serial implementation of the minimal xed-point computation
Z=µZ.G(Z)
. For the sake of space, we omit similar discussion
about synthesizing controllers for invariance specications. Inter-
ested readers can nd more details in [11].
Algorithm 4 is proposed as a parallelization of Algorithm 3. We
assume using the same indexing map
I(·)
from Algorithm 2. Line
Algorithm 3:
Traditional serial algorithm to synthesize
C
enforcing the specication ^ψ.
Input: Initial winning domain Zψ¯
Xׯ
Uand T
Output: A controller C:¯
Xw2¯
U.
1Z← ∅ ;
2¯
Xw← ∅ ;
3do
4Z0Z;
5ZCPreT(Z0) ∪ Zψ;
6DZ\Z0;
7foreach ¯
xπ¯
X(D)with ¯
x<¯
Xwdo
8¯
Xw¯
Xw { ¯
x};
9C(¯
x):={¯
u¯
U|( ¯
x,¯
u) ∈ D};
10 end
11 while Z,Z0;
Algorithm 4:
Proposed parallel algorithm to synthesize
C
enforcing the specication ^ψ.
Input: Initial winning domain Zψ¯
Xׯ
Uand T
Output: A controller C:¯
Xw2¯
U.
1Z← ∅ ;
2¯
Xw← ∅ ;
3do
4Z0Z;
5for all p∈ {1,2,· · · ,P}do
6Zp
lo c ← ∅;
7¯
Xp
w,lo c ← ∅;
8end
9for all (¯
x,¯
u) ∈ ¯
Xׯ
Uin parallel with index ido
10 p=I(i);
11 Post s QKp
lo c (¯
x,¯
u);
12 if Post s Z0Zψthen
13 Zp
lo c Zp
lo c ∪ {( ¯
x,¯
u)};
14 ¯
Xp
w,lo c ¯
Xp
w,lo c { ˆ
x};
15 if ¯
x<π¯
X(Z0)then
16 C(¯
x) ← C(¯
x) ∪ { ¯
u};
17 end
18 end
19 end
20 for all p∈ {1,2,· · · ,P}do
21 ZZZp
lo c ;
22 ¯
Xw¯
Xw¯
Xp
w,lo c ;
23 end
24 while Z,Z0;
(11) corresponds to computing
T(¯
x,¯
u)
from the stored characteristic
values
(xlb ,xu b )
. Since all PEs use
Z0
when running lines (12) and
(15), the synchronization among all PEs is required to ensure all PEs
get the most updated version of
Z0
. Such synchronization happens
in every iteration of the FP by collecting all local versions
Zp
lo c
in
line (21) and the update in line (4) before starting another parallel
synthesis iteration of the
parallel for-loop
in line (9). Similarly, a
variant of the algorithm, that is more suitable for CPUs and FPGAs,
is provided in pFaces/GBFP.
3.3 A Memory-ecient Kernel
Modern CUs contain hundreds to thousands of PE. This motivates
the concept of more-compute/less-memory where recomputing
results between repeated iterations is favored over storing them.
We apply this by eliminating the use of
Kp
lo c
in line (11) of Algorithm
4 and computing it on the y using the same way done in lines
(7) and (8) of Algorithm 2. We denote such modied kernel by
pFaces/GBFPm.
3.4 Implementation details
Figure 3 shows the work-ow of
pFaces
/
GBFP
. Apart from the
boxes highlighted with CU, all steps are executed in serial in the
management ecosystem. The kernel developer implements such
steps using subroutines from
pFaces
. For example, the step Distrib-
ute Jobs Based on Collected Data is a simple call to a subroutine in
pFaces: An Acceleration Ecosystem for Symbolic Control HSCC ’19, April 16–18, 2019, Montreal, QC, Canada
Start
Tune Devices
with selected samples
of input/output spaces
are
Load tune data
Distribute jobs based
on collected data
Sync. point
over devices
Run Abstraction
Algorithm
in Parallel
Run Synthesis
Iterations
in Parallel
devices
tuned ?
Read user
congles
Yes No
Start parallel jobs
Dump the controller
from devices' memories
Encode/save
the controller
End
CU
PE PE
· · ·
CU
PE PE
· · ·
· · ·
CU
PE PE
· · ·
CU
PE PE
· · ·
· · ·
Identify availble
parallel devices
Compile kernels
for devices
Generate code
from the controller
Figure 3: Work ow of pFaces/GBFP.
pFaces
that computes the best task distribution among available
PEs. Parallel tasks are handled completely by pFaces.
After constructing the abstraction, PEs are synchronized to make
sure all PEs start the synthesis task with correct abstraction mem-
ory. Also, after each FP iteration, synchronization is required as
discussed in Subsection 3.2. Such requirement is mainly a conse-
quence of the check in line (12) in Algorithm 4 and the fact that
Z0
is maintained as a distributed data container when the algo-
rithm is executed in multiple CUs. This introduces overhead that
reduces the scalability of the synthesis. Fortunately, such overhead
is mitigated by the fact that dynamical systems possess some lo-
cality. More specically, when a PE runs the check in line (12) in
Algorithm 4, a good possibility is that elements of
Post s
are close
(i.e., in the Euclidean distance) to
(¯
x,¯
u)
. Consequently, the check is
computed using memory from the same CU or neighboring CUs.
pFaces, on the other hand, distributes the tasks with an encoding
I(·) that promotes such locality.
Once the FP settles,
pFaces
/
GBFP
collects the controller data
and encodes it.
pFaces
facilitates encoding and saving data ob-
ject as Raw-Data, Binary Decision Diagrams (BDD), Bitmaps, or
compressed Bitmaps. Also,
pFaces
oers code-generation by im-
plementing the library BDD2Implement [
3
], helping users export
the map Cas C/C++-code or VHDL-code.
4 AN EXAMPLE
We show, with an example, how
pFaces
can be used to mitigate
computation complexities resulting from the state explosion prob-
lem. Consider the truck-with-a-trailer example presented in [
10
].
It is a three-dimensional system and the requirement is to reach
some target speed while maintaining a safe distance between the
truck and the trailer. We generalize the example to
Truck_N
where
Table 1: Details and results for the example Truck_N.
N=1N=2N=3N=4
n3 5 7 9
|¯
Xׯ
U| × 1062.64 36.17 398.29 5520.4
Memory per (x,u)(Byte) 25 41 1 1
Total memory (M.B.) 63 1414 379 5264
pFaces-kernel § § §§ §§
HW conguration MIX1GPU2MIX2MIX2
Time to nd C(sec.) 0.89 0.98 0.96 46.6
Nis the number of trailers, knowing that adding an extra trailer
increases the dimensions by two. We require the controller to be
computed in real-time (RT) with a deadline window of 1.0 second.
For dierent
N
, we focus on the value of
|¯
Xׯ
U|
as it aects directly
the complexity of Algorithms 2 and 4.
For the original problem (i.e.,
Truck_1
), the existing tool
SCOTS
solves the problem in 39 seconds using HW conguration
CPU2
in
Table 2, which violates the real-time constraint. With the same HW
conguration,
pFaces
/
GBFP
(denoted by
§
in Table 1) solves the
problem in 0.89 seconds with speedup of around 44x. Speedups are
calculated by dividing the time running the serial implementation,
which is the time reported by
SCOTS
for the current case, by the
time running the same example with the parallel implementation,
for a specic HW conguration.
We upgrade the system and synthesize a controller for
Truck_2
.
In order to respect the RT-deadline, we update the HW congura-
tion to
GPU2
. The problem is then solved in 0.98 seconds. Notice
the increase in memory per
(¯
x,¯
u)
when using
pFaces
/
GBFP
(see
the discussion about
K
in Subsection 3.1). To save memory, we use
pFaces/GBFPm(denoted by §§ in Table 1) for N>2.
For
Truck_3
, the HW conguration, that allows respecting the
RT-deadline, is much expensive to be installed in the truck. We
rent some CUs from Amazon-AWS, build the HW conguration
MIX2
, combining multiple GPUs, and share it among all trucks of
type
Truck_3
. Now, the problem is solved in 0.96 seconds. Here, all
trucks are assumed to have some access to the Cloud for submitting
requests and receiving a list of control actions, which is assumed
to take less than 4 milliseconds for communication.
Now, we experiment on
Truck_4
with the same HW congu-
ration. Unfortunately, due to the state-explosion problem, we no
longer can solve the problem in RT and it is solved in 46.6 seconds.
We emphasize that in order to control the complexity, more PEs
need to be added in this case.
Table 1 reports the collected results for the four cases. When
using
pFaces
/
GBFPm
, the 1-byte requirement for the memory per
(¯
x,¯
u)is used for controller synthesis not for the abstraction.
5 BENCHMARKING pFaces/GBFP
For benchmarking, we use HW congurations listed in Table 2. We
conduct a benchmark for scalability and report its results in Tables
3 and 4. Here, the dynamics and parameters of the examples dcdc
and
vehicle
are borrowed from [
11
], while those for the examples
robot and khepera are borrowed from [4].
The reference results for speedup computation are marked with
a black box. The highest speedup is underlined. N/A denotes "not
applicable" and used to indicate that the tool
SCOTS
does not run in
some HW congurations. The example
Truck_1
reported in Table
4 has smaller
η
than the one in Table 1. For
CLS1
, we report the time
HSCC ’19, April 16–18, 2019, Montreal, QC, Canada Mahmoud Khaled and Majid Zamani
Table 2: Used HW congurations for the proposed benchmarks.
Code Name Class
Number
of PEs PE Frequency
Memory
(G.B.)
Power
(Watt)
Price
($)
CPU1
Intel Core i5-6200U in Lenovo X260 Laptop 2016
CPU 2 2.8 GHz 8 15 281
CPU2Intel Xeon E5-2630 CPU 10 3.1 GHz 8 85 667
GPU1NVIDIA Quadro P5000 GPU 2560 600 MHz 16 180 1,800
GPU2NVIDIA Tesla V100 GPU 5120 800 MHz 16 250 10,664
GPU3
AMD Radeon Pro Vega 20 in Macbook Pro 2018
GPU 1280 1200 MHz 4 50 350
PGA1Altera DE5-Net Board FPGA 2 50 MHz 8 4 6,250
PGA2Kintex UltraScale FPGA KCU1500 FPGA 2 300 MHz 16 10 2,500
MIX1CPU1and its internal GPU Mixed 24 2.8 GHz / 300 GHz 8 25 281
MIX28×GPU2with NVLink interconnection Mixed 40960 800 MHz 128 2000 85,312
CLS1Two networked CNs: 32-core CPU and GPU2
Cluster
5152 3.8 GHz / 800 MHz 488 450 37,000
Table 3: Scalability benchmarking for the examples: DCDC and Vehicle.
DCDC:|¯
U|=2,|¯
X|=639200 Vehicle:|¯
U|=49,|¯
X|=91035
CPU1CPU2GPU1GPU2PGA1PGA2MIX1MIX2CLS1CPU1CPU2GPU1GPU2GPU3PGA1MIX1MIX2CLS1
SCOTS
44.3
36.9
N/A N/A N/A N/A N/A
N/A N/A
207
203
N/A N/A N/A N/A N/A
N/A N/A
pFaces/GBFP 1.6
0.41 0.037 0.009 0.189 0.073 0.41 0.003 0.8/98% 52.1 10.9 0.98 0.152 1.72 16.8 13.6
0.04
12.0/99%
Speedup
23x 108x 997x 4100x 195x 505x 90x
12300x44x 4x
18x 207x 1350x 118x 12x 15x
5075x 16x
Table 4: Scalability benchmarking for the examples: Robot and Truck_1.
Truck_1:|¯
U|=51,|¯
X|=229327 Robot:|¯
U|=77,|¯
X|=1364889
CPU1CPU2GPU1GPU2PGA1PGA2MIX1MIX2CLS1CPU1CPU2GPU1GPU2GPU3PGA1MIX1MIX2CLS1
SCOTS
249
191
N/A N/A N/A N/A N/A
N/A N/A
4423
3949
N/A N/A N/A N/A N/A
N/A N/A
pFaces/GBFP 7.2 1.7
0.462 0.153 1.05 0.84
2.0
0.006 1.4/97% 154
97 8.3
1.85 13.2 147 136 0.309 96.2/96%
Speedup
26x 112x 413x 1249x 182x 227x 95x
31850x136x
25x
40x
475x 2134x 299x 26x 29x
12779x41x
to solve the problem and its percentage consumed by the network
communication overhead. We recommend using clusters only for
large problems where the FP computation time is expected to be
much longer than the communication overhead.
We only compare with the tool
SCOTS
since it implements, ex-
actly, the serial Algorithms 1 and 3. Nevertheless,
pFaces
/
GBFP
outperforms the tools reported in Section 1.1. For example, in [
5
], a
dierent technique is used and the example
DCDC
was reported to
take 0.36 seconds, which is clearly outperformed by
pFaces
/
GBFP
as number of PE increases. Other tools reported in Section 1.1 are
yet outperformed by
SCOTS
or the tool in [
5
]. Therefore, we do not
compare pFaces with them.
6 CONCLUSIONS AND FUTURE WORK
A software ecosystem is proposed to facilitate prototyping par-
allel algorithms serving research areas like symbolic control and
reachability analysis. A traditional symbolic control technique is re-
designed as a data-parallel task that scales with number of PEs help-
ing to tackle computational complexities. The kernel
pFaces
/
GBFP
scales very well but consumes lots of memory.
pFaces
/
GBFPm
is
memory-ecient but slower due to repeated computations. Fu-
ture work will focus on designing distributed data-structures that
balance between memory size and fast write/query time.
ACKNOWLEDGMENTS
We gratefully acknowledge the support of
Intel
,
Xilinx
,
NVIDIA
,
and
Amazon
corporations. The conguration
GPU1
was donated by
NVIDIA
Corporation. The conguration
PGA1
was donated by
Intel
Corporation. A paid access to Amazon-AWS for testing the tool on
an EC2-F1 instance was provided by
Xilinx
Corporation. The tests
on the HW congurations
GPU2
,
MIX2
and
CLS1
in Amazon-AWS
were provided through a grant from Amazon.
REFERENCES
[1]
K. Hsu, R. Majumdar, K. Mallik, and A. K. Schmuck. 2018. Multi-Layered
Abstraction-Based Controller Synthesis for Continuous-Time Systems. In Pro-
ceedings of the 21st International Conference on Hybrid Systems: Computation
and Control (Part of CPS Week) (HSCC ’18). ACM, New York, NY, USA, 120–129.
https://doi.org/10.1145/3178126.3178143
[2]
L. Kalms and D. Göhringer. 2017. Exploration of OpenCL for FPGAs using
SDAccel and comparison to GPUs and multicore CPUs. In 2017 27th International
Conference on Field Programmable Logic and Applications (FPL). IEEE, USA, 1–4.
https://doi.org/10.23919/FPL.2017.8056847
[3]
M. Khaled. 2017. BDD2Implement: A Code Generation Tool for Symbolic Con-
trollers. https://gitlab.lrz.de/hcs/BDD2Implement
[4]
M. Khaled, M. Rungger, and M. Zamani. June 2018. SENSE: Abstraction-Based
Synthesis of Networked Control Systems. In Electronic Proceedings in Theoretical
Computer Science (EPTCS), 272. Open Publishing Association (OPA), 111 Cooper
Street, Waterloo, Australia, 65–78. https://doi.org/10.4204/EPTCS.272.6
[5]
Y. Li and J. Liu. 2018. ROCS: A Robustly Complete Control Synthesis Tool for
Nonlinear Dynamical Systems. In Proceedings of the 21st International Conference
on Hybrid Systems: Computation and Control (Part of CPS Week) (HSCC ’18). ACM,
New York, NY, USA, 130–135. https://doi.org/10.1145/3178126.3178153
[6]
O. Maler, A. Pnueli, and J. Sifakis. 1995. On the synthesis of discrete controllers
for timed systems. In 12th Annual Symposium on Theoretical Aspects of Computer
Science (STACS 95), E. W. Mayr and C. Puech (Eds.). Springer Berlin Heidelberg,
Berlin, Heidelberg, 229–242. https://doi.org/10.1007/3- 540-59042-0_76
[7]
M. Mazo, A. Davitian, and P. Tabuada. 2010. PESSOA: A Tool for Embedded
Controller Synthesis. In Computer Aided Verication, Tayssir Touili, Byron Cook,
and Paul Jackson (Eds.). Springer Berlin Heidelberg, Berlin, Heidelberg, 566–569.
https://doi.org/10.1007/978-3- 642-14295- 6_49
[8]
S. Mouelhi, A. Girard, and G. Gössler. 2013. CoSyMA: A Tool for Controller
Synthesis Using Multi-scale Abstractions. In Proceedings of 16th International
Conference on Hybrid Systems: Computation and Control (HSCC ’13). ACM, New
York, NY, USA, 83–88. https://doi.org/10.1145/2461328.2461343
[9]
G. Reissig, A. Weber, and M. Rungger. April 2017. Feedback Renement Relations
for the Synthesis of Symbolic Controllers. IEEE Trans. Automat. Control 62, 4
(April 2017), 1781–1796. https://doi.org/10.1109/TAC.2016.2593947
[10]
M. Rungger, M. Mazo, Jr., and P. Tabuada. 2013. Specication-guided Controller
Synthesis for Linear Systems and Safe Linear-time Temporal Logic. In 16th In-
ternational Conference on Hybrid Systems: Computation and Control (HSCC ’13).
ACM, New York, NY, USA, 333–342. https://doi.org/10.1145/2461328.2461378
[11]
M. Rungger and M. Zamani. 2016. SCOTS: A Tool for the Synthesis of Symbolic
Controllers. In Proceedings of the 19th International Conference on Hybrid Systems:
Computation and Control (HSCC ’16). ACM, New York, NY, USA, 99–104. https:
//doi.org/10.1145/2883817.2883834
[12]
P. Tabuada. 2009. Verication and control of hybrid systems, A symbolic approach.
Springer, USA. https://doi.org/10.1007/978- 1-4419-0224- 5
[13]
T. Wongpiromsarn, U. Topcu, N. Ozay, H. Xu, and R. M. Murray. 2011. TuLiP:
A Software Toolbox for Receding Horizon Temporal Logic Planning. In 14th
International Conference on Hybrid Systems: Computation and Control (HSCC ’11).
ACM, New York, NY, USA, 313–314. https://doi.org/10.1145/1967701.1967747
[14]
M. Zamani, G. Pola, M. Mazo Jr., and P. Tabuada. 2012. Symbolic Models for
Nonlinear Control Systems Without Stability Assumptions. IEEE Trans. Automat.
Control 57, 7 (July 2012), 1804–1809. https://doi.org/10.1109/TAC.2011.2176409
... Existing approaches tackling the outlined integrated controller synthesis problem, can roughly be divided into three different research lines. First, discretization-based abstraction techniques can be used to incorporate low-level dynamics into the highlevel strategy synthesis games (see e.g., [1,12] for an overview and [13,14,15,16,17] for tool support). These approaches are able to handle the full problem class we tackle, but are known to suffer heavily from the curse of dimensionality and from conservatism introduced by the abstraction. ...
... Then x ∈ X win as in (16) and p as in Definition 13 solve Problem 1. ...
Preprint
We consider the problem of automatically synthesizing a hybrid controller for non-linear dynamical systems which ensures that the closed-loop fulfills an arbitrary \emph{Linear Temporal Logic} specification. Moreover, the specification may take into account logical context switches induced by an external environment or the system itself. Finally, we want to avoid classical brute-force time- and space-discretization for scalability. We achieve these goals by a novel two-layer strategy synthesis approach, where the controller generated in the lower layer provides invariant sets and basins of attraction, which are exploited at the upper logical layer in an abstract way. In order to achieve this, we provide new techniques for both the upper- and lower-level synthesis. Our new methodology allows to leverage both the computing power of state space control techniques and the intelligence of finite game solving for complex specifications, in a scalable way.
... The controlled system Σ|C |ù ϕ, where ϕ :" Ψ^Φ is the combination of local and global specifications. Many toolboxes are available for symbolic controller synthesis, for example, [24], [25], [26] and [27]. For scalability, we first synthesize a controller that satisfies the local specification ψ i for the i th local symbolic model (i th agent) with Ψ " Ź iPI ψ i and enforce global safety specification Φ on the composed symbolic model with the notion of control barrier functions, discussed in the next section. ...
Preprint
Full-text available
In this paper, we propose a computationally efficient symbolic controller synthesis technique for multi-agent systems. The paper focuses on synthesizing distributed controllers enforcing local temporal logic specifications along with global safety specifications for multi-agent systems. To solve the problem in a computationally efficient way we leverage the concept of control barrier functions. In particular, we use a three-step bottom-up approach: first, the symbolic controllers for individual agents are synthesized to enforce local temporal logic specifications, then we use a notion of control barrier functions for symbolic models to compose controlled agent systems by removing unsafe transitions, and finally, we synthesize controller for the reduced composed system to ensure the satisfaction of local temporal logic specifications while ensuring global safety specification. The effectiveness of our approach is demonstrated on a multi-robot system by comparing it with the conventional monolithic symbolic control approach.
... Unfortunately, the majority of current techniques assume control systems with full-state or quantized-state information and, hence, they are not applicable to control systems with outputs or partially-observable states. Moreover, none of state-of-the-art tools of symbolic controller synthesis [11]- [13] support output-feedback systems since the required theories for them are not yet fully established. ...
Article
Full-text available
Symbolic control is an abstraction-based controller synthesis approach that provides, algorithmically, certifiable-by-construction controllers for cyber-physical systems. Symbolic control approaches usually assume that full-state information is available which is not suitable for many real-world applications with partially-observable states or output information. This article introduces a framework for output-feedback symbolic control. We propose relations between original systems and their symbolic models based on outputs. They enable designing symbolic controllers and refining them to enforce complex requirements on original systems. We provide an example methodology to synthesize and refine output-feedback symbolic controllers.
... Over the past few years, several software tools (e.g., DESUMA Ricker, Lafortune, & Genc, 2006, SUPREMICA Akesson, Fabian, Flordal, & Malik, 2006, and TCT Feng & Wonham, 2006 have been developed for the analysis of DES modeled as finite automata, which are shown to be useful in the verification or synthesis of opacity properties for finite systems. Our prior research has produced software tools including SCOTS (Rungger & Zamani, 2016b), pFaces (Khaled & Zamani, 2019), OmegaThreads (Khaled & Zamani, 2021), DPDebugger (Tizpaz-Niari, Cerny, Chang, & Trivedi, 2018) and Schmit (Tizpaz-Niari et al., 2019), which provides formal, automated abstractions of complex CPS and of reactive synthesis. There is a great need to develop efficient toolboxes and proof-of-concept benchmarks to evaluate the practical feasibility of the foundations and algorithms developed for abstracting, analyzing, or enforcing security properties over complex CPS. ...
Article
Correct-by-construction synthesis is a cornerstone of the confluence of formal methods and control theory towards designing safety-critical systems. Instead of following the time-tested, albeit laborious (re)design-verify-validate loop, correct-by-construction methodology advocates the use of continual refinements of formal requirements – connected by chains of formal proofs – to build a system that assures the correctness by design. A remarkable progress has been made in scaling the scope of applicability of correct-by-construction synthesis – with a focus on cyber-physical systems that tie discrete-event control with continuous environment – to enlarge control systems by combining symbolic approaches with principled state-space reduction techniques. Unfortunately, in the security-critical control systems, the security properties are verified ex post facto the design process in a way that undermines the correct-by-construction paradigm. We posit that, to truly realize the dream of correct-by-construction synthesis for security-critical systems, security considerations must take center-stage with the safety considerations. Moreover, catalyzed by the recent progress on the opacity sub-classes of security properties and the notion of hyperproperties capable of combining security with safety properties, we believe that the time is ripe for the research community to holistically target the challenge of secure-by-construction synthesis. This paper details our vision by highlighting the recent progress and open challenges that may serve as bricks for providing a solid foundation for secure-by-construction synthesis of cyber-physical systems.
... Over the past few years, several software tools (e.g., DESUMA [159], SUPREMICA [3], and TCT [50]) have been developed for the analysis of DES modeled as finite automata, which are shown to be useful in the verification or synthesis of opacity properties for finite systems. Our prior research has produced software tools including SCOTS [161], pFaces [88], OmegaThreads [89], DPDebugger [193] and Schmit [194], which provides formal, automated abstractions of complex CPS and of reactive synthesis. There is a great need to develop efficient toolboxs and proof-of-concept benchmarks to evaluate the practical feasibility of the foundations and algorithms developed for abstracting, analyzing, or enforcing security properties over complex CPS. ...
Preprint
Full-text available
Correct-by-construction synthesis is a cornerstone of the confluence of formal methods and control theory towards designing safety-critical systems. Instead of following the time-tested, albeit laborious (re)design-verify-validate loop, correct-by-construction methodology advocates the use of continual refinements of formal requirements -- connected by chains of formal proofs -- to build a system that assures the correctness by design. A remarkable progress has been made in scaling the scope of applicability of correct-by-construction synthesis -- with a focus on cyber-physical systems that tie discrete-event control with continuous environment -- to enlarge control systems by combining symbolic approaches with principled state-space reduction techniques. Unfortunately, in the security-critical control systems, the security properties are verified ex post facto the design process in a way that undermines the correct-by-construction paradigm. We posit that, to truly realize the dream of correct-by-construction synthesis for security-critical systems, security considerations must take center-stage with the safety considerations. Moreover, catalyzed by the recent progress on the opacity sub-classes of security properties and the notion of hyperproperties capable of combining security with safety properties, we believe that the time is ripe for the research community to holistically target the challenge of secure-by-construction synthesis. This paper details our vision by highlighting the recent progress and open challenges that may serve as bricks for providing a solid foundation for secure-by-construction synthesis of cyber-physical systems.
Chapter
Full-text available
We introduce an approach for designing foolproof control software for Cyber-Physical Systems (CPS) by using formal descriptions of the design requirements and, at the same time, automating the development and deployment phases. Symbolic Control is first introduced as an approach for automated synthesis of controllers for CPS in which finite abstractions of CPS are constructed and then controllers are algorithmically synthesized for them. We then identify some issues with symbolic control that hinder applying it to real-world CPS. More specifically, the following issues are considered: (1) the computational complexity of symbolic control algorithms that increases exponentially with the size of systems, (2) the lack of support for practical specifications in current state-of-the-art tools, and (3) the absence of formal deployments of the synthesized controllers. Then, we introduce parallel scalable algorithms of symbolic control and show that they lead to significant reductions in the computational complexity allowing for real-time online implementations. An approach that allows symbolic control to handle more complex and practical design requirements given as Linear Temporal Logic (LTL) formulae or as automata on infinite strings is also presented. Finally, we introduce formal representations of the designed symbolic controllers and an automated approach for their deployments using code-generation.
Article
Stochastic hybrid systems have received significant attentions as a relevant modeling framework describing many systems, from engineering to the life sciences: they enable the study of numerous applications, including transportation networks, biological systems and chemical reaction networks, smart energy and power grids, and beyond. Automated verification and policy synthesis for stochastic hybrid systems can be inherently challenging: this is due to the heterogeneity of their dynamics (presence of continuous and discrete components), the presence of uncertainty, and in some applications the large dimension of state and input sets. Over the past few years, a few hundred articles have investigated these models, and developed diverse and powerful approaches to mitigate difficulties encountered in the analysis and synthesis of such complex stochastic systems. In this survey, we overview the most recent results in the literature and discuss different approaches, including (in)finite abstractions, verification and synthesis for temporal logic specifications, stochastic similarity relations, (control) barrier certificates, compositional techniques, and a selection of results on continuous-time stochastic systems; we finally survey recently developed software tools that implement the discussed approaches. Throughout the manuscript we discuss a few open topics to be considered as potential future research directions: we hope that this survey will guide younger researchers through a comprehensive understanding of the various challenges, tools, and solutions in this enticing and rich scientific area.
Article
In this paper, we provide a lazy control synthesis algorithm for monotone transition systems and directed safety specifications. Two classes of monotone transition systems are presented: state monotone transition systems and input-state monotone transition systems. For the first class of systems, a partial order is defined only on the state space. For the second, the input space is ordered as well. The introduced lazy synthesis approach is based on the efficient computation of predecessors. It benefits not only from a monotone property of transition systems but also from the ordered structure of the state (input) space and the fact that directed safety specifications are considered. To enrich the class of the considered specifications, we also present an incremental controller synthesis framework, which allows us to deal with intersections of upper and lower-closed safety requirements. We then compare the proposed approach with the classical safety synthesis algorithm and illustrate the advantages, in terms of run-time and memory efficiency, on an adaptive cruise control problem.
Article
This paper introduces ROCS 2.0, a control synthesis tool for nonlinear systems with control objectives given as temporal logic formulas. In addition to the basic invariance, reachability, Büchi, and co-Büchi specifications that can be handled in the previous version of ROCS, ROCS 2.0 provides a major upgrade to support the general class of linear temporal logic formulas that can be translated to deterministic Büchi automata. Moreover, ROCS 2.0 not only maintains and accelerates the kernel of its previous version—the engine based on the specification-guided control method—by more efficient implementation, but also integrates a second engine that implements the abstraction-based control method, which is optimized to gain time and memory efficiency. Such a feature gives the user the freedom to choose the control synthesis method that is more suitable for a specific control problem.
Article
Full-text available
While many studies and tools target the basic stabilizability problem of networked control systems (NCS), nowadays modern systems require more sophisticated objectives such as those expressed as formulae in linear temporal logic or as automata on infinite strings. One general technique to achieve this is based on so-called symbolic models, where complex systems are approximated by finite abstractions, and then, correct-by-construction controllers are automatically synthesized for them. We present tool SENSE for the construction of finite abstractions for NCS and the automated synthesis of controllers. Constructed controllers enforce complex specifications over plants in NCS by taking into account several non-idealities of the communication channels. Given a symbolic model of the plant and network parameters, SENSE can efficiently construct a symbolic model of the NCS, by employing operations on binary decision diagrams (BDDs). Then, it synthesizes symbolic controllers satisfying a class of specifications. It has interfaces for the simulation and the visualization of the resulting closed-loop systems using OMNETPP and MATLAB. Additionally, SENSE can generate ready-to-implement VHDL/Verilog or C/C++ codes from the synthesized controllers.
Article
Full-text available
We present an abstraction and refinement methodology for the automated controller synthesis to enforce general predefined specifications. The designed controllers require quantized (or symbolic) state information only and can be interfaced with the system via a static quantizer. Both features are particularly important with regard to any practical implementation of the designed controllers and, as we prove, are characterized by the existence of a feedback refinement relation between plant and abstraction. Feedback refinement relations are a novel concept of system relations introduced in this paper. Our work builds on a general notion of system with set-valued dynamics and possibly non-deterministic quantizers to permit the synthesis of controllers that robustly, and provably, enforce the specification in the presence of various types of uncertainties and disturbances. We identify a class of abstractions that is canonical in a well-defined sense, and provide a method to efficiently compute canonical abstractions of perturbed nonlinear sampled systems. We demonstrate the practicality of our approach on two examples -- a path planning problem for a mobile robot and an aircraft landing maneuver. --- This paper has received the 2019 George S Axelby Award of the IEEE Control Systems Society. ---
Conference Paper
This paper presents ROCS, an algorithmic control synthesis tool for nonlinear dynamical systems. Different from other formal control synthesis tools, it guarantees to generate a control strategy with respect to a robustly realizable specification for a nonlinear system. At the core of ROCS is the interval branch-and-bound scheme with a precision control parameter that reflects the robustness of the realizability of the specification. It also supports multiple variable precision control parameters to achieve higher efficiency.
Conference Paper
We present multi-layered abstraction-based controller synthesis, which extends standard abstraction-based controller synthesis (ABCS) algorithms for continuous-time control systems by simultaneously maintaining several "layers" of abstract systems with decreasing precision. The resulting abstract multi-layered controller uses the coarsest abstraction whenever this is feasible, and dynamically adjusts the precision---by moving to a more precise abstraction and back to a coarser abstraction---based on the structure of the given control problem. Abstract multi-layered controllers can be refined to controllers with non-uniform resolution using feedback refinement relations established between each abstract layer and the concrete system, resulting in a sound ABCS method. We provide multi-layered controller synthesis algorithms for reachability, safety, and generalized Büchi specifications; our approach can be generalized to any ω-regular objective. Our algorithms are complete relative to single-layered synthesis on the finest layer. We empirically demonstrate that multi-layered synthesis can outperform standard (single-layer) ABCS algorithms on a number of examples, despite the additional cost of constructing multiple abstract systems.
Conference Paper
We introduce SCOTS a software tool for the automatic controller synthesis for nonlinear control systems based on symbolic models, also known as discrete abstractions. The tool accepts a differential equation as the description of a nonlinear control system. It uses a Lipschitz type estimate on the right-hand-side of the differential equation together with a number of discretization parameters to compute a symbolic model that is related with the original control system via a feedback refinement relation. The tool supports the computation of minimal and maximal fixed points and thus natively provides algorithms to synthesize controllers with respect to invariance and reachability specifications. The atomic propositions, which are used to formulate the specifications, are allowed to be defined in terms of finite unions and intersections of polytopes as well as ellipsoids. While the main computations are done in C++, the tool contains a Matlab interface to simulate the closed loop system and to visualize the abstract state space together with the atomic propositions. We illustrate the performance of the tool with two examples from the literature. The tool and all conducted experiments are available at www.hcs.ei.tum.de.
Conference Paper
We introduce CoSyMA, a tool for automatic controller synthesis for incrementally stable switched systems based on multi-scale discrete abstractions. The tool accepts a description of a switched system represented by a set of differential equations and the sampling parameters used to define an approximation of the state-space on which discrete abstractions are computed. The tool generates a controller - if it exists - for the system that enforces a given safety or time-bounded reachability specification. We illustrate by examples the synthesized controllers and the significant performance gains during their computation.
Conference Paper
In this paper we present and analyze a novel algorithm to synthesize controllers enforcing linear temporal logic specifications on discrete-time linear systems. The central step within this approach is the computation of the maximal controlled invariant set contained in a possibly non-convex safe set. Although it is known how to compute approximations of maximal controlled invariant sets, its exact computation remains an open problem. We provide an algorithm which computes a controlled invariant set that is guaranteed to be an under-approximation of the maximal controlled invariant set. Moreover, we guarantee that our approximation is at least as good as any invariant set whose distance to the boundary of the safe set is lower bounded. The proposed algorithm is founded on the notion of sets adapted to the dynamics and binary decision diagrams. Contrary to most controller synthesis schemes enforcing temporal logic specifications, we do not compute a discrete abstraction of the continuous dynamics. Instead, we abstract only the part of the continuous dynamics that is relevant for the computation of the maximal controlled invariant set. For this reason we call our approach specification guided. We describe the theoretical foundations and technical underpinnings of a preliminary implementation and report on several experiments including the synthesis of an automatic cruise controller. Our preliminary implementation handles up to five continuous dimensions and specifications containing up to 160 predicates defined as polytopes in about 30 minutes with less than 1 GB memory.
Book
Hybrid systems describe the interaction of software, modeled by finite-state systems such as finite-state machines, with the physical world, described by infinite-state systems such as differential equations. Verification and Control of Hybrid Systems provides a unique systematic exposition of several classes of hybrid systems, admitting symbolic models along with the relationships between them. The text outlines several key verification and control synthesis results for hybrid systems, guided by the concept of bisimulation, and illustrated by numerous examples. The book is divided into four parts: Part I presents basic concepts centered on a notion of system that is general enough to describe finite-state, infinite-state, and hybrid systems. Part II discusses the ways in which systems relate to other systems, such as behavioral inclusion/equivalence and simulation/bisimulation, using these relationships to study verification and control synthesis problems for finite-state systems. Part III draws inspiration from timed automata to present several classes of hybrid systems, with richer continuous dynamics, that can be related to finite-state symbolic systems. Once such relationships are established, verification and control synthesis problems for these hybrid systems can be immediately solved by resorting to the techniques described in Part II for finite-state systems. Part IV follows the same strategy by generalizing simulation/bisimulation relationships to approximate simulation/bisimulation relationships that can be used for a wider class of hybrid systems. This comprehensive treatment will appeal to researchers, engineers, computer scientists, and graduate students in the areas of formal methods, verification, model checking, and control and will undoubtedly inspire further study of the specialized literature. © Springer Science+Business Media, LLC 2009. All rights reserved.
Conference Paper
This paper describes TuLiP, a Python-based software toolbox for the synthesis of embedded control software that is provably correct with respect to an expressive subset of linear temporal logic (LTL) specifications. TuLiP combines routines for (1) finite state abstraction of control systems, (2) digital design synthesis from LTL specifications, and (3) receding horizon planning. The underlying digital design synthesis routine treats the environment as adversary; hence, the resulting controller is guaranteed to be correct for any admissible environment profile. TuLiP applies the receding horizon framework, allowing the synthesis problem to be broken into a set of smaller problems, and consequently alleviating the computational complexity of the synthesis procedure, while preserving the correctness guarantee.