.DESLib.SIMANLib.BookExamples.P3_4

Information

This model represents the behavior of a restaurant.

Clients arrive in groups of 2,3,4 or 5 persons. Depending on the size of the group, 1,2 or 3 tables have to be seized for them (each table holds 2 persons). If more than 5 groups are waiting for a table, additional groups do not enter to the restaurant.
After finishing the meal, the group leaves the table and has to wait to pay the bill to the cashier, before leaving the restaurant.

The open and close hours of the restaurant are controlled using the Door variable.

Simulation

The number of groups that did not entered the restaurant (lostParties) and the groups that entered are counted. Discrete-time statistics (DStats) are recorded for the number of groups waiting for the table and the cashier. Also, the utilization of the tables and the cashier is recorded using discrete-time statistics.
Results are written to the SIMANLIB_RESULTS.txt file, at the end of the simulation.


Generated at 2024-04-23T18:15:56Z by OpenModelicaOpenModelica 1.22.3 using GenerateDoc.mos