# Data-Driven-Safety-Preserving-Control-Architecture-for-Constrained-CPS
## Description
This repository contains the codes for "A Data-Driven Safety Preserving Control Architecture for Constrained Cyber-Physical Systems" by [Mehran Attar](https://scholar.google.com/citations?user=nnLTy-oAAAAJ&hl=en) and [Walter Lucia](https://users.encs.concordia.ca/~wlucia/index.html) which has been submitted to publish in IEEE Control Systems Letters (L-CSS) --> [Arxiv link](https://arxiv.org/abs/2312.00658)
## Abstracat
In this work, we propose a data-driven networked control architecture for unknown constrained linear cyber-physical systems subject to bounded disturbances capable of detecting and ensuring plant safety in the presence of cyber-attacks on the communication channels. To this end, first, by using data-driven forward reachability analysis, a passive anomaly detector that is local to the controller is designed to detect network attacks. Then, to ensure that intelligent and undetectable attacks will be detected before causing safety risks, a safety verification module, which is local to the plant, is designed based on an outer approximation of the one-step evolution set at each time step. This unit is in charge of activating the emergency controller whenever the control input is deemed unsafe or under the effect of cyber-attacks. Finally, an emergency controller is designed by exploiting a family of data-driven Robust One-Step Controllable (ROSC) Sets and dual-mode set-theoretic model predictive controller to safely confine the system into the closest robust control invariant region in a finite number of steps. Numerical simulations involving a two-tank water system is performed to clarify the proposed solution's capabilities.
## Running
1- Download [CORA release 2022](https://tumcps.github.io/CORA/) and [MPT3 release 2022](https://www.mpt3.org/)
2- Add CORA and MPT folder and subfolders to the Matlab (in this work, [MATLAB R2021-a](https://www.mathworks.com/products/new_products/release2021a.html) has been used) path.
3- Add the repo folder and subfolders to the Matlab path.
## Files Description
Two scenarios have been considered in this work.
### Scenario 1: Attack on the actuation channel
1- To simulate this scenario, please run "data_driven_architecture_attack_on_actuation.m"
### Scenario 2: Attack on the measurement channel
2- To simulate this scenario, please run "data_driven_architecture_attack_on_measurement.m"
#### Function Descriptions
- "compute_AB.m": computes all possible system matrices that are consistent with the data
- "computeRPI.m": computes a model-based RCI set based on the proposed method in **"Invariant approximations of the minimal robust positively invariant set", by Rakovic et al.
- "computing_ROSC_sets.m": computes the family of ROSC sets by considering a target set $\hat{\mathcal{T}}^0$
- "compute_intersec.m": computes the intersection of polyhedrons
- "data_driven_controller.m": computes the data-driven tracking controller for a constrained discrete-time linear system
- "data_driven_safety_guard.m": checks the safety of the plant using the received control
- "one_step_ctrl.m" computes the data-driven ST-MPC control commands.
- "poly_approx.m": computes a zonotopic inner approximation of a polyhedron
- "set_index.m": computes the set membership index of a state for the data-driven ROSC sets.
- "detector_data_driven.m": simulates the data-driven anomaly detector local to the tracking controller, which is in charge of detecting anomalies caused by FDI attacks
## Animated test
### Scenario 1: Attack on the actuation channel
1- please run "animated_test_S1.m"
### Scenario 2: Attack on the measurement channel
2- please run "animated_test_S2.m"
面向约束CPS的数据驱动安全保护控制体系结构附matlab代码.zip
版权申诉
13 浏览量
2023-12-13
16:32:20
上传
评论
收藏 7.71MB ZIP 举报
Matlab科研辅导帮
- 粉丝: 1w+
- 资源: 7483
最新资源
- 论文(最终)_20240430235101.pdf
- 基于python编写的Keras深度学习框架开发,利用卷积神经网络CNN,快速识别图片并进行分类
- 最全空间计量实证方法(空间杜宾模型和检验以及结果解释文档).txt
- 5uonly.apk
- 蓝桥杯Python组的历年真题
- 2023-04-06-项目笔记 - 第一百十九阶段 - 4.4.2.117全局变量的作用域-117 -2024.04.30
- 2023-04-06-项目笔记 - 第一百十九阶段 - 4.4.2.117全局变量的作用域-117 -2024.04.30
- 前端开发技术实验报告:内含4四实验&实验报告
- Highlight Plus v20.0.1
- 林周瑜-论文.docx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈