当前位置:网站首页>[Cellular Automata] Simulation of emergency evacuation of disaster personnel under social force factors based on cellular automata with matlab code attached
[Cellular Automata] Simulation of emergency evacuation of disaster personnel under social force factors based on cellular automata with matlab code attached
2022-08-09 01:03:00 【Matlab research studio】
1 Introduction
Analyzes the difficulties of personnel evacuation in emergency situations, proposes personnel evacuation strategies for emergency systems, and designs a CA-based personnel evacuation model. Through model simulation, the influence of relevant parameters in the model on the evacuation effect is analyzed.The field method in the personnel evacuation model is improved on the above. The simulation results show that the emergency evacuation simulation based on CA can well simulate the emergency evacuation behavior of people in the building and the development of emergency events. At the same time, the simulation method is intuitive and flexible.It provides a good research idea for emergency management research.
2 Emulation code
clear all;
close all
W = 0;
B = 1; %number booths
L = 1; %number lanes in highway before and after plaza
T = 1; % # hrs to simulate
global plazalength;
plazalength = 101;
plaza = create_plaza(B,L);
%======================================================
h = show_plaza(plaza,B,NaN); % %
%======================================================
entry_vector = create_entry(T,L);
waiting_time = 0;
output = 0;
for i = 1:T*1440
plaza = move_forward(plaza); %move cars forward
plaza = new_cars(plaza, entry_vector(i)); %allow new cars to enter
plaza = switch_lanes(plaza); %allow lane changes
waiting_time = waiting_time + compute_wait(plaza); %compute waiting time during timestep i
output = output + compute_output(plaza);
%=================================================
h = show_plaza(plaza,B,h); % %
drawnow
%pause(0.2)
%=================================================
plaza = clear_boundary(plaza);
plaza(1:20,1:40)=[-888];
plaza(1:20,60:101)=[-888];
plaza(21:50,1:45)=[-888];
plaza(21:50,55:101)=[-888];
plaza(60:101,1:45)=[-888];
plaza(60:101,55:101)=[-888];
end
show_plaza(plaza,B,h);
3 Run Results


4 References
[1]Bai Yang, Li Xingli, & Guo Fang. (2018). Simulation research on emergency evacuation of primary school students based on cellular automata. Journal of Taiyuan University of Science and Technology.
[2] Zhao Shuying, Su Guojun, He Yun, Xu Xinhe. Simulation Research of Emergency Evacuation System Based on Cellular Automata [J]. Small Microcomputer System, 2007, 28(12):5.
Blogger profile: Good at intelligent optimization algorithm, neural network prediction, signal processing, cellular automata, image processing, path planning, UAV and other fields of Matlab simulation, related matlab code questions can be communicated privately.
Some theories refer to online literature. If there is any infringement, contact the blogger to delete it.
边栏推荐
猜你喜欢

Mysql高级篇(逻辑架构和存储引擎)

ICMP差错报告报文数据字段

Transformer前言:self-attention与Multi-Headed Attention的详细理解

Bugs encountered in remote control projects

在Ubuntu/Linux环境下使用MySQL:解决com.mysql.jdbc.PacketTooBigException: Packet for query is too large的问题

安装wcf框架

全新Swagger3.0教程,OAS3快速配置指南,实现API接口文档自动化!

数学建模美赛题型分类

远程控制项目遇到的bug

任务六 特征衍生 案例分析
随机推荐
4-7 Matplotlib库 箱线图
在特征通道提升网络性能 --SENet网络详解
微信企业号开发之接收响应消息
任务五 处理连续型数据
微信企业号开发之获取AccessToken
【科研-学习-pytorch】1-框架特性和常见问题类型
Bugs encountered in remote control projects
浅谈自定义应用层协议与UDP的报文结构和注意事项
MySQL存储过程与函数
轻量化神经网络--MobileNet v3学习记录
千分位数字
Edge 提供了标签分组功能
RS&FSW测试脚本
Region Proposal Network(RPN)
Non-major graduates, five-faced Ali: Four rounds of technical + HR have already taken an offer
有相同字符串的查找
生成一系列随机字符串的文件
clickhouse 思维导图
WPF效果第一百九十四篇之伸缩面板
Unity3D小白学习日记(03):Unity3D 常用技巧整理(大量干货!)