フィルターのクリア

How to simulate train arrivals and track occupation at a station?

5 ビュー (過去 30 日間)
Iro
Iro 2015 年 4 月 21 日
編集済み: Sean de Wolski 2015 年 4 月 21 日
Hi!
I would like to show the occupation level of a railway station, given a timetable. As input, I have frequency of arrivals, dwell times, reserve times, turning times etc. As an output I would like to take a matrix M for each track, which will have two columns, one for time step, e.g. seconds, and the other the binary status of the track, e.g. 0 for free and 1 for occupied:
M=[1 0;
2 0;
3 0;
4 1;
5 1;
6 1;
7 1;
...
63 1;
64 0;
65 0
...];
Is there any (easy) way / function I can simulate these arrivals over time for 2-3 hours in a row, preferably without the need of a toolbox?
Thanks,
Iro

回答 (1 件)

Sean de Wolski
Sean de Wolski 2015 年 4 月 21 日
編集済み: Sean de Wolski 2015 年 4 月 21 日
This sounds like a really good application for SimEvents. SimEvents allows you to model all of these discrete events and to keep track of various statistics like occupation, number in the station etc.

カテゴリ

Help Center および File ExchangeDiscrete-Event Simulation についてさらに検索

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by