modelP3_4

Restaurant

Extends from DESLib.SIMANLib.SRC.Draft (Draft model for constructing new models).

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.

Components

TypeNameDefaultDescription
IntegerPSNumberIn (from Draft)
IntegerPSNumberOut (from Draft)
Booleaninit (from Draft)
RandomLib.Variates.Generatorg
RealpartySize
RealdelayV1
RealdelayV2
RealdelayV
Elements.AttributePartySizeAttr
Elements.VariableDoor
Elements.QueueTableQ
Elements.QueueCashierQ
Elements.CounterLostParties
Elements.EntityTypecustomer
Blocks.Createcreate
Elements.DStatNQTableQ
Elements.DStatNRTable
Elements.DStatNQcashierQ
Elements.DStatNRCashier
Blocks.Branchbranch
Blocks.BRulebRule
Blocks.BRulebRule1
Blocks.Assignassign
Blocks.Disposedispose
Blocks.Assignassign1
Blocks.Queuequeue
Blocks.Seizeseize
Blocks.Delaydelay
Blocks.Releaserelease
Elements.ResourceTable
Blocks.Countcount
Blocks.Disposedispose1
Blocks.Queuequeue1
Blocks.Seizeseize1
Blocks.Delaydelay2
Blocks.Releaserelease1
Blocks.Countcount1
Blocks.Disposedispose2
Elements.ResourceCashier
Elements.CounterServedParties