Vous êtes sur la page 1sur 25

GPSS WORLD STUDENT VERSION

Some Simple Applications

Some Continuous Simulation Languages

Advanced Continuous Simulation Language (ACSL):


Supports

textual or graphical model specification.

SimApp:
Simple

simulation of dynamic systems and control systems.


simulation toolbox and environment that supports Visual Basic. visually programmed block diagram language.

Simgua:
A

VisSim:
A

Some Discrete-Event Simulation Languages


GPSS AutoMod eM-Plant Rockwell Arena GASP SimPy SIMSCRIPT II.5 Simula Poses++ And many more.

Some Hybrid Simulation Languages

AnyLogic:

Multi-method simulation tool, which supports System dynamics, Discrete event simulation, Agent-based modeling. A software for discrete-event, continuous, and agentbased simulation.
An open-standard object-oriented language for modeling of complex physical systems. Simulates physical effects in different engineering domains (hydraulic, electronic, mechanical, thermal, etc.).

Simio:

Modelica:

Saber Simulator:

Intro. To GPSS

A discrete time simulation language,

Where a simulation clock advances in discrete steps.

A system is modelled as transactions (processes) that;


Enter the system and Are passed from one service (represented by blocks) to another.

Introduction To GPSS

General Purpose Simulation System (GPSS)


Can

be applied effectively and easily to a broad range of problems. Particularly well suited for problems such as a factory optimization.

There are many versions such as:

GPSS/360, GPSS II, GPSS III, Flow Simulator, GPSS K, GPSS V, GPSS/PC, GPSS World.

General Purpose Simulation System (GPSS)

Features a software package that is designed to simplify matters for the user. User translates his problem into a conceptual model, which is a block diagram.
Then GPSS software package: Processes this block diagram, Executes the simulation run, and Produces statistics.

Basic Blocks of GPSS


The basic structural element (statement) of the simulation language. A GPSS model is given by its block diagram. Some blocks:

GENERATE TERMINATE ASSIGN SEIZE RELEASE QUEUE DEPART ADVANCE START

Transaction

A process that represents the real-world system you are modeling.


Executed by moving from block to block. Each transaction in the model is contained in exactly one block, But one block may contain many transactions.

The Format of GPSS Computer Code

More About Generate Blocks

TERMINATE A

Destroys the active transaction.


A:

Termination Count decrement (optional).

The Termination Count of the simulation is set to 1 by a prior START Command. When the termination count reaches 0, the simulation ends
TERMINATE

; transaction ends TERMINATE 1 ; simulation ends

ADVANCE A,B

Delays the progress of a transactions for a specified amount of simulated time.


A:

The mean time increment. B: Half width of uniform distribution or function modifier used to generate random delay

ADVANCE 100 ADVANCE 100, 50

Using Facilities

GPSS provides the facility modeling concept to represent limited availability of a service.
A facility is a resource that can be used by only one transaction at a time. To request a facility transaction should enter in SEIZE block.

Once a transaction has entered the SEIZE block, it owns the facility and other transactions are not allowed to enter this block. This is called blocking.

Using Facilities

When a transaction no longer needs a facility,

It releases ownership of the facility, making it ready to be seized by other transactions.

The RELEASE block is used for this purpose.


SEIZE

A ; gets the ownership of A, where A is the name of Facility .... .... RELEASE A ; release the ownership of A

A sample Mechanic shop simulation (model)


GENERATE 300 200 ;create next customer SEIZE MECHANIC ; Own mechanic(resource) ADVANCE 200 50 ; Mechanic Takes some time RELEASE MECHANIC ;Release the resource TERMINATE 1 ;end simulation

Run Simulation

Steps are
Go

to Menu Command

Click

Create simulation Start the simulation with command start

A report window will be generated automatically showing various results

Report

Explanations: names and Blocks

Names

Name: barber,user assigned user Value: 1000, Numeric value assigned by system LABEL. Alphanumeric name of this Block if given one. LOC. Numerical position of this Block in the model. "Location". BLOCK TYPE. The GPSS Block name. ENTRY COUNT. The number of Transactions to enter this Block since the last RESET or CLEAR statement or since the last Translation. CURRENT COUNT. The number of Transactions in this Block at the end of the simulation. RETRY. The number of Transactions waiting for a specific condition depending on the state of thisBlock entity.

Blocks

Explanations: Facilities

ENTRIES. The number of times the Facility was seized or preempted. UTIL. The fraction of simulated time in the last measurement period that the Facility was owned. AVE. TIME. The average time of ownership by individual Transactions during the measurement period. AVAIL. The availability state of the Facility entity at the end of the simulation. 1 means available, 0 means unavailable. OWNER. The number of the Transaction

Continues

PEND. The number of Transactions waiting to preempt this Facility by entering "Interrupt Mode PREEMPT blocks. INTER. The number of Transactions currently preempted at this Facility. The count of Transactions on the interrupt chain. RETRY. The number of Transactions waiting for a specific condition depending on the state of this Facility entity. DELAY. The number of Transactions waiting to SEIZE the Facility. This chain also contains Transactions waiting to preempt the Facility in "Priority Mode" PREEMPT blocks.

Barber Shop simulation (simple)

GENERATE 300,100 QUEUE Barber SEIZE Barber DEPART Barber ADVANCE 400,200 RELEASE Barber barber. TERMINATE 1

;Create next customer. ;Begin queue time. ;Own or wait for barber. ;End queue time. ;Haircut takes a few minutes. ;Haircut done. Give up the ;Customer leaves.

Queue: Report analysis

QUEUE. Name or number of the Queue entity. MAX. The maximum content of the Queue entity during the measurement period. CONT. The current content of the Queue entity at the end of the simulation period. ENTRY. Entry count. The total count of Queue entries during the measurement period. ENTRY(0). "Zero entry" count. The total count of Queue entries with a 0 residence time.

AVE.CONT. The time weighted average of the Queue entity content during the measurement period. The space-time product divided by the time duration of the measurement period. AVE.TIME. The average time per unit of Queue content utilized during the measurement period. The space-time product divided by the total entry count. AVE.(-0). The average time per unit of Queue content utilized during the measurement period, adjusted for "zero entries". The space-time product divided by (the total entry count less the zero entry count). RETRY. The number of Transactions waiting for a specific condition depending on the state of this Queue entity.

Please, go and check these sites:

http://www.minutemansoftware.com/tutorial/tut orial_manual.htm this is for tutorial and different GPSS application program code crossbar.narod.ru/other/gpss_manual.pdf this is for manual downloads For downloads, GPSS WORLD student Version. http://www.minutemansoftware.com/
Total

size 5.60MB-with file name GPSS World Student Setup.msi

Vous aimerez peut-être aussi