We will simulate a basic system where entities (customers) arrive at a resource (service counter), wait if it is busy, are served, and then leave. In this model:
- Arrivals: Customers arrive every 60 to 70 time units.
- Service: Service time at the counter ranges from 60 to 90 time units.
- Queues: If the counter is busy, customers wait.
- Departure: Customers take 10 time units to move into the queue and another 10 to leave after service.
For those familiar with classic GPSS, we would have:
GENERATE 60,10 ; Entities are generated every 60 to 70 time units. ADVANCE 10 ; Takes 10 time units to move into the counter queue. SEIZE VENTANILLA ; The entity arrives at the counter queue. ADVANCE 60,30 ; Service time: 60 to 90 time units. RELEASE VENTANILLA ; Leaves the counter. ADVANCE 10 ; Takes 10 time units to leave. TERMINATE 1 ; The entity finishes. START 100 ; Executes until 100 entities have been served.
In GPSS-Plus, it is very similar, but with graphical representation. To achieve this, we configure resources and additional parameters:
FACILITY {NAME:VENTANILLA, X:300, Y:300} ; Define the counter in space.
POSITION {NAME:SALIDA, X:500, Y:300} ; Define the exit in space.
GENERATE 60,10 {NAME:GEN1, X:100, Y:300} ; Position the entity generator.
ADVANCE 10 {TO:VENTANILLA} ; Move towards the counter.
SEIZE VENTANILLA ; Assignment of the "VENTANILLA" resource.
ADVANCE 60,30 ; Service time: 60 to 90 time units.
RELEASE VENTANILLA ; Release of the resource.
ADVANCE 10 {TO:SALIDA} ; Move towards the exit.
TERMINATE 1 ; The entity finishes.
START 100 ; Executes until 100 entities have been served.
Final step: Press Play and observe the result. The first entity will exit the "Generate" block between time 60 and 70.
As can be observed, the program has not changed much to add the graphical component. Basically, we have defined the spatial layout of the elements.