GPSS/H Notes
Discrete-Event simulation Modeling is used to evaluate proposed new systems and proposed changes to existing systems when actual changes in the system would be impractical. In addition, the process of modeling a system gives us greater understanding of the modeled system.
Installing GPSSH
1) Put the student version of the disk in your disk drive.
2) From Windows Explorer (or FileManager) double-click on INSTALL.EXE
3) Press space to continue
4) Select Drive C
5) Accept directory \GPSSH as directory unless you understand enough to change this.
6) Have the proposed modifications to AUTOEXEC.BAT shown on your screen where you can ignore them.
7) In Windows explorer Options uncheck hide file extensions of registered programs.
Using GPSSH
At UVI on STT GPSSH is located in the directory J:\dosapps\gpssh. To get started
Command |
Comment |
Launch MS-DOS Prompt |
You’ll probably find this in the accessories area. |
J: |
At UVI switch to J drive. At home you will probably find GPSSH on the C: drive. |
CD \dosapps\gpssh |
At UVI change to gpssh directory. At home you will probably use \gpssh |
DIR |
Make sure that you’re in the right spot by looking for the GPSSH.EXE file, this command is optional. |
gpssh A:p1.gps |
Run the program using the source file p1.gps located on drive A. Substitute your file name for p1.gps |
Editing your Programs
You must use a text editor. Notepad can cause problems because it has a bad habit of adding a hidden .txt extension that gpssh doesn’t understand. Advanced Word processors can be used but you must, "SAVE AS" text. Most advanced word processors will not let you run the program until you have closed its window. Edit Pad is a good choice because it’s small, shows cursor position and doesn’t lock the file. Be sure to put commands in the proper column (usually commands start in column nine).
http://tucows.pdnt.com/adnload/dleditpad.htmlGeneral Notes
Basic Elements of GPSSH
Transactions |
|
Resources |
|
Blocks |
|
Program Commands
Command |
Comments |
1 2 3 |
|
COMMAND OPERAND COMMENT |
|
SIMULATE <Program> END |
Start and stop the code. Just put these in at the beginning and the end of your command. |
START A |
Number of Units to Create. When this number of units is terminated or the maximum number of generated items is created, the program ends. |
GENERATE A,B,C,D
TERMINATE A |
GENERATE A,B,C,D TERMINATE This command can be used to generate transactions or as "dummy code" to time a sequence. |
ADVANCE A,B |
Hold Transaction for Period of Time |
SEIZE Name <possible code ie advance> RELEASE Name |
Capture/Free a named facility. |
STORAGE S(Name),#/S(Name2),# ENTER Name <possible code ie advance> LEAVE Name |
Capture/Free one or more units of storage. Number of units is defined at the top. |
REALLOCATE COM,32720 |
Reallocates memory up to 32720 units. The default allocation is 10000 units. Try this command if your model is not running and your sure that you’re terminating all your transactions properly. |
QUEUE Name <possible code ie advance> DEPART Name |
Collect Statistics on a transaction flow. Most often used in the format. |
Printing Work