ProModel User Guide
ProModel User Guide
10/08
ProModel iii
User Guide
Table of Contents
Introduction ....................................................................................1
Appendix A ................................................................................577
Glossary ......................................................................................591
xviii
Bibliography ...............................................................................596
Index ...........................................................................................597
ProModel 1
User Guide
Introduction
This chapter will introduce you to the user guide, and provide information regarding assumptions this
guide makes. You may also find information on support and consulting services in this chapter.
Chapter 1 Chapter 5
Getting Started Building the Model: general elements
Welcomes you to ProModel and provides infor- Brings you face to face with basic modeling com-
mation on getting started with the model building ponents. Discussion revolves around the nuances
process. of creating and working with locations, entities,
path networks, resources, processing records,
Chapter 2 arrivals, shifts, costs, background graphics, and
more.
Installation and Registration
Provides step-by-step instructions on how to Chapter 6
install ProModel.
Building the Model: advanced ele-
ments
Chapter 3
Planning the Model Advanced elements ensure that the models you
create reflect the exact behavior of your system.
Introduces you to the theory behind simulation Contributing elements include attributes, vari-
modeling and gives an overview of model build- ables, arrays, spreadsheets, macros, run-time
ing procedure. This chapter outlines six steps to interfaces, subroutines, arrival cycles, table func-
help you plan and create a successful, valid
2
About the User Guide
tions, user-defined distributions, external files, Discussion focuses on names, reserved words,
and streams. numbers, strings, operators, and basic syntactical
structure, as well as operator precedence and
Chapter 7 numeric, Boolean, time, and string expressions.
Building the Logic
Chapter 12
Applying intelligence and decision-making capa-
bilities to your models makes them true to life.
Routing Rules
The logic builder helps you create and implement Provides syntax and examples for the rules you
logic for operations, routings, shifts, breaks, and will use to route between locations in the model.
more.
Chapter 13
Chapter 8 Logic Elements
Using Auxiliary Tools Introduces the different types of functions and
Auxiliary tools allow you to work with many statements available to use in building logic for
aspects of your model. You may create and mod- your model and identifies where you may use
ify graphics, search for expressions, or examine them.
which statistical distributions best suit your mod-
eling needs. Chapter 14
Statements and Functions
Chapter 9
Provides syntax and examples for the statements
Running the Model and functions you will use to apply intelligence
Running the model is the most exciting part of and decision-making capabilities to your model.
the modeling process. This chapter discusses the
various conditions under which you may run a Appendix A
model and how to ensure that the model contains
no logical errors. Presents a categorized list of all expressions,
statements, and functions with a table identifying
which fields evaluate at translation and which
Chapter 10 evaluate continuously.
Reports and Graphs
With the simulation complete, you are ready to Appendix B
examine the results from the model. Options
Gives instructions for the Classic Output Viewer
available include reports, graphs, spreadsheets,
and customized output templates.
Glossary
Chapter 11 Contains definitions and descriptions for many of
Language Elements and Expressions the terms and concepts common to simulation
and modeling.
Describes the basics of the language used to
define model objects and logic, as well as expres-
sions and the role they play in creating models.
ProModel 3
User Guide
Keyboard
The names of keys are displayed in capital letters.
For example, ESC refers to the Escape key and
CTRL refers to the Control key.
Keys are frequently specified in combinations or
in a sequence of keystrokes. For example,
CTRL + L means to hold down the CTRL key
while pressing L. When key commands are set
off by commas (e.g., ALT + N, R), press and
release each of these keys (or key combinations)
in the order listed. The term “arrow keys” refers
collectively to the ×, Ø, Õ, and Ö cursor keys.
Text
Specific text you are asked to type is shown in
bold type. For example, if you are directed to
type cd pmod, you would type the lowercase let-
ters “cd” followed by a space and the letters
“pmod.”
Place holders for things such as file names and
directories are shown in italics. For example, if
you are directed to type filename.mod, enter the
name of the file you wish to use (e.g.,
model_1.mod).
Logic
All ProModel reserved keywords are in upper-
case.
Syntax example:
Email [email protected]
Problem Description
When you contact technical support via email,
• Brief description of the problem you are
send your user profile and a description of the
experiencing.
problem you encountered.
• What you were doing when the problem
occurred.
• The exact wording of any messages that
appeared on your screen.
ProModel 5
User Guide
the model building scenario, which is cov- office at (801) 223-4600 and ask for the Pro-
ered in chapter 3: Planning the Model. If you Model Product Team.
are already familiar with modeling theory, or
just want to jump into model building, skip
to the next step.
4. ProModel incorporates an easy-to-use as
well as intuitive user interface. Chapter 4:
Modeling Environment will introduce you to
the menus and options you will use to build
your model.
5. Build your model. Chapters 5 and 6: Build-
ing the Model propel you into model build-
ing by describing the Build menu, which
gives you access to most of the tools needed
to build your model.
6. Refer to Chapter 7: Building the Logic dur-
ing the model building process to learn the
logical elements that will control your model
during simulation.
7. Run your model. See you model come to life
as its animation runs. Chapter 9: Running the
Model outlines the process of running a
model.
8. View, analyze, and display the data your
model collected during simulation. With this
information in hand you are ready to make
real-world decisions to achieve your model-
ing goals. Chapter 10: Reports and Graphs
describes the Output Viewer, which presents
you with your simulation’s data.
Training
Although the tutorial and documentation are both
self contained, first-time users are strongly
encouraged to seek formal training at some point
before embarking on a complex modeling
project. PROMODEL Corporation holds training
courses on a regular basis for beginning and
advanced users of PROMODEL simulation prod-
ucts. For details on course dates and times, or to
register for the course nearest you, call our main
ProModel 9
User Guide
F2) to open a dialog box for further definition of every statement and function, allowing you to
the particular element. define logic by simply filling in the blanks.
Dialog Boxes
Dialog boxes are used throughout ProModel for
selecting options. The Decision Rules dialog
shown below contains additional information
regarding a location.
or suffix to differentiate them from the same ele- more information on running models, see “Run-
ments of another sub-model. ning the Model” on page 337.
model. The example below shows a brief portion simulation, see “Reports and Graphs” on
of a trace window. page 363.
Simulation results may be presented in either tab-
ular or graphic format, including histograms, pie
charts, plots and bar graphs. Multiple output
results can even be compared on the same chart.
The example below shows a portion of a general
report for a model.
Viewing Output
The output generator gathers statistics on each
location, entity, resource, path network, and vari-
able in the system. You may, however, turn off
reporting capability for any element you do not
wish to include. The default level of statistics is
at the summary level (i.e., average values, % val-
ues, and final values), although detailed history
plots can be gathered on such things as utiliza-
tion, queue fluctuations, and variable values. For
more information about viewing the results of a
ProModel 13
User Guide
Utilization Graphs
Quickly generate utilization graphs of various
types such as the State Chart shown below.
Timeplots
In addition to Category and State Charts, Time-
plot Charts, which show variable values as they
change over time, can be created.
14 Chapter 1:
Using ProModel
ProModel 15
User Guide
Recommended
How to install ProModel:
Core 2 Duo or better
2 GB RAM
1. Start Windows.
256 MB Video Card (1280 x 1024 x 32 bit color)
SVGA Monitor (1280 x 1024 x 32 bit color) 2. Insert the CD-ROM.
1 GB free disk space, CD ROM 3. Select the language that you would like to use dur-
Speakers ing the installation. By choosing a specific language,
Internet access you are also choosing to install language-specific demo
Mouse models and other files.
Windows Vista, XP
16 Chapter 2:
Installation Procedure for a Stand-alone PC
4. The ProModel Setup program will open automati- drive space permits, it is recommended that you allow
cally, and display the following window. the Setup program to backup previous files. When you
are ready to continue with the installation, click Next.
10. The Setup program is now ready to install Pro-
Model on your computer. If you wish to make changes
to the options you have previously selected, click the
Back button to return to any point in the installation
you wish. Otherwise, click Next to allow the Setup
program to install ProModel.
Installation Procedure for nets, see “Find a License Key Server on a Routed
Network” on page 21.
Network Version
In a multi-user environment, license tracking
with multiple keys is difficult. To combat this,
Set Up Network License Server
PROMODEL Corporation offers a network ver-
sion of ProModel that allows a single machine to The license server consists of the security key
control license usage (via a network connection) that plugs into the license server’s USB port, and
for several users. To use this method of license the license manager software. When installed, the
tracking, you must install a network version of license server responds to ProModel license
ProModel. The network version of ProModel requests and allows workstations to run either a
includes a hardware security key and the license full version (if sufficient licenses are available) or
manager software you will use to control license a limited run-time version.
usage at your site.
Install Program Files
Overview
When you install and run the network version of How to install program files:
ProModel, the workstation searches your net-
work for a license key server rather than check its 1. Start Windows.
own USB port for a security key. Once it locates 2. Insert the CD-ROM.
the license key server, the workstation asks the
3. The ProModel Setup program will open automati-
license manager software (running on the key
cally, and display the following window.
server) if a license is available. If a license is
available, the license manager software will
assign a license to the workstation. When you
exit ProModel, the license you used becomes
available to another user.
Check the support web page for periodic updates
to the installation information, software configu-
ration, and the license server software for Pro-
Model.
http://www.promodel.com/support
Please note
Please note
If you are running a network version of ProModel
on a routed network and your license key server
and workstations are located on different sub- If the Setup Program did not open automatically,
select Run... from the Windows Start menu. Type
x:\install.exe (where x is the CD-ROM drive let-
18 Chapter 2:
Installation Procedure for Network Version
ter) and press ENTER. The proper dialog will the 9. From the dialog that appears, choose the compo-
appear nents that you would like the Setup program to install.
It is recommended that you allow the Setup program to
install all components, hard drive space permitting.
When you have finished selecting your components,
4. Click Next to proceed with the installation click Next.
5. Review the License Agreement. If you wish to 10. Choose the destination directory for the install. If
accept the agreement and continue with the installa- you wish to change the destination from the default,
tion, , select the button to accept the agreement, and select the Browse button and choose a new directory.
then click Next. When you have chosen the destination directory, click
Next.
6. From the dialog that appears, select Network Pack-
age. The dialog will then appear as below: 11. The next dialog allows you to have the Setup pro-
gram create backups of any files that might be replaced
during the installation. This is helpful if you are install-
ing this version of the ProModel software on a com-
puter that already has ProModel installed on it. Later, if
you choose, you can have the installation rolled back
and the original files restored. If hard drive space per-
mits, it is recommended that you allow the Setup pro-
gram to backup previous files. When you are ready to
continue with the installation, click Next.
12. The Setup program will add a new Windows Pro-
gram group containing ProModel program icons to the
Program Manager. When you have selected where you
want the Program icons to appear, click Next.
13. The Setup program is now ready to install Pro-
7. Select Install program files, and click Next. Model on your computer. If you wish to make changes
8. Select the type of hardware key you are using on the to the options you have previously selected, click the
network server. If your license server is on a different Back button to return to any point in the installation
subnet, enter the IP address of the server. Click Next. you wish. Otherwise, click Next to allow the Setup
program to install ProModel.
1. Start Windows.
2. Insert the CD-ROM.
20 Chapter 2:
Installation Procedure for Network Version
6. From the dialog that appears, select Network Pack- You need to install the device driver only once.
age. The dialog will then appear as below: However, you must launch the license manager
program each time you reboot the key server
machine. To automatically start the license man-
ager each time you reboot the system, create and
place an icon for NHSRVW32.EXE in the work-
station’s startup folder.
When you have completed installing either you
local machine or server setup, and finished
installing the License Server, you are ready to run
ProModel.
The Setup program may require you to reboot You need to install the device driver only once.
your computer during the setup. If you do so, the However, you must launch the license manager
Setup program will automatically launch after the program each time you reboot the key server. To
reboot, and the installation will continue. automatically start the license manager each
ProModel 21
User Guide
time you reboot the system, create and place an NH_SERVER_ADDR=<Enter the license
icon for NHSRVW32.EXE in the workstation’s server’s IP address here>
startup folder.
[NH_TCPIP]
NH_TCPIP_METHOD=TCP
22 Chapter 2:
Registering ProModel
3. When the serial number has been successfully sent While waiting for a response from ProModel Support,
to the ProModel Corporation server, you will be given you may leave the Registration dialog open, or close it
a ProModel username and password. Record this infor- until you receive your response.
mation, since you will use it to obtain updates to Pro-
The reply you receive from ProModel Support will
Model in the future.
contain a License Key code. If you have closed Pro-
4. Check the “I have recorded this information for Model, relaunch it, and return to the Phone or Email
future use” box, and then click Exit to finish the regis- Registration window. In the “Step 2: Enter License
tration. Key” area, enter the License Key code that is in the
email reply from ProModel Support.
You may then click “Register” to complete the registra-
tion process.
How to Register without a Serial Num-
3. If you would like to register over the phone, call
ber ProModel Support at (888) PROMODEL. A ProModel
Support representative will guide you through the rest
1. If you do not have a serial number, or your serial of registration process.
number cannot be used due to Internet connectivity
issues, choose the “I do not have a Serial Number (or
registering with the serial number failed)” option, and
click Next. You will now have access to the full version of
ProModel.
If you choose not to register ProModel at this
time, click Cancel without entering registration
information. You will then have access to the lim-
ited, evaluation version of ProModel.
2. You may choose to email (this step) or phone (next Transferring/Terminating Your
step) ProModel Support to register your product. If you Software Key
would like to email ProModel Support, follow the
“Click to send registration request” link that is next to As you use ProModel it may become necessary to
the Email option. transfer your software key from one PC to
An email message will be composed using your com- another. Please contact ProModel Corporation
puter’s default email application, and you can then technical support if you would like to move or
choose to send it. terminate your software key.
24 Chapter 2:
Registering ProModel
Defining Objectives
With a basic understanding of the system opera-
tion and an awareness of the issues of concern or
interest, one or more objectives can be defined
for the study. Simulation should only be used if
an objective can be clearly stated and it is deter-
mined that simulation is the most suitable tool for
achieving the objective. Defining an objective
does not necessarily mean that there needs to be a
problem to solve. A perfectly valid objective may
be to see if there are, in fact, any unforeseen
problems. Common types of objectives for a sim-
ulation study include the following:
Procedure for Conducting a Simulation Study • Performance Analysis How well does the
While the requirements for each step vary from system perform under a given set of circum-
simulation to simulation, the basic procedure is stances in all measures of significance (utili-
essentially the same. The primary value of adopt- zation, throughput, waiting times, etc.)?
ing this systematic procedure, or one like it, is to
ProModel 27
User Guide
• Capacity Analysis What is the maximum intended for use by managers with little simula-
processing or production capacity of the sys- tion background and must be easy to use. Some
tem? models are used to make decisions of minor con-
• Capability Analysis Is the system capable of sequence. Other models are relied upon to make
meeting specific performance requirements major financial decisions.
(throughput, waiting times, etc.), and, if not,
Realizing the objectives of a simulation should
what changes (added resources or improved
consider both the purpose as well as the intended
methods) are recommended for making it
use of the model, the following questions should
capable?
be asked when defining the objectives of the
• Comparison Study How well does one sys- study:
tem configuration or design variation per-
form compared to another? • Why is the simulation being performed?
• Sensitivity Analysis Which decision vari- • Who will be using the model?
ables are the most influential on one or more • To whom will the results of the simulation be
performance measures, and how influential presented?
are they? • What information is expected from the
• Optimization Study What combination of model?
feasible values for a given set of decision • Is this a “throw-away” model?
variables best achieves desired performance • How important is the decision being made?
objectives?
• Decision/Response Analysis What are the Identifying Constraints
relationships between the values of one or
more decision variables and the system Equally as important as defining objectives is
response to those changes? identifying the constraints under which the study
• Constraint Analysis Where are the con- must be conducted. It does little good if simula-
straints or bottlenecks in the system and tion solves a problem if the time to do the simula-
what are workable solutions for either reduc- tion extends beyond the deadline for applying the
ing or eliminating those constraints? solution, or if the cost to find the solution exceeds
the benefit derived. Objectives need to be tem-
• Communication Effectiveness What vari-
ables and graphic representations can be pered by the constraints under which the project
must be performed such as the budget, deadlines,
used to most effectively depict the dynamic
resource availability, etc. It is not uncommon to
behavior or operation of the system?
begin a simulation project with aspirations of
Defining the objective should take into account developing an impressively detailed model or of
what the ultimate intended use of the model will creating a stunningly realistic animation only to
be. Some models are built as “throw-away” mod- scramble at the last minute, throwing together a
els to be used only once and then discarded. crude model that barely meets the deadline.
Other models are built to be used on an ongoing
basis for continued “what-if” analyses. Some Constraints should not always be viewed as an
models need only provide a quantitative answer. impediment. If no deadlines or other constraints
Others require realistic animation to convince a are established, there is a danger of getting too
skeptical customer. Some models are intended for involved and detailed in the simulation study and
use by only the analyst. Other models are run the risk of “paralysis from analysis.” The
28 Chapter 3:
Steps for Doing Simulation
scope of any project has a tendency to shrink or a particular activity has on achieving the objec-
expand to fill the time allotted. tives of the simulation. A common tendency is to
model the entire system, even when the problem
In identifying constraints, anything that could
area and all relevant variables are actually iso-
have a limiting effect on achieving the desired
lated within a smaller subsystem. If, for example,
objectives should be considered. Specific ques-
the objective is to find the number of operators
tions to ask when identifying constraints for a
required to meet a required production level for a
simulation study include the following:
machining cell, it is probably not necessary to
• What is the budget for doing the study? model what happens to parts after leaving the
• What is the deadline for making the deci- cell.
sion? The following figure illustrates how the scope of
• What are the skills of those doing the study? the model should be confined to only those activ-
• How accessible is the input data? ities whose interactions have a direct bearing on
• What computer(s) will be used for the study? the problem being studied. Upstream and down-
stream activities that do not impact the perfor-
Preparing a Simulation Specification mance measure of interest should be omitted
from the model. In the following figure, since the
With clearly defined objectives and constraints, output rate from activity A is predictable, it can
the simulation requirements can be specified. be modeled as simply an arrival rate to activity B.
Defining a specification for the simulation is Since activity E never constrains output from
essential to projecting the time and cost needed to activity D, it can also be ignored.
complete the study. It also guides the study and
helps set expectations by clarifying to others
exactly what the simulation will include or
exclude. A specification is especially important if
the simulation is being performed by an outside
consultant so that you will know exactly what
you are getting for your money. Aspects of the Confining the Scope to Impacting Activities
simulation project to be contained in the specifi-
cation include the following:
Level of Detail Project the level of detail defines
• Scope the depth or resolution of the model. At one
• Level of detail extreme, an entire factory can be modeled as a
• Degree of accuracy single “black box” operation with a random
• Type of experimentation activity time. At the other extreme, every detailed
• Form of results motion of a machine could be modeled with a
one-to-one correspondence depicting the entire
Each of these specification criteria will be dis-
machine operation.
cussed in the following pages.
Unlike the model scope which affects only the
Scope The scope refers to the breadth of the
size of the model, the level of detail affects model
model or how much of the system the model will
complexity as well as model size. Determining
encompass. Determining the scope of the model
the appropriate level of detail is an important
should be based on how much bearing or impact
decision. Too much detail makes it difficult and
ProModel 29
User Guide
time consuming to develop a valid model. Too gather data. It often has little impact, however, on
little detail may make the model too unrealistic the model building time since a model can be
by excluding critical variables. The following built with estimated values that can later be
figure illustrates how the time to develop a model replaced with more accurate values. Output pre-
is affected by the level of detail. It also highlights cision is often governed by the degree of accu-
the importance of including only enough detail to racy of the model.
meet the objectives of the study.
Type of Experimentation The number and nature
One to One
Correspondence
of the alternative solutions to be evaluated should
be planned from the outset in order to ensure that
adequate time is allotted. This decision is often
Minimum
Required influenced by the deadline constraints of the
study. Where alternatives with only slight differ-
Level of
Detail ences are to be evaluated, a base model can be
developed requiring only minor modifications to
model each alternative. If alternative configura-
Model Development Time tions are significantly different, it may require
nearly as much effort modeling each configura-
Effect of Level of Detail on Model Development tion as it does developing the initial model.
Time
For studies in which improvements to an existing
system are being considered, it is often helpful
and effective to model the current system as well
The level of detail is determined largely by the as the proposed system. The basic premise is that
degree of precision required in the output. If only you are not ready to make improvements to a sys-
a rough estimate is being sought, it may be suffi- tem until you understand how the current system
cient to model each activity by its time, rather operates. Information on the current system is
than specific details making up the activity. If, on easier to obtain than information on areas of
the other hand, details such as downtimes or change. Once a model of the current system is
move times have an appreciable effect on the out- built, it is often easier to visualize what changes
come of the model, they should be included. need to be made for the modified system. Both
Degree of Accuracy The degree of accuracy per- systems may even be modeled together in the
tains to the correctness of the data being used. same simulation and made to run side by side.
For some models or activities, the information During the final presentation of the results, being
need not be as accurate or exact as it does for oth- able to show both “as is” and “to be” versions of
ers. The required degree of accuracy is deter- the system effectively demonstrates the impact
mined by the objectives of the study. If the changes can have on system performance.
decision is important or a comparison is close, Form of Results The form in which the results
greater accuracy may be required. Accuracy are to be presented can significantly affect the
sometimes has to be sacrificed if reliable infor- time and effort involved in the simulation study.
mation is simply unavailable such as when mod- If detailed animation or an extensive report is
eling a completely new system. expected, the project can easily stretch on for
The required degree of accuracy can have a sig- several weeks after the experimental phase has
nificant impact on the time and effort required to been completed. Many times the only result
30 Chapter 3:
Steps for Doing Simulation
routine system performance may be safely important for the modeler to be constantly
ignored. thinking abstractly about the system opera-
tion in order to avoid getting too caught up in
• Distinguish between time and condition depen- the incidental details.
dent activities Time-dependent activities are
those that take a predictable amount of time • Separate input variables from response vari-
to complete, such as customer service. Con- ables Input variables in a model define how
dition-dependent activities can only be com- the system works (e.g., activity times, rout-
pleted when certain defined conditions ing sequences, etc.). Response variables
within the system are satisfied. Because con- describe how the system responds to a given
dition-dependent activities are uncontrolla- set of input variables (e.g., work-in-process,
ble, they are unpredictable. An example of a idle times, resource utilization, etc.). Input
condition-dependent activity might be the variables should be the focus of data gather-
approval of a loan application contingent ing since they are used to define the model.
upon a favorable credit check. Response variables, on the other hand, are
the output of a simulation. Consequently,
Many activities are partially time-dependent response variables should only be gathered
and partially condition-dependent. When later to help validate the model once it is
gathering data on these activities, it is impor- built and run.
tant to distinguish between the time actually
These guidelines should help ensure that the sys-
required to perform the activity and the time
tem is thought of in the proper light for simula-
spent waiting for resources to become avail-
tion purposes.
able or other conditions to be met before the
activity can be performed. If, for example, To help organize the process of gathering data for
historical data is used to determine repair defining the system, the following steps are rec-
times, the time spent doing the actual repair ommended:
work should be used without including the
• Determine data requirements.
time spent waiting for a repair person to
• Use appropriate data sources.
become available.
• Make assumptions where necessary.
• Convert data into a useful form.
• Focus on essence rather than substance A
system definition for modeling purposes • Document and approve the data.
should capture the key cause-and-effect rela- Each of these steps is explained on the following
tionships and ignore incidental details. Using pages.
this “black box” approach to system defini-
tion, we are not concerned about the nature Determining Data Requirements
of the activity being performed, but only the
impact that the activity has on the use of The first step in gathering system data is to deter-
resources and the delay of entity flow. For mine what data is required for building the
example, the actual operation performed on a model. This should be dictated primarily by the
machine is not important, but only how long scope and level of detail required to achieve the
the operation takes and what resources, if model objectives as described earlier. It is best to
any, are tied up during the operation. It is go from general to specific in gathering system
32 Chapter 3:
Steps for Doing Simulation
data. The initial focus should be on defining the 3. Besides route locations, what types of
overall process flow to provide a skeletal frame- resources (personnel, vehicles, equipment)
work for attaching more detailed information. are used in the system and how many units
Detailed information can then be added gradually are there of each type (resources used inter-
as it becomes available (e.g., resource require- changeably may be considered the same
ments, processing times, etc.). Starting with the type)?
overall process flow not only provides an orderly 4. What is the routing sequence for each entity
approach to data gathering, but also enables the type in the system?
model building process to get started which 5. What activity, if any, takes place for each
reduces the amount of time to build and debug entity at each route location (define in terms
the model later. Often, missing data becomes of time required, resources used, number of
more apparent as the model is being built. entities involved and any other decision
logic that takes place)?
In defining the basic flow of entities through the
6. Where, when and in what quantities do enti-
system, a flow diagram can be useful as a way of
ties enter the system (define the schedule,
documenting and visualizing the physical flow of
interarrival time, cyclic arrival pattern, or
entities from location to location. Once a flow
condition which initiates each arrival)?
diagram is made, a structured walk-through can
7. In what order do multiple entities depart
be conducted with those familiar with the opera-
from each location (First in, First out; Last
tion to ensure that the flow is correct and that
in, First out)?
nothing has been overlooked. The next step
8. In situations where an output entity could be
might be to define the detail of how entities move
routed to one of several alternative locations,
between locations and what resources are used
how is the routing decision made (e.g., most
for performing operations at each location. At
available capacity, first available location,
this point it is appropriate to identify location
probabilistic selection)?
capacities, move times, processing times, etc.
9. How do entities move from one location to
To direct data gathering efforts and ensure that the next (define in terms of time and
meetings with others, on whom you depend for resources required)?
model information, are productive, it may be use- 10. What triggers the movement of entities from
ful to prepare a specific list of questions that one location to another (i.e., available capac-
identify the data needed. A list of pertinent ques- ity at the next location, a request from the
tions to be answered might include the following: downstream location, an external condition)?
11. How do resources move from location to
1. What types of entities are processed in the
location to perform tasks (define either in
system and what attributes, if any, distin-
terms of speed and distance, or time)?
guish the way in which entities of the same
12. What do resources do when they finish per-
type are processed or routed?
forming a task and there are no other tasks
2. What are the route locations in the system
waiting (e.g., stay put, move somewhere
(include all places where processing or queu-
else)?
ing occurs, or where routing decisions are
13. In situations where multiple entities could be
made) and what are their capacities (i.e., how
waiting for the same location or resource
many entities can each location accommo-
when it becomes available, what method is
date or hold at one time)?
used for making an entity selection (e.g.,
ProModel 33
User Guide
really needs to be. A decision can then be made tion table. Defining a frequency distribution is
to firm up the assumptions or to leave them done by grouping the data into intervals and stat-
alone. If, for example, the degree of variation in a ing the frequency of occurrence for each particu-
particular activity time has little or no impact on lar interval. To illustrate how this is done, the
system performance, then a constant activity time following frequency table tabulates the number
may be used. Otherwise, it may be important to and frequency of observations for a particular
define the exact distribution for the activity time. activity requiring a certain range of time to per-
form.
Another approach in dealing with assumptions is
to run three different scenarios showing a “best-
Frequency Distributions of Delivery Times
case” using the most optimistic value, a “worst-
case” using the most pessimistic value, and a Delivery Number of Cumulative
Time (days) Observations Percentage Percentage
“most-likely-case” using a best-estimate value.
This will help determine the amount of risk you 0-1 25 16.5 16.5
want to take in assuming a particular value. 1-2 33 21.7 38.2
2-3 30 19.7 57.9
Converting Data to a Useful Form 3-4 22 14.5 72.4
Data is seldom in a form ready for use in a simu- 4-5 14 9.2 81.6
lation model. Usually, some analysis and conver- 5-6 10 6.6 88.2
sion needs to be performed for data to be useful 6-7 7 4.6 92.8
as an input parameter to the simulation. Random 7-8 5 3.3 96.1
phenomena must be fitted to some standard, theo- 8-9 4 2.6 98.7
retical distribution such as a normal or exponen-
9 - 10 2 1.3 100.0
tial distribution (Law and Kelton, 1991), or be
input as a frequency distribution. Activities may
need to be grouped together to simplify the Total Number of Observations = 152
description of the system operation. While there are rules that have been proposed for
determining the interval or cell size, the best
Distribution Fitting To define a distribution using
approach is to make sure that enough cells are
a theoretical distribution requires that the data, if
defined to show a gradual transition in values, yet
available, be fit to an appropriate distribution that
not so many cells that groupings become
best describes the variable. ProModel includes
obscured.
the Stat::Fit distribution fitting package which
assists in fitting sample data to a suitable theoret- Note in the last column of the frequency table
ical distribution. An alternative to using a stan- that the percentage for each interval may be
dard theoretical distribution is to summarize the expressed optionally as a cumulative percentage.
data in the form of a frequency distribution that This helps verify that all 100% of the possibilities
can be used directly in the model. A frequency are included.
distribution is sometimes referred to as an empir-
ical or user-defined distribution. When gathering samples from a static population,
one can apply descriptive statistics and draw rea-
Whether fitting data to a theoretical distribution, sonable inferences about the population. When
or using an empirical distribution, it is often use- gathering data from a dynamic and possibly time
ful to organize the data into a frequency distribu- varying system, however, one must be sensitive
ProModel 35
User Guide
to trends, patterns, and cycles that may occur times are not identified in the system description,
with time. The samples drawn may not actually a statement of explanation should be made
be homogenous samples and, therefore, unsuit- explaining why. Stating why certain factors are
able for applying simple descriptive techniques. being excluded from the system description will
help resolve later concerns that may question
Activity Grouping Another consideration in con-
why the factors were omitted.
verting data to a useful form is the way in which
activities are grouped for modeling purposes. Validating system data can be a time-consuming
Often it is helpful to group activities together so and difficult task, especially when many assump-
long as important detail is not sacrificed. This tions are made. In practice, data validation ends
makes models easier to define and more manage- up being more of a consensus or agreement that is
able to analyze. In grouping multiple activities obtained confirming that the information is good
into a single activity time for simplification, con- enough for the purposes of the model. While this
sideration needs to be given as to whether activi- approved data document provides the basis for
ties are performed in parallel or in series. If building the model, it often changes as model
activities are done in parallel or with any overlap, building and experimentation get under way.
the time during which overlapping occurs should
not be additive.
Step 3: Building the Model
Serial activities are always additive. For example,
if a series of activities is performed on an entity at Once sufficient information has been compiled to
a location, rather than specifying the time for define the basic system operation, the model
each activity, it may be possible to sum activity building activity can begin. While starting to
times and enter a single time or time distribution. build a model too early can be a wasted exercise,
waiting until all of the information is completely
gathered and validated may unnecessarily post-
Documenting and Approving the Data pone the building of the model. Getting the
When it is felt that all relevant information has model started before the data is completely gath-
been gathered and organized into a usable form, it ered may even help identify missing information
is advisable to document the information in the needed to proceed.
form of data tables, relational diagrams and
The goal of model building is to provide a valid
assumption lists. Sources of data should also be
representation of the defined system operation.
noted. This document should then be reviewed by
Additionally, the model must be able to provide
others who are in a position to evaluate the valid-
any other statistical or graphical representation
ity of the data and approve the assumptions
needed to satisfy the objectives of the study. A
made. This document will be helpful later if you
model is neither true nor false, but rather useful
need to make modifications to the model or look
or not useful. Once validated, a model is useful
at why the actual system ends up working differ-
when it provides the needed information to meet
ently than what was modeled.
the objectives of the simulation.
In addition to including those factors to be used
in the model, the data document should also Progressive Refinement
include those factors deliberately excluded from
the model because they are deemed to be either One nice feature of simulation is that models do
insignificant or irrelevant. If, for example, break not have to include all of the final detail before
36 Chapter 3:
Steps for Doing Simulation
they will run. This allows a progressive refine- tested and debugged before adding new sections
ment strategy to be used in which detail is added and makes a large task more manageable.
to the model in stages rather than all at once. Not
For unusually large models, it may be useful to
only do models get built and running quicker this
identify definable boundaries within a model to
way, but it also makes models easier to debug. In
permit model partitioning. Model partitioning is
the initial stages of a model, for example, attrac-
the process of subdividing a model into two or
tive graphics are not very useful and, since they
more modules that represent physically separate
are likely to be changed anyway, should not be
sections within the system. The purpose of model
added until later when preparing for the final
partitioning is to allow model sections to be built
model presentation.
and debugged, possibly even by separate individ-
The complexity of model building should never uals, independently of each other. Once sections
be underestimated and it is always better to begin are finished, they can be merged together to cre-
simple and add complexity rather than create an ate the overall model. This “divide-and-conquer”
entire complex model at once. It is also easier to method of model building can greatly reduce the
add detail to a model than it is to remove it from a time and difficulty in building and debugging
model. Building a model in stages enables bugs large models.
to be more readily identified and corrected.
Emphasizing the importance of applying progres- Model Verification
sive refinement to model building, Law and Kel-
ton (1991) have advised: Once a model is defined using a selected software
tool, the model must generally be debugged to
Although there are few firm rules on how one ensure that it works correctly. The process of
should go about the modeling process, one point demonstrating that a model works as intended is
on which most authors agree is that it is always a referred to in simulation literature as model veri-
good idea to start with a simple model which can fication. It is much easier to debug a model built
later be made more sophisticated if necessary. A in stages and with minimal detail than to debug a
model should contain only enough detail to cap- large and complex model. Eliminating bugs in a
ture the essence of the system for the purposes for program model can take a considerable amount
which the model is intended: it is not necessary to of time, especially if a general purpose program-
have a one-to-one correspondence between ele- ming language (e.g., C++) in which frequent cod-
ments of the model and elements of the system. A ing errors occur is used. Most simulation
model with excessive detail may be too expensive languages provide a trace capability in the form
to program and to execute. of audit trails, screen messages, graphic anima-
tion, or a combination of all three. A trace
Incremental Expansion enables the user to look inside of the simulation
to see if the simulation is performing the way it
In addition to adding complexity to a model in
should. Good simulation products provide inter-
stages, models that have a broad scope are some-
active debugging capability which further facili-
times easier to build in phases where additional
tates the debugging process. A thorough “walk-
sections are added incrementally to the model.
through” of the model input is always advisable.
This method of "eating the elephant one bite at a
time" allows a portion of the model to be built,
ProModel 37
User Guide
order to get an independent sample, the starting Answers to these questions will be determined
seed value for each random stream must be dif- largely by the following three factors:
ferent for each replication, ensuring that the ran-
1. The nature of the simulation (terminating or
dom numbers generated from replication to
nonterminating).
replication are independent.
2. The objective of the simulation (capacity
Depending on the degree of precision required in analysis, alternative comparisons, etc.).
the output, it may be desirable to determine a 3. The precision required (rough estimate ver-
confidence interval for the output. A confidence sus confidence interval estimates).
interval is a range within which we can have a
certain level of confidence that the true mean Terminating Versus
falls. For a given confidence level or probability,
Non-terminating Simulations
say .90 or 90%, a confidence interval for the
average utilization of a resource might be deter- As part of setting up the simulation experiment,
mined to be between 75.5 and 80.8%. We would one must decide what type of simulation to run.
then be able to say that there is a .90 probability Simulations are usually distinguished as being
that the true mean utilization of the modeled one of two types: terminating or non-terminating.
resource (not of the actual resource) lies between The difference between the two has to do with
75.5 and 80.8%. whether we are interested in the behavior of the
system over a particular period of time or in the
Fortunately, ProModel provides convenient facil- steady-state behavior of the system. It has noth-
ities for conducting experiments, running multi-
ing to do, necessarily, with whether the system
ple replications and automatically calculating itself terminates or is ongoing. The decision to
confidence intervals. The modeler must still perform a terminating or non-terminating simula-
decide, however, what types of experimentation
tion has less to do with the nature of the system
are appropriate. When conducting simulation
than it does with the behavior of interest.
experiments, the following questions should be
asked: A terminating simulation is one in which the sim-
ulation starts at a defined state or time and ends
• Am I interested in the steady state behavior
when it reaches some other defined state or time.
of the system or a specific period of opera-
An initial state might be the number of parts in
tion?
the system at the beginning of a work day. A ter-
• How can I eliminate start-up bias or getting minating state or event might be when a particu-
the right initial condition for the model? lar number of jobs have been completed.
• What is the best method for obtaining sam- Consider, for example, an aerospace manufac-
ple observations that may be used to estimate turer that receives an order to manufacture 200
the true expected behavior of the model? airplanes of a particular model. The company
• What is an appropriate run length for the might be interested in knowing how long it will
simulation? take to produce the aircraft along with existing
• How many replications should be made? workloads. The simulation run starts with the
• How many different random streams should system empty and is terminated when the 200th
be used? plane is completed since that covers the period of
• How should initial seed values be controlled interest. A point in time which would bring a ter-
from replication to replication? minating simulation to an end might be the clos-
ProModel 39
User Guide
ing of shop at the end of a business day, or the Running Terminating Simulations
completion of a weekly or monthly production
period. It may be known, for example, that a pro- Experiments involving terminating simulations
are usually conducted by making several simula-
duction schedule for a particular item changes
weekly. At the end of each 40 hour cycle, the sys- tion runs, or replications, of the period of interest
using a different random seed for each run. This
tem is “emptied” and a new production cycle
procedure enables statistically independent and
begins. In this situation, a terminating simulation
unbiased observations to be made on the system
would be run in which the simulation run length
response over the period simulated. Statistics are
would be 40 hours.
often gathered on performance measures for suc-
Terminating simulations are not intended to mea- cessive intervals of time during the period.
sure the steady-state behavior of a system. In a
terminating simulation, average measures are of For terminating simulations, we are usually inter-
little meaning. Since a terminating simulation ested in final production counts and changing
always contains transient periods that are part of patterns of behavior over time rather than the
the analysis, utilization figures have the most overall average behavior. It would be absurd, for
meaning if reported for successive time intervals example, to conclude that because two techni-
during the simulation. cians are busy only an average of 40% during the
day that only one technician is needed. This aver-
A non-terminating or steady-state simulation is age measure reveals nothing about the utilization
one in which the steady-state behavior of the sys- of the technicians during peak periods of the day.
tem is being analyzed. A non-terminating simula- A more detailed report of waiting times during
tion does not mean that the simulation never the entire work day may reveal that three techni-
ends, nor does it mean that the system being sim- cians are needed to handle peak periods, whereas
ulated has no eventual termination. It only means only one technician is necessary during off-peak
that the simulation could theoretically go on hours. In this regard, Hoover and Perry (1990)
indefinitely with no statistical change in behav- note:
ior. For non-terminating simulations, the modeler
must determine a suitable length of time to run It is often suggested in the simulation literature
the model. An example of a non-terminating sim- that an overall performance be accumulated over
the course of each replication of the simulation,
ulation is a model of a manufacturing operation
ignoring the behavior of the systems at intermedi-
in which oil filters are produced on a continual
basis at the same pace. The operation runs two ate points in the simulation. We believe this is too
shifts with an hour break during each shift in simple an approach to collecting statistics when
which everything momentarily stops. Break and simulating a terminating system. It reminds us of
third shift times are excluded from the model the statistician who had his head in the refrigera-
since work always continues exactly as it left off tor and feet in the oven, commenting that on the
before the break or end of shift. The length of the average he was quite comfortable.
simulation is determined by how long it takes to For terminating simulations, the three important
get a representative steady-state reading of the questions to answer in running the experiment
model behavior. are:
1. What should be the initial state of the model?
2. What is the terminating event or time?
3. How many replications will you make?
40 Chapter 3:
Steps for Doing Simulation
Many systems operate on a daily cycle, or, if a simulation progresses through N periods of a
pattern occurs over a weeks time, the cycle is simulation.
weekly. Some cycles may vary monthly or even
annually. Cycles need not be repeating to be con- Period Y
sidered a cycle. Airlines, for example, may be 1
interested in the start-up period of production
during the introduction of a new airport which is 2 Transient State
a one-time occurrence.
3
The number of replications should be determined
4
by the precision required for the output. If only a
rough estimate of performance is being sought, 5
three to five replications are sufficient. For Steady State
6
greater precision, more replications should be
made until a confidence interval with which you 7
feel comfortable is achieved.
8
it for us. Determining the run length for a steady- tional replications actually lead the opposite con-
state simulation is more difficult since the simu- clusion?
lation can be run indefinitely. The benefit of this,
Evaluating alternative configurations or operat-
however, is that we can produce good representa-
ing policies can sometimes be performed by com-
tive samples. Obviously, running extremely long
paring the average result of several replications.
simulations is impractical, so the issue is to deter-
Where outcomes are close or where the decision
mine an appropriate run length that ensures a suf-
requires greater precision, a method referred to as
ficiently representative sample of the steady-state
hypothesis testing should be used. In hypothesis
response of the system is taken.
testing, first a hypothesis is formulated (e.g., that
The recommended length of the simulation run methods A and B both result in the same through-
for a steady-state simulation is dependent upon put) and then a test is made to see whether the
(1) the interval between the least frequently results of the simulation lead us to reject the
occurring event and (2) the type of sampling hypothesis. The outcome of the simulation runs
method (replication or interval batching) used. If may cause us to reject the hypothesis that meth-
running independent replications, it is usually a ods A and B both result in equal throughput capa-
good idea to run the simulation enough times to bilities and conclude that the throughput does
let every type of event (including rare ones) hap- indeed depend on which method is used.
pen at least a few times if not several hundred.
Sometimes there may be insufficient evidence to
Remember, the longer the model is run, the more
reject the stated hypothesis and thus the analysis
confident you can become that the results repre-
proves to be inconclusive. This failure to obtain
sent a steady-state behavior. If collecting batch
sufficient evidence to reject the hypothesis may
mean observations, it is recommended that run
be due to the fact that there really is no difference
times be as large as possible to include at least
in performance, or it may be a result of the vari-
1000 occurrences of each type of event (Thesen
ance in the observed outcomes being too high
and Travis, 1992).
given the number of replications to be conclu-
sive. At this point, either additional (perhaps time
Comparing Alternative Systems consuming) replications may be run or one of
Simulations are often performed to compare two several variance reduction techniques might be
or more alternative designs. This comparison employed (see Law and Kelton, 1991).
may be based on one or more decision variables
such as buffer capacity, work schedule, resource Factorial Design
availability, etc. Comparing alternative designs
In simulation experiments we are often interested
requires careful analysis to ensure that differ-
in finding out how different input variable set-
ences being observed are attributable to actual
tings impact the response of the system. Rather
differences in performance and not to statistical
than run hundreds of experiments for every possi-
variation. This is where running multiple replica-
ble variable setting, experimental design tech-
tions may again be helpful. Suppose, for exam-
niques can be used as a “short-cut” to finding
ple, that method A for deploying resources yields
those input variables of greatest significance.
a throughput of 100 entities for a given time
Using experimental-design terminology, input
period while method B results in 110 entities for
variables are referred to as factors, and the output
the same time period. Is it valid to conclude that
measures are referred to as responses. Once the
method B is better than method A, or might addi-
ProModel 43
User Guide
response of interest has been identified and the number of combinations to test. In this type of
factors that are suspected of having an influence situation, a fractional-factorial design is used to
on this response defined, we can use a factorial strategically select a subset of combinations to
design method which prescribes how many runs test in order to “screen out” factors with little or
to make and what level or value to be used for no impact on system performance. With the
each factor. As in all simulation experiments, it is remaining reduced number of factors, more
still desirable to run multiple replications for each detailed experimentation such as a full-factorial
factor level and use confidence intervals to assess experiment can be conducted in a more manage-
the statistical significance of the results. able fashion.
One's natural inclination when experimenting After fractional-factorial experiments and even
with multiple factors is to test the impact that two-level full-factorial experiments have been
each individual factor has on system response. performed to identify the most significant factor
This is a simple and straightforward approach, level combinations, it is often desirable to con-
but it gives the experimenter no knowledge of duct more detailed experiments, perhaps over the
how factors interact with each other. It should be entire range of values, for those factors that have
obvious that experimenting with two or more fac- been identified as being the most significant. This
tors together can affect system response differ- provides more precise information for making
ently than experimenting with only one factor at a decisions regarding the best factor values or vari-
time and keeping all other factors the same. able settings for the system. For a more concise
explanation of the use of factorial design in simu-
One type of experiment that looks at the com-
lation experimentation see Law and Kelton
bined effect of multiple factors on system
(1991).
response is referred to as a two-level, full-facto-
rial design. In this type of experiment, we simply
define a high and low level setting for each factor Use of Random Streams
and, since it is a full-factorial experiment, we try One of the most valuable characteristics of simu-
every combination of factor settings. This means lation is the ability to reproduce and randomize
that if there are five factors and we are testing replications of a particular model. Simulation
two different levels for each factor, we would test allows probabilistic phenomena within a system
each of the 25 = 32 possible combinations of high to be controlled or randomized as desired for con-
and low factor levels. For factors that have no ducting controlled experiments. This control is
range of values from which a high and low can be made available through the use of random
chosen, the high and low levels are arbitrarily streams.
selected. For example, if one of the factors being
A stream is a sequence of independently cycling,
investigated is an operating policy for doing work
unique random numbers uniformly distributed
(e.g., first come, first served; or last come, last
between 0 and 1 (see the figure on next page).
served), we arbitrarily select one of the alterna-
Random number streams are used to generate
tive policies as the high level setting and a differ-
additional random numbers from other probabil-
ent one as the low level setting.
ity distributions (Normal, Beta, Gamma). After
For experiments in which a large number of fac- sequencing through all of the random numbers in
tors are being considered, a two-level full-facto- the cycle, the cycle starts over again with the
rial design would result in an extremely large same sequence. The length of the cycle before it
44 Chapter 3:
Steps for Doing Simulation
repeats is called the cycle period and is usually example, arrival distributions should generally
very long. have a random number stream used nowhere else
in the entire model. That way, activities added to
.52 a model that sample from a random number
stream will not inadvertently alter the arrival pat-
.80 .31 tern because they do not affect the sample values
generated from the arrival distribution.
To show an example of how multiple streams can
.07 .95 be useful, consider two copy machines, Copy1
and Copy2, which go down approximately every
4 hours for servicing. To model this, the fre-
.60
quency or time between failures is defined by a
.25 normal distribution with a mean value of 240
minutes and a standard deviation of 15 minutes,
.66 N(240,15). The time to repair is 10 minutes. If no
stream is specified in the normal distribution, the
Example of a Random Stream Cycle with a Very
same stream will be used to generate sample val-
Short Period
ues for both machines. So, if the next two num-
bers in the stream number are .21837 and .86469,
A random stream is generated using a random Copy1 will get a sample value from the normal
number generator or equation. The random num- distribution that is different from Copy2. There-
ber generator begins with an initial seed value fore, the two machines will go down at different
after which, each successive value uses the previ- times.
ous value as input to the generator. Each stream
used in a simulation has its own independent seed Suppose, however, that the resource servicing the
and tracks its own values for subsequent input to machines must service them both at the same
the generator. Where the sequence begins in the time, so we would like to have the machines go
cycle depends on the initial seed value used by down at the same time. Using the same stream to
determine both downtimes will not bring them
the generator.
down at the same time, because a different ran-
Any time a particular number seeds a stream, the dom number will be returned from the stream
same sequence of values will be repeated every with each call to generate a random normal vari-
time the same seed is used to initialize the stream. ate. Using two different streams, each dedicated
This means that various elements within a model to a machine's downtime and each having the
can be held constant with respect to their perfor- same initial seed, will ensure that both machines
mance while other elements vary freely. Simply go down at the same time every time. The two
specify one random number stream for one set of streams have the same starting seed value so they
activities and another random number stream for will produce exactly the same sequence of ran-
all other activities. dom numbers.
Because the same seed produces the same
sequence of values every time it is used, com-
pletely independent functions within a model
must have their own streams from the start. For
ProModel 45
User Guide
Step 5: Analyzing the Output only reports the symptomatic behavior of prob-
lems. Bottleneck activities, for example, are usu-
Output analysis deals with drawing inferences ally identified by looking for locations or queues
about the actual system based on the simulation that are nearly always full which feed into one or
output. When conducting simulation experi- more locations that are sometimes empty. Detect-
ments, extreme caution should be used when ing the source of the bottleneck is sometimes a
interpreting the simulation results. Since the bit trickier than identifying the bottleneck itself.
results of a simulation experiment are random Bottlenecks may be caused by excessive opera-
(given the probabilistic nature of the inputs), an tion times, prolonged delays due to the unavail-
accurate measurement of the statistical signifi- ability of resources, or an inordinate amount of
cance of the output is necessary. downtime. The ability to draw correct inferences
People doing simulation in academia are often from the results is essential to making system
accused of working with contrived and often improvements.
oversimplified assumptions, yet are extremely
careful about ensuring the statistical significance Step 6: Reporting the Results
of the model results. Simulation practitioners in
industry, on the other hand, are usually careful to The last step in the simulation procedure is to
obtain valid model data, only to ignore the statis- make recommendations for improvement in the
tical issues associated with simulation output. actual system based on the results of the simu-
Maintaining a proper balance between establish- lated model. These recommendations should be
ing model validation and establishing the statisti- supported and clearly presented so that an
cal significance of simulation output is an informed decision can be made. Documentation
important part of achieving useful results. of the data used, the model(s) developed and the
experiments performed should all be included as
The most valuable benefit from simulation is to part of a final simulation report.
gain insight, not necessarily to find absolute
answers. With this in mind, one should be careful A simulation has failed if it produces evidence to
about getting too pedantic about the precision of support a particular change which is not imple-
simulation output. With more than 60 combined mented; especially if it is economically justified.
years of experience in doing simulation model- The process of selling simulation results is
ing, Conway, Maxwell and Worona (1986) cau- largely a process of establishing the credibility of
tion that attaching a statistical significance to the model. It is not enough for the model to be
simulation output can create a delusion that the valid, the client or management must also be con-
output results are either more or less significant vinced of its validity if it is to be used as an aid in
than they really are. They emphasize the practi- decision making. Finally, the results must be pre-
cal, intuitive reading of simulation results. Their sented in terms that are easy to understand and
guideline is "If you can't see it with the naked evaluate. Reducing the results to economic fac-
eye, forget it." tors always produces a compelling case for mak-
ing changes to a system.
The goal of conducting experiments is not just to
find out how well a particular system operates, In presenting results it is important to be sensitive
but hopefully to gain enough insight to be able to to the way in which recommendations are made.
improve the system. Unfortunately, simulation It helps to find out whether recommendations are
output rarely identifies causes of problems, but being sought or whether a simple summary of the
46 Chapter 3:
Steps for Doing Simulation
results is wanted. It is generally wise to present • Overrunning budget and time constraints.
alternative solutions and their implications for • Failure to document and get a consensus on
system performance without suggesting one input data.
alternative over another, particularly when per- • Including more detail than is needed.
sonnel changes or cuts are involved. In fact, • Including variables that have little or no
where there may be careers on the line, it is best impact on system behavior.
to caution the decision maker that your simula- • Failure to verify and validate the model.
tion study looks only at the logistical aspects of
• Basing decisions on a single run observation.
the system and that it does not take into account
• Basing decisions on average statistics when
the potential reactions or potential difficulties
the output is actually cyclical.
employees may have in accepting a particular
• Being too technical and detailed in present-
solution.
ing the results to management.
Animation and output charts have become an
extremely useful aid in communicating the
results of a simulation study. This usually Summary
requires that some touch-up work be done to cre- A simulation project has distinct phases that must
ate the right effect in visualizing the model being be understood and followed in order to be suc-
simulated. In preparing the results, it is often nec- cessful. Simulation requires careful planning
essary to add a few touch-ups to the model (like a with realistic goals and expectations. Steps to
full dress-rehearsal) so the presentation effec- performing a simulation study include planning
tively and convincingly presents the results of the the study, defining the system, building the
simulation study. model, conducting experiments, analyzing the
After the presentation is finished and there is no output, and presenting the results. Systematically
further analysis to be conducted (the final presen- following these steps will help avoid the pitfalls
tation always seems to elicit further suggestions that frequently occur when conducting a simula-
for trying this or that with the model), the model tion study.
recommendations, if approved, are ready to be
implemented. If the simulation has been ade-
quately documented, it should provide a good
functional specification for the implementation
team.
Pitfalls in Simulation
If the steps that have been outlined are followed,
the chances of performing a successful simula-
tion project are very good. Typical reasons why
simulation projects fail include the following:
• Failure to state clear objectives at the outset.
• Failure to involve individuals affected by
outcome.
ProModel 47
User Guide
Defining Entities
Once all locations have been defined, we define
Often, importing a background graphic makes the entities in a similar way by selecting an icon for
process of placing locations easier, or altogether each entity type. As we do this, a record is cre-
eliminates the need to create graphic icons for ated in the Entity edit table for each entity type.
locations.
50 Chapter 3:
Building a Model
For more information on how to define entities, information on defining process logic, see “Pro-
see “Entities” on page 112. cessing” on page 143, and “Operation Logic” on
page 291.
Once the basic entity flow has been defined using
the point and click method, operation statements
are added to the processing logic. The processing
logic can be as simple as a constant operation
In this model the Speed (fpm) column is irrele- time or as complex as a nested IF...THEN...ELSE
vant since all entities move according to the defi- statement.
nition of the mobile resource CellOp. Also, the
Stats column shows that we desire detailed statis- Process editing actually involves two edit tables
tics for all entity types. “Time series” statistics that normally appear side by side. The Process
include throughput history of the entity. “Basic” edit table specifies what happens to an entity
statistics include only the total exits of each entity when it arrives at a location, and the Routing edit
type from the system and the final quantity of table specifies where an entity is to be sent once
each entity type in the system. processing is complete.
to the FIRST available destination of either 3.Two Cogs are accumulated at Degrease and
NC_301L or NC_302L. processed for 5 minutes. When the degrease
cycle is complete, Cogs are routed to location
2.When Blanks arrive at NC_301L or NC_302L,
Inspect.
the processing time is a normal distribution with
a mean of 3 and a standard deviation of .2 min- 4.The inspection time is a uniform distribution
utes. The name of the entity is now changed to with a mean of 3.2 and a half range of .3 minutes.
Cog, and the Cog is sent to the Degrease location Ninety six percent of the Cogs pass inspection
(FIRST is the default routing rule). and exit the system, while four percent of the
Cogs fail inspection and become Rejects.
Entity Location Operation (min) Blk Output Destination Rule Move Logic
Pallet Receive 1 Blank NC_301L FIRST 6 MOVE FOR .5
Blank NC_302L FIRST MOVE FOR .5
Blank NC_301L WAIT N(3,.2) 1 Cog Degrease FIRST 1 MOVE FOR .5
Blank NC_302L WAIT N(3,.2) 1 Cog Degrease FIRST 1 MOVE FOR .5
Cog Degrease ACCUM 2 1 Cog Inspect FIRST 1 MOVE FOR .5
WAIT 5
Cog Inspect WAIT U(3.2,.3) 1 Cog EXIT 0.960 1
Reject EXIT 0.040
52 Chapter 3:
Building a Model
The Resource edit table shown below contains Process Edit Table and corresponding opera-
fields for specifying the name and number of tion logic
units of a resource. It also has fields for specify-
ing resource downtimes (DTs...), the level of sta-
tistics to collect (Stats...), which path network
used for travel (Specs...), and any work and park
search routines (Search...). Clicking the mouse on
any of these buttons brings up separate edit tables
for specifying this data.
Process Editing
Now that we have defined a resource, we must
specify how and when that resource is used in the
processing logic.
In the Phase 1 model we used only constant pro-
cessing times. Now, due to variability associated
with the operator, we must represent the loading
and inspection times as distributions.
Routing Edit Table
In the example below, CellOp loads the blank at
mill NC_302L and is then FREEd to perform
other operations. When the Blank has finished
processing, the entity is moved with the CellOp
to the degreasing machine.
Phase 3: Additional Operations case, 96% of the entities pass inspection and 4%
fail.
In the final phase of our modeling session we
want to demonstrate an assembly operation by
using the operator to install a Bearing into the
center hole of the Cog if (and only if) the Cog
passes inspection.
Once we have defined the attribute and distribu-
tion table, we must return to the Locations, Enti-
ties and Arrivals modules to define a new
location called Bearing_Que, a new entity called
Bearing, and an arrival schedule for the Bearings.
In addition, we also need to specify a usage based
downtime for mills NC_301L and NC_302L New Location, Entity, and Arrival
from the Location module.
Before we can assemble the Cog at the Inspect
The final step in completing this phase of the location we must first define the new entity type
model is to edit the processing logic to include called Bearing in the Entities module. We must
the assembly. We will use the built-in JOIN con- also define a new location, Bearing_Que, to hold
struct to accomplish the assembly. the Bearings, and an arrival schedule for the
Bearings. To do this we simply open the appro-
Defining Attributes priate module as in Phase 1 and supply the infor-
mation. For simplicity we'll skip the details and
The Attribute module allows you to enter the
move on to downtime specification.
Attribute edit table to define an Entity Attribute
called Test that holds integer values. We set this
attribute to one if the Cog passes the inspection, Defining Location Downtimes
or zero if it fails the inspection. For more infor- In order to represent machine failure times for the
mation about defining attributes, see “Attributes” two mills, NC_301L and NC_302L, we click on
on page 217. the DT... button in the Location edit table shown
below. This brings up another edit table for speci-
fying a downtime based on machine usage. For
more information about defining location down-
times, see “Location Downtimes” on page 101.
Defining a Distribution
In order to determine if an entity passes or fails
the inspection, you sample from a user-defined
distribution called Dist1 (alternately, you could
use the RAND() function). To define the distribu-
tion, simply click the mouse on the Table... but-
ton and fill in the distribution parameters. In this
56 Chapter 3:
Running a Model
In the example above, we have defined failures to Process and Routing Logic
occur according to an exponential distribution
with a mean of 30 minutes. When a machine The process and routing table below shows all of
fails, resource CellOp is required to service the the changes and additions to the Phase 2 model in
machine. bold text.
Entity Location Operation (min) Blk Output Destination Rule Move Logic
Pallet Receive 1 Blank NC_301L FIRST 6 MOVE WITH CellOp
Blank NC_302L FIRST MOVE WITH CellOp
Blank NC_301L WAIT N(3,.2) 1 Cog Degrease FIRST 1 MOVE WITH CellOp
FREE CellOp
WAIT 5.7
Blank NC_302L WAIT N(3,.2) 1 Cog Degrease FIRST 1 MOVE WITH CellOp
FREE CellOp THEN FREE
WAIT 5.7
Cog Degrease ACCUM 2 1 Cog Inspect FIRST 1 MOVE WITH CellOp
WAIT 5 THEN FREE
Cog Inspect WAIT U(3.2,.3) 1 Cog EXIT FIRST 1
Test = Dist1() 2 Reject EXIT FIRST 1
IF Test = 1 THEN
BEGIN
JOIN 1 Bearing
WAIT U(1.2,.2)
FREE CellOp
ROUTE 1
END
ELSE
BEGIN
FREE CellOp
ROUTE 2
END
Bearing Bearing_Que 1 Bearing Inspect JOIN 1 MOVE FOR .05
This concludes the final phase of our model Running a Model
building session. We now turn our focus to run-
ning the model. Running a model is a fun and easy process. Mod-
els are compiled automatically at runtime, keep-
ing you apart from any complex compilation
process. If your model contains any errors, a
detailed message explains the nature of the error
and points to the module and line number where
the error occurred. In most cases you are permit-
ted to make changes on the fly.
ProModel uses concurrent animation, which
means that the animation occurs while the simu-
ProModel 57
User Guide
Viewing Model Statistics & Graphs” on page 363 for detailed examples of the
available from the file management section • version 5.0 to run with versions 5.0, 5.1, 5.2
shown previously. or 5.3.
• version 4.5 to run with version 4.5.
• version 4.0 to run with versions 4.0 or 4.2.
Please note
New Closes any currently opened model so a There is also an Autosave feature that saves the
new model can be built. This command is unnec- model file every n minutes as specified in the .INI
essary if no other model is open. If the currently file. This feature can be disabled. See the discus-
opened model has changed, ProModel will ask if sion later in this section.
you want to save the model before closing it.
Open Opens a user-specified model and clears
previous model data.
File Management Procedures
Merge Merges a selected ProModel model or
submodel into the current model. The same sub-
How to create a new model:
model can be merged multiple times into the
same model. See “Merge Model” on page 64.
1. Select New from the File menu.
Save Saves an open model under the current file
2. Define model elements using their corresponding
name. If no file name has been given, the user is modules.
prompted for a file name.
Save As Saves an open model under a new file
name specified by the user. The old file name still
exists. How to open an existing model:
Models saved in current versions of ProModel 1. Select Open from the File menu.
are not always compatible with previous versions
of ProModel. 2. Enter the necessary information in the Load Model
dialog box.
ated just like any other model and may be com- How to merge a model or submodel
plete or incomplete models. into an existing model:
When specifying a submodel, you are prompted
for a “tag” to be attached to each element of the 1. Open the initial (base) model.
submodel as either a prefix or suffix. For exam- 2. From the File menu select Merge.
ple, you may be developing a model with four
3. Select Model or Submodel from the submenu.
workstations. Instead of creating workstations
individually, you could create a submodel with 4. Specify the name of the model to be merged in the
only the common elements (e.g., in-box, out-box, following dialog box.
telephone, variables, arrays, etc.) and merge the
submodel into the main model four times. In the
resulting model, you would then fill in the unique
portions of each workstation. Entity and attribute
names will not be tagged.
In the following example, the tag “A_” is
attached as a prefix to every element of the sub-
model. A location called Queue1 in the submodel
becomes A_Queue1 in the main model and so on.
Likewise, a variable called Rejects becomes
A_Rejects in the merged model.
5. If you select Submodel, specify a prefix or suffix to
be attached to each element of the submodel.
6. Click on the layout where you want the model or
submodel to appear. A bracket appears on the screen,
representing the upper left corner of the merging
model’s layout. This bracket moves as you move the
mouse, allowing you to correctly position the layout to
be merged.
7. Next, you will be asked if you would like to append
the graphic library file from the model or submodel to
the current graphic library file. Select yes or no
depending on your preference.
Please note 8. When the model is merged in, the graphical ele-
ments remain selected so that you can position the
merged model exactly where you want it.
Tags used as prefixes must begin with a letter, A
through Z, or an underscore. For example, the
tag “3C_” is invalid and would produce an error
message. Please note
adjust the sizes of graphical elements in the How to view the text of a model:
merging model to the scale of the original model.
• Select View Text from the File menu. The model's
text is displayed in a window as shown in the following
example.
View/Print Model Text
The modular nature of ProModel makes it easy to
focus on the individual elements of a model.
However, it can still be useful to see an entire
model with all of the model elements in view at
one time. ProModel provides two ways to accom-
plish this. The first is through the View Text
option and the second is through the Print Text
and Print Layout Options.
The second major division of the File menu con-
tains the following options.
Please note
You may NOT use dynamic plots with protected 1. Select Install Model Package... from the File
models. Menu.
2. Enter the name you wish to use for the model pack-
age (by default, ProModel uses the name of the current
model with a *.pkg extension). You may also use the
Browse... button to select the model name and direc-
tory.
3. Check the Exclude Graphics Library box if you
want to package the model without the graphics library.
4. Check the Protect Model Data box if you want to
protect your model data and prevent other users from
changing or viewing the model data.
5. Click OK.
The Edit menu is accessible only while working 2. Select Delete from the Table Edit menu.
inside a module such as a processing edit table or
a Notes edit window. If no module is currently
open, the Edit selection is not available. Because
ProModel 71
User Guide
How to insert a record in a table: pasting entire process and routing records appear
in the Edit menu.
1. Position the cursor in the record below where you
wish the new record to be inserted.
2. Select Insert from the Table Edit menu.
2. From the Edit menu, select Copy Record (or press Cut Removes the selected text and places it in
CTRL + C) to copy the information. the clipboard.
3. In the field you want to place the information, select Copy Copies the current text and places it in the
Paste Record from the Edit menu (or press CTRL +
clipboard.
V).
Paste Inserts the contents of the clipboard at the
cursor.
Clear Deletes the selected text without placing a
Please note
copy in the clipboard.
Alternately, you may copy information between In addition to the options in the edit menu, the
records using the right-click menu. notes window itself contains four buttons. There
are three edit buttons, Cut, Copy, and Paste which
work exactly the same as the corresponding
options in the Edit menu, and a Print button. The
Editing Notes Windows print button prints the text in the notes window. A
status bar appearing at the bottom of the Notes
You may annotate individual records of the loca- edit window shows the current line position of
tions, resources and entities tables through Notes the cursor (e.g., Line: 2).
windows. When editing the text of a notes win-
dow, the Edit menu changes to the following
form. Editing Logic Windows
All multi-line logic windows, such as the opera-
How to annotate a record: tion logic window of the Process edit table,
include the editing function buttons shown in the
1. Click inside the record to be annotated. following example. These buttons include cut,
2. Click on the Notes button at the right of the table. copy, paste, undo, local find and replace, build,
compile, print, and help. Using the Cut, Copy, or
Paste button works exactly the same as using the
corresponding option from the Edit menu.
Delete Deletes the selected objects from the lay- 2. Select Edit Background Graphic from the right-
out window. click menu.
2. Left click and drag the selected graphic to the but will move when a location to which they are
desired position. connected is moved. If a routing path has multi-
3. To move multiple graphics, hold down the Shift key ple segments, only the segment connected to the
while left clicking the desired graphics to select them location being moved gets readjusted. However,
and then drag them to the desired position. Using the when both locations on the routing path are
shift key with a left click deselects a selected graphic. moved simultaneously, the whole routing path is
4. Fine tune the position of the selected graphic(s) by moved.
using the arrow keys on the keyboard to move one
pixel at a time.
Please note
Switches
The following selections are available from the
switches section of the View menu. Switches are
ProModel 77
User Guide
options you can check or uncheck to turn on or menu. These selections and their submenus are
off. discussed in more detail on the following pages.
2. Select the Views item. If no defined views exist, the How to select a view from the menu:
Views dialog is displayed and not the submenu shown
here. If the Views dialog appears, skip step 3.
1. At edit time or run time, select the View menu.
2. Select the Views menu item to display the submenu
list.
Move Down Moves the currently highlighted The Views Panel may be moved or resized, and
view down one position in the list creating a cor- will remain on top of the simulation window until
responding change to the menu and CTRL+ n the Panel is closed.
order.
Simply click on the name of a view in the Panel
Rename Renames the currently selected view to to switch to that view.
the name you have typed into the View Name
field. Referencing a View in Model Logic
Set View Sets the highlighted name in the View Once a view has been defined, it may be refer-
list to the portion of the model currently visible in enced in the model using the VIEW statement
the Layout window. (e.g., VIEW “Service Office”). This is useful for
View Name This is the field where you type the illustrating certain parts of the model at specific
name of the view you wish to add. times during run-time. For syntax and examples,
see “View” on page 566.
Show View Checking this box will cause your
views to be displayed in the Layout window as
you select them in the list. Zoom Feature
The Zoom feature allows you to shrink or enlarge
Using Views at Run-time the layout by the percentage selected.
When the simulation is running, you may choose
the active view by picking its name from the How to zoom in or out on the layout:
Views menu or the Views Panel.
The Views menu is accessible during run-time 1. Select Zoom from the View menu.
from either the Menu Bar’s Option menu or the 2. Choose any preset zoom level, or the Custom
Right-Click menu. Zoom option.
The Views menu will display a list of your Preset Zoom Levels
defined views. There is also an option to open the
Views Panel.
The Views Panel is a dialog window with a list of
your defined views.
80 Chapter 4:
View Menu
The minimum and maximum zoom levels are cal- Changes to these settings are saved as the default
culated automatically depending on the total size settings.
of the layout at 100% zoom.
Grid Size
Layout Settings By using the grid dialog box, you may set the res-
The following selections are available from the olution of the grid lines to your preference.
Settings section of the View menu.
Please note
How to change the colors and resolu- How to set the default time and dis-
tion of the grid lines: tance per grid unit:
1. Select Layout Settings from the View menu. 1. Select Layout Settings from the View menu.
2. Select Grid Settings from the Layout Settings sub- 2. Select Grid Settings from the Layout Settings sub-
menu. menu.
3. Select the Ones or Tens option button. 3. Select the Scale button from the Grid Dialog.
4. Select the desired color. 4. Enter the desired time and distance per grid unit.
5. Use the scroll bar to adjust the resolution.
Please note
Please note
The “Recalculate path lengths when adjusted”
To change the color of the grid lines, select the option applies to path networks, conveyors, and
Ones button and choose a color. To change the queues. For details regarding recalculation of
color of every tenth grid line, select the Tens but- times and distances when editing path segments,
ton and choose a color. see “Path Networks” on page 117.
Custom Colors 1. Select Routing Path Color from the View menu.
Please note
Please note
Layout
Views Allows you to define, then quickly and Pause Pauses and unpauses the simulation when
easily access specific areas of the model layout. it is running.
Once the view is defined, you can select it while Stop Ends the simulation and prompts you
editing or running the simulation. See “Views” whether to collect and view statistics up to the
on page 77 for more information. point where the simulation was stopped.
Zoom to Fit Shrinks or enlarges the layout to Animation On/Off Toggles the animation on and
include the entire model. off
Zoom Allows you to shrink or enlarge the layout View Statistics Opens Output Viewer 3DR.
by the percentage selected.
Simulation Information
Build Basic
Please note
Locations or...
Layout Window
location, click on the heading button to open the Edit Button Displays the Library Graphic Dialog
Location Rules dialog box. Box used to change the color, dimensions, and
orientation of the location graphic.
Notes Enter any optional notes about a location
in this field or click on the heading button to open Erase Button Erases the selected location
a larger Notes window. graphic in the Layout window without deleting
the corresponding record in the Location edit
table.
Location Graphics Window
View Button Brings the selected location in the
The Location Graphics window provides a graph- edit table into view on the Layout window.
ical means for creating locations and changing
their icons.
How to define a new location graphi-
cally:
New Box
1. Check the New Box in the Location Graphics win-
Counter
dow.
Gauge/Tank
2. Select a location symbol or icon from the Location
Conveyor/Queue
Graphics window.
Text Label
Status Light 3. Click on the Layout window where you want the
location to appear.
Entity Spot
Region 4. A new record is added automatically to the Location
edit table. You may now change the default name to the
desired location name.
How to move multiple graphics for 2. Select Delete Graphic. The location graphic disap-
two or more locations at once: pears, but the location record still exists in the Location
edit table.
1. Click outside of any graphic and drag to create a
rectangle encompassing all of the graphics to be
moved.
2. Drag the rectangle to the desired position on the lay- How to bring a location graphic into
out. view that is off the layout:
This technique allows elements in the imported 2. A location may include any of the above
background to work as locations. graphics and symbols. However, a location can
have no more than one counter, one gauge, one
Library graphic Any of the graphics appearing
tank, one queue, one status light, or one region.
in the library graphic menu. Use the scroll bar to
view all available graphics. Library graphics may
3. Clicking on a layout graphic with no edit
be created or modified through the Graphic Edi-
table on the screen displays the name of the ele-
tor. The name for the graphic, the default name of
ment (location, etc.) represented by the graphic.
any location created with that graphic, can be
With any edit table showing, hold down the CTRL
saved in the Graphic Editor (see “Naming a
key while clicking on the graphic to display the
Graphic” on page 314).
location name.
Please note
or tank to display the gauge/tank dialog box, currently chosen options is shown in the lower-
select the gauge/tank and click on the Edit button, left corner.
or right click on the gauge or tank and select edit
graphic. From the gauge/tank dialog, you may
change a gauge to a tank and define its appear-
ance, orientation, and fill direction. You may also
access this dialog by selecting the gauge or tank
and clicking on the Edit button.
you checked the “Recalculate path lengths when entity on a conveyor is calculated using the fol-
adjusted” option. You can access this option from lowing formula:
the Tools menu under Options.
Time = (Conveyor Length - Entity Length or Width)/
Conveyor Speed
Conveyors And the percentage utilization is calculated using
A conveyor is a location that simulates the move- this formula:
ment of entities on either an accumulating or non-
accumulating conveyor and appears with a con- ∑ tc
veyor graphic. Entities can only enter a conveyor all Cc
entities
at the beginning and leave at the end. For accu- Util % =
mulating conveyors, if the lead entity is unable to T
exit the conveyor, trailing entities queue up
Where:
behind it. For non-accumulating conveyors, if the
lead entity comes to a stop, the conveyor and all tc = the time the entity spent on the conveyor
other entities stop. Entities on a conveyor may whether moving or not
not be preempted by other entities.
Cc = the conveyor capacity for that entity
The capacity assigned to a conveyor limits the
number of entities that can access a conveyor. T= the total simulation time
However, the cumulative total length or width of
the entities on the conveyor cannot exceed the Please note
conveyor length. In fact, the utilization statistics
for a conveyor reflect the amount of space uti- Unlike queues, MOVE statements for conveyors
lized on the conveyor throughout the simulation, may not include a move time. Processing logic
not the number of entities occupying the con- executed at the end of the conveyor may contain
veyor. Unlike other locations, an entity is not any operation statement except for CREATE,
routed to the conveyor until there is room at the SPLIT AS, UNGROUP, or UNLOAD. Addition-
beginning for the entity to fit, even if the con- ally, the ACCUM, COMBINE, and GROUP
veyor has capacity to hold it. statements are not allowed at the end of non-
ProModel executes operation logic for entities accumulating conveyors.
entering a conveyor as soon as they enter unless
the logic follows a MOVE statement. If no
MOVE statement is encountered, entities begin
their move on the conveyor after processing any Due to the space limitations of a conveyor, cer-
logic. If a MOVE statement is encountered, entity tain operation statements at the beginning of a
movement is initiated. Any logic defined after a conveyor are invalid including ACCUM, COM-
MOVE statement is processed when the entity BINE, CREATE, GROUP, SPLIT AS,
reaches the very end of the conveyor. UNGROUP, and UNLOAD.
Move time on a conveyor is based on the length The default conveyor length is determined by the
and speed of the conveyor, as well as the length graphic scale, although this may be overridden by
or width of the entity. The move time for an entering a different length. When a conveyor is
modified graphically, the length will automati-
ProModel 99
User Guide
cally be recalculated based on the graphic scale How to create bends in an existing
unless you uncheck the “Recalculate path lengths conveyor:
when adjusted” option. You can access this
option from the Tools menu under Options.
1. Click on the conveyor with the right mouse button.
From the menu that appears, select Add Joint. A small
Conveyor Graphics Display black square appears on the conveyor.
When you use conveyors and want the graphics 2. Using the left mouse button, drag the square in the
to display properly on the conveyor with no over- direction you desire to bend.
lapping and little space between entities, use the
following:
Conveyor Animation
The animation of entities traveling along convey-
ors is displayed according to the logical length or
width of the entity, not the scaled length or width
of the entity graphic.
Speed The speed of the conveyor in feet or There are three possibilities for defining the
meters per minute. The distance units can be set machines: (1) as a multi-capacity location, (2) as
in the General Information dialog box. a multi-unit location, or (3) as multiple locations.
The method you choose to define the locations
depends on your application.
Capacities and Units
Capacities
A location capacity is the maximum number of
entities it can hold at any one time. In general,
multi-capacity locations are used to model loca-
tions such as queues, waiting areas, or any other
type of location where multiple entities may be
held or processed concurrently. Consider the fol-
lowing multi-capacity location:
• A path network is defined but each location Selecting Incoming Entities option in the Rules
must interface with a different node on the dialog box. (See the discussion regarding the
network. Rules dialog box later in this section.)
• Different units have different processing
In the output report, scheduled hours for the par-
times.
ent location will be the sum of the scheduled
• The input for each unit comes from different hours for the individual units.
sources.
• The routing is different for each unit.
Please note
Defining a Multi-Unit Location
Multi-Unit notes:
To create a multi-unit location, enter a number
greater than one as the number of units for a loca- 1. It is not possible to create a path network to
tion. A corresponding number of locations will interface with each unit of a multi-unit location.
be copied below the multi-unit location record in You must define the locations individually and
the Location edit table, each with a numeric use multiple locations as discussed above.
extension designating the unit number of that
2. It is not possible to route an entity to a spe-
location. Successive graphics, representing indi-
cific unit of a multi-unit location. For example,
vidual units will be drawn to the right of the orig-
typing Loc2.3 in the destination field of the Rout-
inal location, but may be moved normally.
ing edit table is not allowed.
The original location record becomes the proto-
type for the unit records. Each unit will have the
prototype's characteristics unless the individual
unit's characteristics are changed. In the table Location Downtimes
below, each unit of the location has a clock-based
downtime defined because the parent location, A downtime stops a location or resource from
Loc2, was assigned a clock-based downtime. operating. A down resource or location no longer
However, Loc2.1 has an additional entry-based functions and is not available for use. Downtimes
downtime and Loc2.2 has an additional usage- may represent scheduled interruptions such as
based downtime. Any other characteristic, shifts, breaks, or scheduled maintenance. Or, they
including the icon, can be changed as if the unit may represent unscheduled, random interruptions
were an independent location. such as equipment failures. Downtimes may also
be given preemptive or non-preemptive priority
and may require one or more resources for repair
times.
For single capacity locations, downtimes may be
based on clock time, usage time, number of enti-
If the number of units is changed, the individual ties processed,a change in entity type, or called
unit location records are automatically created or using the DOWN statement. Multi-capacity loca-
destroyed accordingly. tions have only clock and called downtimes. If a
downtime is occurring at a location and any other
Individual units of a multi-unit location can be
downtime starts (except a setup downtime), the
selected to process an entity according to the
102 Chapter 5:
Locations
two downtimes are processed together, not see if the specific statement or function is valid in
sequentially (i.e., downtimes overlap). a particular field.)
An alternative and more straightforward method Scheduled... Select YES if the downtime is to be
for defining downtimes due to breaks or shifts is counted as a scheduled downtime. Select NO if
to use the Shift Editor. The Shift Editor also has the downtime is to be counted as a non-scheduled
the advantage of allowing a downtime to be downtime.
defined for an entire group of locations. All scheduled downtimes will be deducted from
the total scheduled hours reported in the output
statistics and, therefore, will not be considered in
computing utilization, percent down, and so on.
Clock Downtime Editor
Logic Enter any logic statements to be processed
Clock downtimes are used to model downtimes when the downtime occurs. When the logic has
that occur depending on the elapsed simulation completed, the location becomes available. In the
time, such as when a downtime occurs every few most simple case, the logic is simply a WAIT
hours, no matter how many entities a location has statement with a time value or expression which
processed. represents the duration of the downtime. Click on
The Clock Downtime Editor consists of the edit the heading button to open a larger edit window.
table shown below. To access the Clock Down- Disable Select YES to temporarily disable the
time Editor, select Clock from the menu that downtime without deleting it from the table.
appears after clicking the DT... heading button.
Most expressions, including distributions, can be The example above shows a simple clock-based
included in the Frequency, First Time, and Prior- downtime where the location is down for 10 min-
ity fields. (See the “Appendix A” on page 577 to utes every 2 hours (120 min). Because this time
ProModel 103
User Guide
should not be included in the total scheduled or time expression representing the length of the
available hours, YES is selected in the “Sched- downtime. Click on the heading button to open a
uled” column. larger edit window.
Disable Select YES to temporarily disable the
Entry Downtime Editor downtime without deleting it from the table.
Entry downtimes are used to model downtimes In the example above, Robot1 will go down
when a location needs to be serviced after pro- every 100 entries, with the first downtime occur-
cessing a certain number of entities. For example, ring after only 50 entries. When the downtime
if a printer needs a new cartridge after printing occurs, it will require a resource (M1) to service
2000 shipping orders, an entity downtime should the machine for some amount of time between
be defined. The downtime occurs after the entity 3.8 and 4.2 minutes. If resource M1 is unavail-
that triggered the downtime leaves the location. able when requested, the robot will remain down
The Entry Downtime Editor consists of the edit until M1 becomes available.
table shown below. To access the Entry Down-
time editor, select Entry from the menu that Please note
appears after clicking the DT... heading button.
Entry downtimes are only available for single Entry-based downtimes do not accumulate. For
capacity locations. The Downtime Editor con- example, if a downtime cannot occur because the
tains fields for defining downtimes based on the priorities of the entities being processed are at
number of entries processed at a location. Most least 2 levels higher than the priority of the
functions, including distributions, can be downtime, only the first downtime resumes after
included in the Frequency and First Occurrence processing the entities. All others are ignored.
fields. (See the “Appendix A” on page 577 to see
if the specific statement or function is valid in a
particular field.)
Usage Downtime Editor
Usage downtimes are used to model downtimes
that occur after a location has been operating for
a certain amount of time, such as if a machine
Frequency The number of entities to be pro- fails due to wear after so many hours of opera-
cessed between downtime occurrences. This may tion. Usage downtimes are different from clock
be a constant value or a numeric expression and downtimes because usage downtimes are based
is evaluated as the simulation progresses. on location operation time, which does not
include blocked time. Clock downtimes are based
First Occurrence The number of entities to be
on total elapsed simulation time (operation time,
processed before the first downtime. This may be
blocked time, idle time). Usage downtimes are
a value or a numeric expression. If left blank, the
available only for single-capacity locations.
first downtime will be based on the frequency
entered. The Usage Downtime Editor consists of the edit
table shown below. It contains fields for defining
Logic Any logic statements to execute when the
location downtimes based on the actual time in
downtime occurs. Normally, this logic is simply a
use. Most functions, including distributions can
104 Chapter 5:
Locations
be included in the Frequency, First Time, and Pri- downtime, only the first downtime resumes after
ority fields. (See the “Appendix A” on page 577 processing the entities. All others are ignored.
to see if a specific function is valid in a particular
field.)
Disable Select YES to temporarily disable the Logic Enter any logic statements to be pro-
downtime without deleting it from the table. cessed when the downtime occurs. When the
logic has completed, the location becomes avail-
This example shows that the time to setup Robot3
able. In the most simple case, the logic is simply
depends on the arriving entity and the prior
a WAIT statement with a time value or expres-
entity. If a GearB follows a GearC, the setup time
sion which represents the duration of the down-
for the machine will be based on a Lognormal
time. Click on the heading button to open a larger
distribution with a mean of 4.5 minutes and a
edit window.
standard deviation of .95 min. But if a GearC fol-
lows a GearA, the setup time will be based on a For more information on the DOWN statement,
Lognormal distribution with a mean of 2.3 min see “Down” on page 460.
and a standard deviation of .2 min.
Location Priorities and Preemption
Called Downtime Editor Priorities determine which entity or downtime
Called downtimes are used in conjunction with uses a location when more than one entity or
the DOWN statement to make a location go downtime is contending for it. Priorities may be
down. When the name of the called downtime is any value or expression between 0 and 999, with
referenced during simulation by the DOWN higher values having higher priority. For simple
statement, the called downtime will execute its prioritizing, you should use priorities from 0 to
logic. 99. Priorities greater than 99 are used for pre-
empting (bumping or displacing) entities or
downtimes currently occupying a location.
Priority values are divided into ten levels (0 to
99, 100 to 199, ..., 900 to 999), with values
beyond 99 used for preempting entities or down-
times of a lower priority level. Multiple preemp-
Name The name of the called downtime. This is
tive levels make it possible to preempt entities or
the name that will be referenced by the DOWN
downtimes that are themselves preemptive. This
statement.
means that an entity, EntA, with a priority of 99
Priority The priority (0-999) of the downtime can be preempted by another entity, EntB, with a
occurrence. The default priority is 99, the highest higher priority level of 199. In turn, another
non-preemptive priority. entity, EntC, with a priority of 299 can preempt
EntB at the same location.
Scheduled... Select YES if the downtime is to be
counted as a scheduled downtime. Select NO if To preempt an entity currently using a location, a
the downtime is to be counted as a non-scheduled preempting entity or downtime must have a prior-
downtime. ity at least ONE level higher than the entity cur-
rently at the location. To preempt a downtime in
All scheduled downtimes will be deducted from
effect at a location, a preempting entity must have
the total scheduled hours reported in the output
a priority at least TWO levels higher than the cur-
statistics and, therefore, will not be considered in
rent downtime. Since all overlapping location
computing utilization, percent down, and so on.
downtimes are processed concurrently (except
106 Chapter 5:
Locations
Process Table
Entity Location Operation (min)
EntA Loc1 USE Res1 FOR N(3,.1)
Routing Table
Blk Output Destination Rule Move Logic
1 EntA Loc2, 100 First 1 MOVE FOR 1
Entity
Time
T2 T3 T4
T1
Example 3 Example 5
This example demonstrates the behavior when an This example demonstrates what happens when a
entity with a priority of 99 is preempted by a setup downtime with a priority of 99 is pre-
downtime with a priority value of 100 or greater. empted by a normal downtime having a priority
of 100 or greater.
Downtime Preempting an Entity
Downtime Preempting Entity in Setup
Entity
Entity setup
DT Time
DT
Time
T2 T3 T4
T1
T1 T2 T3 T4
Remaining entity processing time
resumes upon completion of downtime
Remaining setup time resumes upon
completion of downtime
Example 4
This example illustrates how, regardless of the Example 6
downtime priority values, downtimes will over- This example demonstrates what happens when
lap. The exception is setup downtimes, which Ent 1 setup downtime with a priority of 99 is pre-
preempt downtimes exactly like entities (see empted by Ent 2 having a priority of 100 or
Example 5). greater.
Overlapped/Concurrent Downtimes Entity Preempting Entity in Setup
DT 1 Ent 1 setup Ent 1 setup
DT 2
Overlap Ent 2
Time
Time
T1 T2 T3 T4
T1 T2 T3 T4
Total Downtime Ent 1 setup must start over upon completion
of Ent 2 processing
ProModel 109
User Guide
Most Available Capacity Selects the unit having Two parts are queued for output at Loc1. The part
the most available capacity. This rule has no waiting the longest, EntA, at Loc1 has been wait-
effect with single capacity units. ing 10 minutes. The other part, EntB, which
queued for output after EntA, has been waiting 5
Fewest Entries Selects an available unit with the
minutes. At Loc2, the part queued for output,
fewest entries.
EntC, has been waiting 7 minutes. At Loc3, the
Random Selects an available unit randomly. part queued for output that has been waiting the
longest, EntD, has waited 3 minutes.
Longest Empty Selects the unit that has been
empty the longest. The part to enter Loc4 first is EntC at Loc2 which
waited 7 minutes. Even though EntA has been
When specifying the decision rules for selecting
waiting ten minutes, it must wait until EntB has
incoming entities at a location, it is important to
been routed, because EntB is ahead of it in the
remember that the routing of an entity is also
output queue according to the LIFO queuing rule.
dependent on the queuing for output decision
Once Loc4 finishes processing EntC, EntB at
rules at the previous location. The following
Loc1 enters Loc4. EntB enters before EntA
example will clarify this principle.
because entities must be output before a destina-
tion selects incoming entities. Next, EntA at Loc1
Rules Dialog Box Example enters Loc4 after which EntD at Loc3 enters
Consider a location, Loc1, which has a “Last In, Loc4.
First Out (LIFO)” as the queuing for output rule.
Suppose that two other locations, Loc2 and Loc3,
have “No Queuing” for the output rule. The three
locations, Loc1, Loc2, and Loc3 feed into Loc4
which has an “Oldest by Priority” rule for select-
ing incoming entities.
112 Chapter 5:
Entities
or...
Entities Editor
Entity types are created and edited with the Enti-
ties Editor. The Entities Editor consists of (1) an
edit table to define the name and specifications of
each entity type in the system, and (2) the Entity
Graphics window for selecting one or more icons
ProModel 113
User Guide
to represent each entity. The fields of the edit How to define entities graphically:
table are explained below.
1. Select Entities from the Build menu.
2. Check the New box in the Entity Graphics window.
3. Select an icon for the entity. (Use the Graphic Editor
to create new icons.)
Icon This is the graphic icon used to represent 4. Edit the name and other default entries for the entity
the entity during the animation. Entity graphics in the Entity edit table.
are defined or modified using the Entity Graphics
window. This icon can vary during the simula-
tion. See “Defining Multiple Entity Graphics” on
page 114.
Name The entity name. See “Names” on
page 394 for more information on naming.
Speed This entry is optional and applies to self-
moving entities such as humans. It defines the
speed in feet or meters (depending on the dis-
tance units chosen in the General Information
Dialog box) per minute to be used for any of the
entity's movement along a path network. When
creating a new entity, a default value of 150 fpm
(or 50 mpm for metric systems) is automatically
entered. This is roughly the speed of a human
walking.
Stats The level of statistical detail to collect for
each entity type: None, Basic, or Time Series.
Time series statistics must be selected if you wish
to view a time series plot in the output module.
Notes Any information you wish to enter about
the entity, such as material, supplier name.
fields labeled Length and Width in the Entity changes automatically to maintain proportional-
Graphics window. If multiple graphics are ity.
defined for an entity, each graphic can have a dif-
ferent length and width. Which side a user
chooses to call the length or width is unimportant
as long as the proper side is referenced when Defining Multiple Entity Graph-
defining a conveyor. If no conveyors are defined
in the model, no specifications of a length and
ics
width are necessary. Entity types can be assigned more than one
An entity's horizontal and vertical dimensions are graphic to represent the entity at various stages of
used to determine the size of the graphic on the production or traveling in different directions. An
screen. These dimensions can be changed in two entity representing a loan application could be
ways. The scroll bar to the right of the graphic assigned three graphics: the first representing the
will scale the graphic. In addition, the horizontal application before a credit check has been
and vertical dimensions can be changed by click- received, the second representing the application
ing on the Edit button, then clicking on the after receiving the credit check but before the
Dimensions... button from the resulting dialog loan is approved, and the third representing the
box. The default dimensions are determined application after the loan is approved. During the
when an icon is created to scale in the Graphic simulation, the application’s status could be
Editor. If the size is changed using the scroll bar, shown by adding additional graphics to represent
the change will be reflected in the dimensions each state of the loan process using the
listed. If you change either the horizontal or verti- GRAPHIC statement (see “Graphic” on page 482
cal dimension from the dialog box, the size of the for information).
icon will change accordingly.
Please note
How to define multiple graphics for an ing an entity or a location that is down. An entity
entity type: with high enough priority can also take over a
resource when it is being used by another entity
or when it is off shift. When an entity takes over a
1. Uncheck the New box on the Entity Graphics win-
dow. Numbered graphic cells appear in the Entity location that was down or in use by another
Graphics window. entity, the entity has preempted the downtime or
the other entity.
In a multi-capacity location, the occupying entity
will be preempted only if there is no more capac-
ity at the location and the occupying entity is
undergoing an operation time. Further, the occu-
pying entity cannot be one that has been split,
created, grouped, combined, ungrouped, or
unloaded at the location.
An entity must have a priority one level higher
Multiple
than an occupying entity to preempt the occupy-
graphic
ing entity. An entity must have a priority that is
cells
two levels higher than a downtime to preempt the
downtime. If an entity does not have a high
enough priority to preempt another entity or
downtime at a location, it waits in line (oldest by
priority) to access the location (see “Location Pri-
2. Click on the desired cell. orities and Preemption” on page 105).
3. Select a library graphic from the graphics menu.
Note that the priority of an entity is not defined
4. Repeat steps two and three until all the desired for the entity itself. For claiming a location, it is
graphics have been assigned to the entity type. defined in the destination field of the routing. For
capturing a resource it is defined as part of the
GET, JOINTLY GET, or USE statement. A prior-
ity may, however, be assigned to an attribute of a
The graphic that represents an entity during a
referenced entity when it attempts to access a
simulation will be the first in this series until an
resource or location.
entity's graphic is changed with the GRAPHIC
statement.
Example of Preemptive Entities
Preemptive Entities In this example entity (EntA) arrives at location
Loc1. Immediately upon arrival it requests to use
Often during a simulation, it is desirable to have resource Res1 for a normally distributed amount
an entity preempt an activity at a location or of time. The priority for obtaining the resource is
resource in order to gain access to that location or 99, which means that it is a non-preemptive
resource. These situations can be modeled using request. When Res1 becomes available, EntA
preemptive priorities. An entity with a high will be first in line because it has the highest non-
enough priority can take over a location process- preemptive priority possible. When processing is
116 Chapter 5:
Entities
Process Table
Entity Location Operation (min)
EntA Loc1 Use Res1,99 For N(3,.1)
Routing Table
Blk Output Destination Rule Move Logic
1 EntA Loc2,200 First 1 MOVE FOR
2.5
ProModel 117
User Guide
appropriate heading button will bring up a table The Path Segment edit table is covered in more
for defining nodes, path segments, and location detail later in this section.
node interfaces.
Interfaces The number of location-node inter-
faces in the path network. If an entity will be
picked up or dropped off at a particular location
by a resource, that location must connect to a
node through a location-node interface. Clicking
The following explains each field of the Path on the heading button opens the Interfaces edit
Networks edit table. table where the user may define nodes that con-
nect to processing locations. The Interfaces edit
Graphic For passing or non-passing path net-
table is covered in more detail later in this sec-
works, this button displays the Path Color dialog,
tion.
which allows you to define the color of the path
network. Click on the heading button or double Mapping The number of entries in the Mapping
click in this field to bring up the graphic dialog. edit table. Clicking on the heading button opens
Both dialogs allow you to specify whether or not the Mapping edit table where the user may map
the network will be visible at run time. destinations to particular branches of the net-
work. (The Mapping edit table is covered in more
Name A name that identifies the path network.
detail later in this section.)
For more information about valid names, see
“Names” on page 394. Nodes The number of nodes defined in the
Nodes edit table. Nodes are created automatically
Type Set this field to Non-Passing if you want
when graphically defining path segments. Click
entities and resources to queue behind one
on this heading button to open the Node edit
another on the path network. If a path is Non-
table, which may be used to define nodes manu-
Passing, entities may not pass each other, even if
ally or set Node Limits on one or more nodes.
an entity is traveling at a faster speed than the one
Nodes may also be used to control a resource's
in front of it. Set this field to Passing if you want
behavior through node logic or search routines
entities or resources to pass each other on the
such as work and park searches (see “Resources”
path network.
on page 126). The Nodes edit table is covered in
A "Crane" option is also available, which is more detail later in this section.
described in more detail in the section “Crane
Systems” on page 261. How to create a path network graphi-
T/S Set to either Time or Speed and Distance as cally:
the basis for measuring movement along the net-
work. See the discussion on Automatic Time and 1. Set the default time and distance values per grid unit
Distance Calculation later in this section for more from the Grid dialog box.
information. 2. Choose Path Networks... from the Build menu.
Paths The number of path segments in the net- 3. Enter the name of the network in the Path Networks
work. Clicking on the heading button opens the edit table.
Path Segment edit table where the user may
4. Select either Passing or Non-passing as the net-
define the network's node to node connections. work type.
ProModel 119
User Guide
5. Select either Speed and Distance or Time as the To highlight a path on the layout and in the
travel basis. Path Segment edit table
6. Click on the Paths... heading button to open the • Left click on that path.
Path Segment edit table.
7. Lay out the network using the mouse buttons as
described below.
How to create additional nodes or
move existing nodes:
How to create path segments: 1. Click on the Nodes heading button in the Path Net-
works edit table.
1. Left click to create a node and begin a path segment. 2. Click the left mouse button to create a node both on
2. Additional left clicks produce path joints. the layout and in the Nodes edit table.
3. A right click ends the segment and creates a new 3. Drag an existing node to move that node.
node.
To delete a joint
• Right click on an existing joint. A Typical Path Network
The following diagram shows a path network
To add a joint consisting of seven nodes (N1 to N7) connected
1. Right-click anywhere on a path segment. by path segments. Path segments may be straight
lines from one node to another, as in the segment
2. Select Add Node from the menu.
from node N7 to node N6, or they can have any
3. Drag the joint to the desired position.
Please note
If you hold down the CTRL key and move the cur-
sor over a path segment or joint, the Add/Delete
joint cursor will appear. From here, left click to
add or delete a joint.
120 Chapter 5:
Path Networks
number of joints, such as the segment from node Time If travel along the network is to be mea-
N2 to node N5. sured in time rather than in speed and distance,
then enter the time required for a resource or
entity to traverse the path segment. This value
may be any numeric expression except for
resource and downtime system functions. When
travel along a path is measured in time, all
resources and entities traveling along the path
take the same amount of time to travel it, regard-
less of their speed. This field's title changes to
“Distance” if the T/S field in the Path Networks
edit table is set to Speed and Distance.
Distance If travel along the network is to be
measured in terms of speed and distance, enter
the length of the segment which determines the
travel time along the path in conjunction with the
Path Segment Edit Table speed of the resource or entity.
This table is used to define the Path Segments The value entered may be any numeric expres-
that make up a path network. When specifying sion except for attributes, arrays, and system
travel according to time between nodes, the head- functions. This expression is evaluated only
ing “Distance” changes automatically to “Time.” when the simulation begins.
The distance may be followed by a comma and a
speed factor between .01 and 99. This speed fac-
tor may be used to model any circumstance
affecting the speed of items traveling the path.
For example, a resource may normally travel at
150 fpm, but may slow down as it goes around a
corner to 80% of the original speed, 120 fpm.
This would be entered as 100, .8 for a path seg-
ment 100 feet long which traversed the corner.
This field's title changes to “Time” if the T/S
field in the Path Networks edit table is set to
Time.
The following defines the fields of the Path Seg-
ment edit table.
Please note
From The beginning node of the path segment.
To The ending node of the path segment. Path segment editing notes:
BI Set to Uni-directional or Bi-directional 1. If no path segments have been defined for a
depending on whether traffic can travel in only network, resources and entities will move from
one or either direction. node to node in zero time. See “Processing” on
ProModel 121
User Guide
page 143 for more information about the Routing 4. Enter the time and distance values as shown below.
Move dialog box.
2. To move nodes already defined on the layout,
click on the Nodes button and move the desired
nodes.
3. To insure that all nodes can be seen by the user,
two nodes cannot be located at the same point.
tion Loc2, and so on, as in the example at the Mapping Edit Table
beginning of this section.
If there are multiple paths emanating from one
node to another node, the default path selection
will be based on the shortest distance for speed &
distance networks, and the least number of nodes
for time based networks. These defaults can be
overridden by explicitly mapping some destina-
tion nodes to specific branches that entities and
resources will take when traveling out of a
“from” node.
When your simulation is compiled and run, Pro- ProModel automatically calculates and uses the
Model will automatically define destinations for shortest paths on unmapped portions of networks
your network mapping, if you have not defined (if the network is time based, the path having the
them yourself. These computer-generated map- least number of nodes is used). Explicitly indicat-
pings will not appear in the Dest. column of the ing shortest paths using mapping constraints will
Mappings table, but the From and To columns speed up the translation process, especially for
will contain information on these mappings. Do models with complex networks.
not delete the information in these collumns.
To force them to take the longer path, we must path network extended up to include many other
specify mapping constraints. nodes N8, N9, ..., and locations Loc7, Loc8, ...,
then we would change the Mapping edit table as
follows:
1. Delete line 1 in the Mapping edit table.
2. Make sure that line 3 is there (it is not
optional any more).
3. Include a line which reads: “From: N2, To:
N5, Dest:<BLANK>”.
also be used solely to control a resource or errors. This saves compilation time on large mod-
entity's behavior through node logic or search els.
routines such as work and park searches (see
However, if you edit one or more of your path
“Resources” on page 126).
networks, ProModel will once again check the
modified path networks for errors during compi-
lation. ProModel will consider a path network to
have been modified if its name was at any time,
since the last compile, highlighted in the Path
Network dialog window.
Resources Editor
The Resources Editor consists of the Resources
edit table and the Resource Graphics window.
ProModel 127
User Guide
These windows are used together to specify the Icon The icon selected for this resource. Icons
characteristics of a resource. are selected using the Resource Graphics Win-
dow. If more than one icon is selected for the
resource, the first icon is shown here.
Name The name of the resource.
Units The number of units represented by this
resource name between 0 and 999 (or a macro). If
the entry is a numeric expression, the expression
will be evaluated at the start of the simulation
run. Consequently, the number of resource units
cannot be changed during the simulation run. If
you would like to vary the number of units of a
resource during runtime, use downtimes to vary
the number of resources available at a given time.
(See also “Resource Downtimes” on page 131.)
Resources edit table Appears along the top of the
workspace with fields for specifying the name of
each resource, the number of identical units of a Please note
resource, the downtime characteristics of each
resource, and other important information, such When you use a macro with a value of zero in the
as the path network the resource uses for move- units field, you can use SimRunner to find the
ment. optimal number of resources needed for your
model.
Resource Graphics window Contains graphic
icons that may be selected to represent a resource
during simulation. A resource may have more
than one icon to represent different views of the
DTs... Select this field to define any optional
resource, or its status. This window also allows
downtimes for this resource. Only clock and
you to define multi-unit resources graphically on
usage based downtimes are permitted for
the layout. Defining a resource is as simple as
resources.
selecting an icon from the Resource Graphics
window, giving the resource a name, and specify- Stats... The desired statistics, if any, to gather for
ing the characteristics of the resource. this resource. Statistics can be collected as a sum-
mary report over all units of a resource, or indi-
Resources Edit Table vidually for each unit of a resource. The options
are as follows:
The Resources edit table defines the characteris-
tics of each resource in the system. The fields of • None: No statistics are gathered.
this table are defined below. • Summary: Average utilization and activity
times are recorded collectively for all units
of the resource.
• By Unit: Statistics are gathered for each
unit individually as well as collectively.
128 Chapter 5:
Resources
Specs... Select this field to open the Resource ing on the desired cell and selecting a library
Specifications dialog box. From here you can graphic from the graphics menu.
assign a path network, set the resource speed, and
By using the GRAPHIC statement in resource
define pickup and deposit times. For more infor-
downtime logic, or in the case of a dynamic
mation on the Specification dialog, see
resource, node logic, any of the multiple graphics
“Resource Specifications Dialog Box” on
assigned to a resource may be activated during
page 136.
simulation. For static resources, you may define a
Search... If a path network has been assigned, second or third graphic to be used automatically
select this field to access the Work Search and when the resource is busy or down, respectively.
Park Search edit tables, used to define optional
Resource graphics may be sized using the scroll
work and park searches.
bar or edited by clicking the edit button. Edit
Logic... If a path network has been assigned, options include rotating, flipping horizontally or
select this field to define any optional logic to be vertically, and changing the color of the graphic.
executed whenever a resource enters or leaves a In addition, you can specify the dimensions of the
particular path node. If you have defined a node resource graphic. For more information, see
entry and exit logic, the logic field will show the “Dimension” on page 310.
number of nodes where node entry and exit logic
has been defined.
Pts... If a path network has been assigned, select
this field to define resource points. Resource
points are auxiliary points where multiple
resources may appear graphically when parked or
in use at a multi-capacity node.
Notes... Enter any notes in this field, or click on
the heading button to open a larger Notes window
for entering notes.
Model deletes the resource point but leaves the 1. When defining the static resource specifica-
number of units in the units field unchanged. tions, the default for Resource Search is Least
Utilized. The default for Entity Search is Longest
Waiting. You may only specify Pick-up and
Static Resources Deposit Time in the Motion box.
Static resources are resources not assigned to a 2. There is not a status light for a static resource;
path network and therefore do not visibly move. however, a second and third graphic may be
A static resource may be needed to perform an defined for use when the resource is busy or
operation at only one location, such as an inspec- down, respectively. If no second and third
tion operator, and will appear during the entire graphic are defined, the resource graphic
simulation in the same place it was defined changes color to green when in use and red when
graphically. Although a static resource is station- down.
ary and does not visibly move between locations,
it may be used at more than one location or to
move entities between locations.
Dynamic Resources
How to define a static resource:
Dynamic resources are resources that move along
1. Select Resources from the Build menu. This auto-
an assigned path network and may transport enti-
matically brings up the Resources edit table and the ties between locations as a forklift would. They
Resource Graphics window, used together to define all may also need to process entities at several loca-
resources in the model. tions, such as an operator performing tasks at
more than one location. For these reasons, it is
2. Choose a graphic icon for the resource from the
Resource Graphics window.
usually preferable to model the resource's move-
ment using a path network. Defined properly, the
3. Select the Add button in the Resource Graphics resource will travel along the path network dur-
window. ing the simulation run.
4. Click on the layout at the desired position of the
resource graphic. How to create a dynamic resource:
5. Add additional resource graphics for the same
resource if desired. Every time a resource graphic is 1. Create a path network using the Path Network Edi-
placed on the layout for the same resource in the edit tor.
table, a new resource point is created.
2. Select Resources from the Build menu. This auto-
6. Supply any optional information about the resource, matically brings up the Resources edit table and the
such as downtimes. Resource Graphics window, which are used together to
define all resources in the model.
3. Choose a graphic icon for the resource from the
Resource Graphics window.
Please note
4. Click the Specs... button to open the Specifications
Static resources notes: Dialog.
5. Assign a path network to the resource.
130 Chapter 5:
Resources
6. If desired, place units of the resource on the layout How to assign multiple graphics to a
by selecting the Add button in the Resource Graphics
resource:
window and clicking on the layout. Every time you
create and place a resource graphic on the layout for
the same resource in the edit table, ProModel creates a 1. Select Resources from the Build menu.
new resource point. See “Resource Points” on 2. Highlight the desired resource in the Resources edit
page 141 for more information. table.
7. Supply any optional information about the resource 3. Uncheck the New box in the Resource Graphics
including number of units, downtimes, work and/or window.
park searches, and node logic in the Resources edit
table. 4. Click on the next blank resource graphic cell in the
Resource Graphics window.
5. Select the desired resource icon.
6. Change the color, rotation, or other aspect of the
Please note new graphic by clicking on the Edit button.
This example shows a forklift with two different Multi-unit resources are intended for use when
orientations. You may define as many graphics as several resources are defined with the exact same
needed for each resource. specifications and any resource can be used at a
number of locations. For example, a computer
Please note can be operated by one of three technicians. If
you did not use multi-unit resources, you would
need to specify “USE Technician1 OR
When changing the graphic for a resource in
Technician2 OR Technician3,” although this can
downtime logic, or in the case of dynamic
easily be abbreviated by using a macro to repre-
resources, node logic, the number after the word
sent the resource expression. When you define
GRAPHIC refers to the cell number in the
three units for a single resource, Res1, you can
Resource Graphics window as shown above. For
simply state “USE Res1” and one resource unit
example the statement GRAPHIC 2 would
will be used based on its availability.
change the forklift to the icon in cell number 2.
The default graphic is the graphic in cell number
1 if none is specified. See “Graphic” on page 482 Multiple Single-Unit Resources
for more information. Multiple single-unit resources are useful when
resources have different specifications, follow
different path networks, or are used at specific
locations. If several resources have the same
Multi-Unit Resources vs. specifications and travel the same path network
Multiple Single-Unit Resources but can only do work or interface with specific
locations, they must be defined as multiple sin-
gle-unit resources. This is because a unit of a
Multi-Unit Resources multi-unit resource must be able to interface with
When a resource is defined as having more than all locations where it is called to work.
one unit, each resource unit is given a numeric
suffix by which it is identified in the output Resource Downtimes
report. For example, a resource (Res1) which has
five units will display output statistics for Resource downtimes refer to the times when a
resources called Res1.1, Res1.2, . . . . Individual resource is unavailable due to scheduled events
units of a resource (e.g., GET Res1.1) cannot be like breaks and shift changes, or unscheduled
requested. events like illness and random failures. For
scheduled events, it is much easier and more
Suppose you define a resource, Technician,
straightforward to define these downtimes using
which has ten units. You also have ten locations
the Shift Editor (see “Shifts & Breaks” on
and each resource unit can only interface with
page 161). Unscheduled downtimes, based on the
one location. For example, Technician.5 can only
elapsed time of the simulation clock or resource
work at Loc5. Since “USE Technician.5” is
usage time, are defined in the Resources edit
invalid, you would need to use multiple single-
table by clicking on the downtime heading but-
unit resources instead (e.g., Technician1,
ton.
Technician2, Technician3).
132 Chapter 5:
Resources
page 577 for a list of statements valid in • none You may use none to indicate that no
Resource Downtime logic.) unit will adopt this downtime. This is use-
ful in creating a run-time interface. By
Disable Select YES to disable a downtime with-
using a macro to represent the number of
out removing it from the table.
units, the user may select none as an
option.
Usage-Based Downtime • Macro The name of a run-time interface
A usage-based downtime is a downtime based on macro that allows the user to define the
how long a resources has been used, such as how units to be affected by the downtime.
often a forklift needs to be refueled. Usage-based Node This field applies only to dynamic
downtimes for resources are specified through resources and defines the node to which the
the Usage Downtimes edit table shown below. resource will travel to go down. If no node is
Actual time in use includes any time that a entered, the resource stays at the current node.
resource is moving with an entity or is being used The actual downtime does not begin until the
by an entity at a location. It also includes any resource arrives at this node. Traveling to the
time a resource is being used in downtime logic downtime node is counted statistically as time
as a maintenance resource. The fields of this table traveling to park.
are defined as follows:
Logic... Specific logic to be performed when the
downtime begins, typically a WAIT statement.
Resources may be used to service resources that
are down if the servicing resource is static, or if
the servicing resource is dynamic and uses the
Frequency The time between downtimes, based same network. (For a list of statements valid in
on the usage time of a resource. This may be a Resource downtime logic, see the “Appendix A”
time distribution as shown above, or an expres- on page 577).
sion.
Disable Select YES to disable a downtime with-
First Time The time of the first downtime occur- out removing it from the table.
rence. Leave this field blank if the first occur-
rence is to be determined from the frequency
field. Please note
Priority The priority of the downtime (0-999). Usage-based downtimes do not accumulate. For
The default priority is 99, the highest non-pre- example, if a downtime is preempted by an entity
emptive priority. and another downtime is scheduled to occur
List A list of the individual units of the resource while processing the entity, only the first down-
to be affected by the downtime. You may list time resumes after processing the entity. All oth-
individual units of the resource, specify ALL, or ers are ignored.
leave blank to affect all units.
• 1,2 Units 1 and 2 only
• 1-3,5 Units 1 through 3 and 5 only
134 Chapter 5:
Resources
Non-preemptive DT vs. DT
• The upper-left quadrant shows that if an
entity tries to seize a resource currently DT 1
owned by another entity (or another
resource’s or a location’s downtime), the
entity must have a priority at least one
level higher than the current entity to pre- Scheduled DT 2
empt the resource.
• The lower-left quadrant shows that a down- Actual DT 2
time must have a priority at least one level
higher than the entity currently owning a
resource if the resource is to be preempted. Time
T1 T2 T3 T4
• The upper-right quadrant shows that an
entity must have a priority at least 2 levels DT 2 priority NOT at least 1 level higher than
higher than the current downtime priority DT 1 priority
to preempt a downed resource.
136 Chapter 5:
Resources
Entity
Ent 1
Scheduled DT
Actual
Ent 2
Time
Time
T1 T2 T3 T4
T1 T2 T3 T4
Entity DT
DT Entity
Time
Time
T1 T2 T3 T4 T1 T2 T3 T4
DT priority at least 1 level higher than Entity priority at least 2 levels higher
entity priority than DT priority
each resource in the system. Many of the items Break If the resource is assigned to a path net-
pertain only to dynamic resources (i.e., resources work and shift, this is the node to which the
with path networks). If the resource is static (i.e., resource travels to go on break.
not assigned to a path network) many of the
Resource Search When an entity that needs a
options will be disabled. The Resource Specifica-
resource must select between several available
tions dialog box includes the following fields:
resource units, it follows this rule. This only
applies to multi-unit resources. The following
rules may be specified:
• Closest Resource
• Least Utilized Resource
• Longest Idle Resource
Please note
Resource specification notes: Park Search Park searches are typically used to
get a resource off a main path segment, or send
1. The units to the side of these fields change the resource to the next most likely place work
automatically from feet to meters (and vice- will become available. A park search is a list of
versa) depending on the default distance units nodes to which a resource may be sent to park if
selected in the General Information dialog box. no work is waiting at either the work or default
2. Pickup and deposit times for resources are search locations.
included as transit time in the output statistics.
ProModel 139
User Guide
zone. The node logic for node N5 is identical to it. The horizontal offset is 0 units for each point.
that for node N2. The vertical offset is 13 units both up and down
from the node position. (For resource points posi-
tive distances are up and to the right.)
Please note
Processing is defined in the Processing Editor, Before you begin to specify the processing logic,
which is accessed through the Build menu. This define all locations and entities to be referenced
section first describes how to create simple pro- in the processing. This is done through the Loca-
cesses, then explains each feature of the Process- tion and Entity Editors. If you reference a loca-
ing Editor. tion or an entity that has not yet been defined in a
location or entity field, you will be prompted to
add that location or entity to the respective loca-
tion or entity list. However, no graphic gets auto-
matically assigned to the location or entity.
The easiest way to define the processing logic is
to define the routing or flow sequence using the
tools in the Processing Tools window, which
appears in the lower left corner of the Processing
Editor. These tools have been designed to allow
you to easily and rapidly define the flow of enti-
ties through the system. It is also a good idea to
define the routing rule for each routing as it is
created. Once you have defined the from-to rela-
tionships between locations for each entity, fill in
the details of the operation and move logic for
each location. This is typically done by typing the
logic in the operation or move logic column man-
ually or by using the Logic Builder, documented
How to create and edit process rout- at the end of this section.
ings: Defining processes graphically in ProModel
requires interaction with all four process editing
• Select Processing from the Build menu. windows.
• Process Edit Table
or... • Routing Edit Table
• Tools Window
• Right click on the existing process routing and select • Layout Window
Edit.
144 Chapter 5:
Processing
Before discussing the procedures for using these the top of the list—this entity will come into the loca-
windows interactively, let us look briefly at a pro- tion, it is not the entity that results from the process.
cess flowchart of a simple model. 2. Select the desired editing mode: New Process or
Add Routing.
Example Model 3. Click on the first location where the entity will pro-
cess. A rubber-banding routing line appears. If you
Two entity types, EntA and EntB, arrive at Loca-
select Add Routing, the rubber-banding routing arrow
tions 1A and 1B, respectively, according to some
automatically appears from the current location.
specified arrival logic. After a short preparation
time, both entities are routed to Location 2 where 4. To choose a different entity as the output entity,
1 EntB is joined to 1 EntA. At this point the select the desired output entity in the tools window.
resulting entity, EntC, is sent to Location 3 for 5. Click the destination location.
consolidation. Twelve EntC's are accumulated at
Location 3 and processed together for 3.0 min-
utes. Then they exit the system. Please note
EntB @ Loc1B
EntB
EntB 1.0 min 1 Exit
Arrival Processing
Logic Logic
8. Once all routings have been defined, enter the pro- shown in their default arrangement, you may
cessing logic in the operation field of the Process edit arrange them as desired.
table.
where after earlier processes. When searching for can also click on an entity name and select OK to
the next process, ProModel always searches for- place it in the table.
ward in the process list first, and then starts from
the beginning of the list.
Heading
Buttons
after the entity finishes that process, ProModel operations performed on other entities at the
will search ahead in the Process edit table for a same location.
process for the entity specific to the actual loca-
tion. The keyword ALL in the Location field is
particularly useful when entities route to different
locations having the same operations and then
route to a common destination. In most other
instances, it is recommended that a subroutine or
macro be used to define identical operations.
Operation Operation logic is optional, but typi-
cally contains at least a WAIT statement for the
amount of time the entity should spend at the
location. If the entity needs a resource to process
or to be combined in some way with other enti-
ties, that would be specified here as well. In fact, For more information see “Operation Logic” on
anything that needs to happen to the entity at the page 291.
location should be specified here, except for any
information specified in the entity's routing. Using the “ALL” Entity Type
Statements can be typed directly into the opera- The reserved word ALL may be entered as the
tion field, or inside a larger logic window after processing entity if all entity types at that location
double clicking in the field or clicking on the have the same operation. ALL may also be used
Operation button. Alternatively, the Logic in the output field of the routing if all entity types
Builder can help build logic and is accessed by at that location have the same routing. If a pro-
clicking the right mouse button inside the opera- cess record for a location using ALL as the entity
tion field or logic window. All of the statements, follows several process records for the same loca-
functions, and distributions available in the oper- tion using specific entity names, and each process
ation field are discussed in detail, including record has a defined routing, the ALL process is
examples, in “Statements and Functions” on interpreted to mean ALL of the rest of the enti-
page 429. ties. The following examples show how ALL
may be used in different situations.
Each entity performs the operation steps defined
for it at a particular location, independent of other
1.All entities have a common operation and a
common routing.
To define a common operation and routing for all
entity types at a location, simply enter ALL for
both the process entity name and the output entity
name.
In the following example three entity types,
EntA, EntB, and EntC, are all sent to a packing
station for packaging. The packing time is .5 min-
utes and the entities move on to a shipping sta-
148 Chapter 5:
Processing
Process Table table to the Process edit table (i.e., all routings
that appear in the routing edit table apply to the
Entity Location Operation (min)
currently highlighted process), though the two
EntA Loc1 WAIT .4
tables appear side by side. Not all process records
EntB Loc1 WAIT .5
need to have a corresponding routing. If the rout-
EntC Loc1 WAIT .6
ing is omitted, ProModel will search forward in
ALL Loc1
the Process edit table for another process for that
entity at that location. So an entity's complete
Routing Table
processing at a location could be broken into sev-
Blk Output Destination Rule Move Logic eral records. In that case, only the last process
would have a routing. If no routing is defined for
at least one of the process records for a given
entity and location, an error occurs.
1 ALL Packaging FIRST 1 MOVE FOR 1
Another situation that does not require routing is
Alternatively, you can assign an attribute to each when an entity changes its name at a location
entity which represents the processing time or after a RENAME AS or SPLIT AS statement.
some other entity-specific parameter. Then use Any time during processing logic that an entity
the attribute as the processing time, or call a sub- changes its name, ProModel searches forward in
routine and pass the attribute as a parameter for the Processing edit table until it finds a process
entity-specific processing. for the new name at the same location. For exam-
ple, if the identity of an entity is changed through
In the following example, the test time for each
a RENAME AS statement in the operation logic,
entity type is different. This time is stored in an
then no routing block will apply to the old entity.
attribute, Oper_Time. The attribute is then listed
Instead, the newly named entity will be routed by
on a line in the operation logic (with a WAIT
the process for the new name. (See “Rename” on
statement) to signify an operation time. Once the
test time for each entity is completed, the entities page 531).
are all routed to a packaging location.
Process Table
Entity Location Operation (min)
ALL Test WAIT Oper_Time
The fields of the Routing edit table are as fol-
Routing Table lows:
Blk Output Destination Rule Move Logic Blk This field contains the block number for the
1 ALL Packaging FIRST 1 MOVE FOR 1 current routing block. A routing block consists of
one or more alternative routings from which one
is selected based on the block rule (e.g., a list of
Routing Edit Table routings where one is selected based on the most
The Routing edit table defines the outputs for available capacity). Since all of the routings
each process record defined in the Process edit using the same rule are part of the same block,
table. The Routing edit table is really just a sub- only the first line of each routing block contains a
150 Chapter 5:
Processing
route block number. If no routing blocks have sequentially while split entities get processed
been referenced explicitly in the operation logic concurrently.
(for example “ROUTE n”), all routing blocks
If the reserved word ALL was used as the incom-
will be executed in sequence upon completion of
ing entity type for this process, it may also be
the operation logic (See “Route” on page 542).
entered here. Otherwise, every entity entering the
Multiple routing blocks are processed sequen-
location will change to the specified output
tially with the next block being processed when
entity. (See the discussion on using ALL in the
all of the entities in the previous block have
Entities section.)
begun executing any move logic defined. To
change the routing block number or add a new
routing block, see the discussion on the Routing
Rule dialog box later in this section.
The following example shows a process record
with two separate routing blocks. Note that both
routings will execute upon completion of the
operation time because no ROUTE statement has
been specified. One EntB gets routed to Loc2 and
one EntC gets routed to Loc3.
Process Table
Entity Location Operation (min)
The entity list box defaults to the current field
EntA Loc1 WAIT N(5,.3)
entity, the last entity selected, or the first entity
defined.
Routing Table
To better anticipate the entity entry likely to be
Blk Output Destination Rule Move Logic
made, the entity highlighted in the list box
1 EntB Loc2 FIRST 1 MOVE FOR 1
2 EntC Loc3 FIRST 1 MOVE FOR 2
defaults first to the current field entity, then to the
last entity selected, and finally to the first entity
Output If a routing is defined, the name of the defined.
entity resulting from the operation must be
entered here. This name may be the same as the The example below shows how an incoming
entity that entered, or it may be another name, or entity, EntA, changes identity and becomes an
even several names, each on a different line. EntB upon exiting location Loc1. This is done by
simply specifying the new entity name as the out-
Using another name works much like a put entity.
RENAME-AS statement, except that the entity is
routed according to the routing block instead of
being processed further at the same location.
Using several names on different lines is similar
to having a SPLIT AS statement in conjunction
with a RENAME-AS statement. The difference is
that multiple routing blocks are processed
ProModel 151
User Guide
box. The fields of this dialog box are defined in AS statement, dividing the cost statistics between
the following example. the split members and resetting all time statistics
to zero.
Please note
Note also that no more than one of the other rules more information on “Routing Move Logic” on
can appear in a single block (e.g., you cannot mix page 153.
a First Available rule and a Most Available rule in
the same block).
Processing Tools
For exact syntax and examples of each routing
rule, see “Routing Rules” on page 405. The Tools window provides graphical aids that
may be used to define processing records and
routing records. It is also used to define the
Routing Move Logic graphical paths that entities follow when moving
The Move Logic window allows you to define without a path network between locations.
the method of movement as well as any other
The Tools window, which appears along with the
logic to be executed prior to or after the move
other Processing windows, can define processing
actually takes place.
in one of two modes, New Process or Add Rout-
Once the route condition or rule has been satis- ing. Each is explained next. Additionally, Find
fied for allowing an entity to route to a particular Process Mode is available. To select a mode,
location, the move logic is immediately executed. click on the desired button. Each of the modes is
The entity does not actually leave the current described on the next page.
location until a move related statement (MOVE
FOR, MOVE ON, MOVE WITH) is executed or
the move logic is completed, whichever happens
first. This allows the entity to get one or more Editing Mode
resources, wait additional time, or wait until a
condition is satisfied before actually leaving the
location.
Any statements encountered in the move logic Current Entity
after the move related statement are executed
after the move is complete but before the entity
actually enters the next location. This is often
useful for freeing multiple resources that may
have been used to transport the entity.
When defining exit logic, such as incrementing a Routing Options
variable used to track the number of exits from a
location, it can generally go before the move
statement unless a MOVE WITH statement is
used and the entity must capture the resource
before making the move. In this situation, a GET
statement should be specified first to get the In addition to option buttons (New Process, Add
resource. Then the exit logic may be specified Routing, or Find Process) for the process editing
followed by the MOVE WITH statement. mode, the Tools window contains a list of defined
entities as well as the reserved word ALL to rep-
Any delay occurring as a result of move logic is resent all entity types. The entity in Processing
reported as part of the entity’s move time. For Tools applies to either the process or routing
154 Chapter 5:
Processing
New Process Mode 1. Click inside the desired record in the Process or
Routing edit table.
New Process Mode is used to create a new pro-
cess record. A new process is automatically cre- 2. Select Delete from the Edit menu.
ated for the selected entity each time you click on
a location.
This mode should be used if you want to create a Editing a Routing Path
process for a particular entity at a location. You
may even create multiple processes for the same Once a routing path has been defined you may
entity and location if you want to re-route an edit the path (regardless of the current mode) by
entity through the same location more than once clicking anywhere on the routing path. This
for additional operations. Once a new process is selects the path and allows you to change the
created, the mode automatically changes to Add source or destination of the routing by dragging
Routing mode to enable a routing to be defined the beginning or end of the path to a new loca-
for the process. tion. It also allows you to move any intermediate
joint in the path to change the shape. You may
also click on a path with the right mouse button to
How to define a new process using the create or delete a joint.
Tools window:
If a process is already defined and a location is
moved while in the Location module, the con-
1. Depress the New Process button.
necting leg of any routing lines will also move.
2. Select the entity for which a new process is to be
defined from the Tools window.
Add Routing Mode
3. Click on the location where the entity will be pro-
cessed in the layout window. A new process record is Add Routing Mode is used to create multiple
created in the edit table. The mode is automatically routings for a single process record. Suppose an
switched to Add Routing mode and a rubber banding entity, EntA, can travel to one of three locations
line appears that connects the mouse pointer to the depending on which is available first. Selecting
location. the New Process mode and then defining the
4. If a different entity is to be output from the process, entity process causes the entity to travel from one
select it from the Tools window. location to another location. Selecting Add Rout-
ing mode afterwards allows you to define a dif-
5. Click on the destination location. A new routing
ferent destination location within the same
record appears in the edit table and the mode switches
back to New Process mode. routing block.
ProModel 155
User Guide
• Select Arrivals from the Build menu. Qty each... The number (1 to 999999) of entities
to arrive at each arrival time interval. Any valid
expression may be entered here except for
attributes and non-general system functions. This
Arrivals Editor field is evaluated throughout the simulation run
and will change if the result of the expression
The Arrivals Editor consists of three windows changes.
that appear on the screen together. The Arrivals
ProModel 157
User Guide
To fill a location to capacity at every arrival time, Disable Set this field to YES or NO if you want
use the keyword INFINITE, abbreviated INF. to temporarily disable this arrival without delet-
ing it. This is useful when debugging a model and
If you have previously created an arrival cycle
for verification purposes where you want to fol-
and want to use it for this arrival, enter the name
low a single entity through the system.
of the arrival cycle followed optionally by a
quantity. You may also click on the Qty each...
heading button to select from the list of defined Arrivals edit table notes:
cycles. See the section on Arrival Cycles for
more information about defining cycles. 1. When several different entity types are sched-
First Time This option allows you to dynami- uled to arrive at a location simultaneously, they
cally vary the time of the first arrival to your will arrive in the order they are listed in the
model. You may define scheduled arrivals to Arrivals table. To have them alternate their arriv-
occur at given intervals (e.g., appointments) or als, enter a 1 in the “Qty each” field and the total
use an arrival cycle to define random arrivals entry quantity in the “Occurrences” field.
over a period of time (this value is the start time 2. Arrivals defined through an external arrival
for the first cycle). ProModel evaluates this field file will be appended to the arrival list. Therefore,
only at the beginning of the simulation. if an external arrival file is the only source of
Occurrences The number of times per simulation arrivals, the Arrival edit table may be left blank.
run that ProModel will generate arrivals (1 - See the section on External Files for more infor-
999999). Entering the reserved word INFINITE mation on arrival files.
(abbreviated INF) will cause ProModel to send 3. If the capacity of the location is insufficient to
the specified number of arrivals at every arrival hold all the arriving entities, the excess entities
time without limit. This value may be any expres- are destroyed. Therefore, the arrival location
sion and is evaluated only at the beginning of the should have a capacity at least equal to the “Qty
simulation. If an arrival cycle is used, this is the each” in the Arrivals edit table. If more entities
number of times to repeat the cycle. are scheduled into the system than are exiting, the
Frequency The inter-arrival time or time arrival location may not have enough capacity to
between arrivals. Any valid expression may be handle all the arrivals.
entered here except for attributes and non-general
system functions. If an arrival cycle was entered
for the arrival quantity, this is the time between
the start of each cycle. This field is evaluated Defining Arrivals
throughout the simulation run and will change if
Arrivals may be defined graphically by using the
the result of the expression changes.
tools in the Tools window, or by manually enter-
Logic This field defines any optional arrival ing the arrival information directly in the Arrivals
logic, consisting of one or more general state- edit table.
ments, to be executed by each entity upon its
arrival (e.g., assigning attribute values to entities How to define arrivals graphically:
as they arrive). Double-click inside this field or
click the logic button at the top of the column to 1. Select Arrivals from the Build menu.
define logic for an arrival.
158 Chapter 5:
Arrivals
2. Select the desired entity from the Tools window. appointments, meeting times, or pickup and
delivery times. When defining independent arriv-
als, remember that simulation can model only
predefined appointment schedules. This means
that dynamically scheduled appointments (e.g.,
rescheduling return visits to fit into available
slots) must take place where you define the
appointment schedule.
When defining independent arrivals, you may:
• Define them by elapsed time, day and time,
3. Click in the layout window at the location where the
or calendar date.
entity is to arrive. (You may need to scroll through the • Assign them to occur at fixed intervals (e.g.,
layout to bring the desired location into view.) interviews scheduled every fifteen min-
utes).
4. Enter the specifications for the arrival record (e.g.,
arrival quantity and frequency).
Please note
Independent Arrivals
An independent arrival is any arrival assigned to
occur at a specific time or at a fixed interval.
Independent arrivals include such things as
ProModel 159
User Guide
How to define independent arrivals: and time or calendar date and click the Edit
Arrival Time button.
1. Open the Arrivals module from the Build menu.
The arrival time must match the time units 7. In the variation and offset fields of the First time
selected for the simulation run-length. If you dialog, enter any optional distribution to define the
variation from the adjusted arrival time. Generally, to
defined the elapsed time by calendar date, you
prevent the arrival from being unrealistically late, you
must also define the simulation length by calen-
should use a doubly-bound distribution (i.e., uniform,
dar date. To edit arrival times, select either day normal, triangular, or beta). The triangular and beta
distributions provide the most realistic variation.
Variation
Arrival Appointment
Time Time
9:50 AM 10:00 AM
160 Chapter 5:
Arrivals
8. In the Occurrences field of the arrivals edit table, The arrivals logic for the entity called Test1 is as
enter the number of times to repeat this appointment follows:
definition. (Enter 1 if it will occur only once.)
Arrival Logic
Arrival Logic allows you to perform certain logic
as an entity enters the system and is used prima-
rily for assigning initial entity attribute values.
Suppose you process three different types of sam-
ples at an inspection station and each sample
takes either 8, 10, or 12 minutes to test. Fifty per-
cent of the samples take 8 minutes to test, 35%
take 10 minutes, and 15% take 12 minutes.
The samples have different processing times
depending on the test performed. To differentiate
between the different types of samples, we assign
an entity attribute called Sample_Type to the
samples. We define a discrete, non-cumulative
user distribution called Test1 with the following
information:
ProModel 161
User Guide
Main Menu
The Main menu in the Shift Editor is accessible
from the Menu button found at the top left corner
of the application.
New Start a new shift file definition. If a shift
file is already open, it will be closed. If the shift
file was modified, you will be prompted to save
the changes before it is closed.
Open Browse to open a shift file for viewing or
How to define a shift: editing.
1. Select Shifts from the Build menu.
Save Saves any changes made to the loaded shift
2. Select Define from the submenu. file. If it is a newly defined shift file, the Save As
dialog will open.
Save As Save the currently loaded shift file as a
Shift Editor different filename.
The Shift Editor window consists of a Main menu Recent Shift Files Lists the most recently loaded
button, Quick Access toolbar, Add Work, Add shift files opened in the Shift Editor.
Break and Erase buttons, a Clear All button, the
162 Chapter 5:
Shifts & Breaks
Adding, Editing Work and Break 1. Select the Add Work or Add Break button (or, if
adding break time, select the Add Work button and
Time then press the Ctrl key while dragging the mouse).
2. Add Work or Break time to the beginning or end of
Adding Work existing Work or Break time by clicking and dragging
the mouse on the grid.
1. Click on the Add Work button to designate the 3. Removing Work or Break time is accomplished
drawing mode. using the Erase button. (See Erasing Work or Break
2. Click and begin dragging the mouse from the day Time)
and time on the grid the work should begin.
3. Release the mouse button at the day and time the Please Note
work should end.
Break time can be added to multiple days simul-
taneously by dragging the mouse across multiple
days.
ProModel 163
User Guide
Erasing Work or Break Time processing location, where the employee will be
requested at the appropriate priority level.
1. Select the Erase button (or, with the Add Work but- There are many ways to use shift assignments
ton selected, right-click and drag the mouse). and shift logic to solve any number of problems
2. Erase Work or Break time by clicking and dragging in creating a valid model. This chapter explores
the mouse on the day and time in the grid where Work the features and functionality of the Shift Assign-
or Break time should begin to be removed. ments module, including statements and func-
3. Release the mouse at the day and time the Work or tions for shift and break logic.
Break time should stop being erased.
Assigning Shifts
ProModel allows you to can select multiple loca-
Shift Assignments tions and resources and assign them to a shift in
one record. Plus, you can:
The Shift Assignment module allows you to
• assign a location or resource to multiple shift
model everyday, real-life situations involving
scheduling and availability issues, and you can files with a start time for each shift,
easily define logic to control the way your model • define off-shift and break priorities, and
handles these problems. • create off-shift and break logic.
If you have an employee that works a split shift, The Shift Assignments module allows you to
assign two shifts to the resource with the corre- schedule the availability of resources and loca-
sponding start times. If you have a processing tions based on shifts and work breaks defined in
location that can only be used during specifically the Shift Editor. When a location or resource goes
scheduled hours, set up a separate shift for that off shift or on break, it is off-line or off-duty and
location. is reported in the output statistics as non-sched-
uled time rather than downtime.
You may have an office or some other operation
just starting up, and you need to run a specific The off-shift and break logic are optional and
shift for the first week and another for two more allow you to control more precisely when a
weeks before going to your full capacity shift
schedule. Simply set up three shifts and assign
them all to the office in one step, indicating the
appropriate start times for each.
If you want to establish a controlled location
gateway: Among fulfilling other duties, your
employee needs to begin doing something (pro-
cessing a certain entity at a certain location) at a
certain time, so you set up a queue location, a
gate location (with a capacity of one), and a pro-
cessing location. Assign a shift to the gate loca-
tion so it will come on line at the designated time.
Now the gate location begins taking the entities
from the queue location and moving them to the
164 Chapter 5:
Shifts & Breaks
resource or location may go off shift, on break, ing on a location also selects or removes it. Click OK
and how long before it becomes available again. when finished.
creating a run-time interface. By using a resource or location back on line. You can also use
macro to represent the number of units, the macros to specify priorities.
user may select none as an option.
Macro The name of a run-time interface
macro that allows the user to define the units
to be affected by the shift.
5. Select Shift Files - Click the Shift Files button to
display the Select Shift Files dialog (shown next).
Click on the Add button to display the File Open dialog
and select the shift files you want to use in the model.
Please note
specify a WAIT statement for the off-line time Pre-off shift logic
and SKIP the off-line time defined in the Shift
Editor. IF FORRESOURCE() THEN
PRIORITY This statement provides an alterna- BEGIN
tive way to specify off-shift or break priorities. It
IF RESOURCE() = Loan_Officer THEN
also allows the priority to be changed after some
time being off-shift or on break. If the priority is BEGIN
changed to a value lower than the current value, WAIT UNTIL Applications = 0
the system will check to see if any preemption
END
may occur at that time. This statement is not
allowed in off-shift or break pre-start logic. END
Entity
Example 2
T1 T2 T3 T4
In this example an entity with priority of 200 or
Although the downtime is scheduled to last from greater preempts an off-shift location. The loca-
time T2 to T4, the actual downtime does not tion becomes available to process the entity.
begin until time T3. This is what happens for
both locations and resources currently busy when
the shift downtime is scheduled to occur.
To preempt a location in which an entity is cur-
rently processing, set the priority for going off
shift to a number one level higher than the
entity’s priority.
ProModel 169
User Guide
Once processing is complete, the location returns tion remains off-shift for the total duration of the
to its off-shift status. shift downtime.
Shift DT
Shift DT
DT
Entity
Time
Time
T1 T2 T3 T4
T1 T2 T3 T4
In order for an entity to preempt any location The example above could represent the situation
downtime (shift or otherwise), it must have a pri- where a recurring downtime, such as a lunch or
ority level that is at least 2 levels higher than the dinner break, has been defined for a single loca-
downtime's priority. In this example the location tion that is scheduled to be available for a two-
shift downtime has a priority level of 99 so the shift period. It would be simpler to specify a sin-
entity must have a priority level of 200 or greater gle downtime for lunch and dinner that occurs
to preempt the shift. once every 8 hours continuously than to define
separate downtimes for lunch and dinner. In this
Overlapping Downtimes case the preempting downtime would represent a
meal break occurring while the location was off-
If a preemptive clock downtime occurs during a
shift.
shift downtime, the downtimes simply overlap.
Example 1
Suppose a resource, repairman, is off-shift. An
important machine goes down unexpectedly.
Because this machine is a bottleneck in the opera-
170 Chapter 5:
Shifts & Breaks
tion, it is vital to repair the machine as quickly as it would have been had the original shift down-
possible. The repairman is called in and takes 30 time been completed.
minutes to fix the machine. The logic for the
downtime to call him back is “USE Repairman,
Shift
600 FOR 30 min”. This will preempt the shift
downtime and use the repairman to repair the Discontinued
machine even though the repairman is off-shift.
Once the repairman has repaired the machine, he DT
returns to his shift downtime until he is scheduled
to go back on shift. The repairman's shift down- Time
time will end at the originally scheduled time
regardless of the fact it was preempted by a repair
activity. T1 T2 T3 T4
Example 2
This example shows the effect of a preemptive
downtime occurring for a resource already off-
shift due to a shift downtime. Since resource
downtimes are not overlapping, as in the case of
location downtimes, the shift downtime in
progress is discontinued and the preemptive
downtime takes control of the resource because it
has a priority greater than or equal to five-hun-
dred (remember that a downtime priority needs to
be only one level higher than another downtime
priority to preempt it). The effect in this example
is that the total downtime is actually shorter than
ProModel 171
User Guide
Initialization Logic
Initialization logic allows you to initialize arrays,
variables, and other elements at the beginning of
a simulation run as shown below:
Please note
Other common uses of initialization logic
include: Although Initialization and Termination logic
• Reading external files cannot be tested with the Compile option in the
• Displaying messages Edit menu, as with Processing or Arrival logic,
• Prompting for values
the logic can be tested by clicking on the compile
button in the logic window. ProModel checks all
• Resetting general read/write files
logic automatically upon selecting OK and, if an
• Activating independent subroutines that pro-
error in the logic is found, an error message
cess logic based on a timer. (See “Subrou-
describing the problem will appear.
tines” on page 238; also see “Activate” on
page 431).
For a discussion of each of the buttons in the Ini-
tialization Logic window, see “Editing Logic Execution Time of Initialization and
Windows” on page 72. Termination Logic
It is important to understand exactly when initial-
ization and termination logic is executed. When
ProModel 173
User Guide
you select Run from the Simulation menu the fol- logic. The model structure cannot change after
lowing things occur in the order listed: the model has been loaded into the simulation
module. Thus, any variable or array figuring into
1. Arrays are initialized based upon the defined
a location's capacity and initialized in the initial-
Import specifications
ization logic will be initialized too late to affect
2. Variables are initialized to the values speci-
the location's capacity.
fied in the Variables Editor.
3. Macros with a run-time interface are set to Variables or arrays which do not figure into a
their user-specified value. location's capacity may be initialized in the Ini-
4. The model is loaded into the simulation tialization Logic without any problem. A variable
module. As the model is loaded, any numeric initialized in the initialization logic could be used
expressions used to define such things as as the “First Time” for an arrival or downtime
location capacities or number of resource occurrence. This is true because arrivals and
units are evaluated and assigned a numeric downtime occurrences are simulation events, and
value. all initialization logic occurs before the first sim-
5. Initialization logic is performed. ulation event.
6. Simulation begins. Initial arrivals and down-
times are scheduled and simulation pro- Graphic Library File
cesses begin.
7. Simulation ends. ProModel allows you to create and store as many
8. Termination logic is performed. graphics libraries as desired. However, only one
9. Statistics are compiled. graphic library may be used for each model. To
copy a graphic from one graphic library to
Logic elements that figure into a model's struc- another model's graphic library, see “Copying a
ture are evaluated only when the model is loaded Graphic from One Library to Another” on
into the simulation module. Those logic elements page 308.
are:
• Simulation warm-up hours How to select the desired graphics
• Simulation run hours library:
• Node capacity
• Length of path segments 1. Select Graphic Library File from the General
• Resource units Information dialog box.
• Location capacity
• Queue length
• Conveyor length
• Conveyor speed
For a complete list of when each field is evalu-
ated, see the “Appendix A” on page 577.
Any variables or arrays used in an expression that
change any of these logic elements should be ini-
tialized in the Variables Editor, Arrays Import, or
run-time interface and not in the initialization
174 Chapter 5:
General Information
Please note
Locations
Per With this pull-down menu, you can set the cost applies to the resource only when it returns
time units for the Operation Rate. Time units may to the entity.
be in seconds, minutes, hours, or days as shown
here.
Entities
Resources
disables costing and sets all defaults to zero. See both entities. If the preempting entity
“Enable or Disable Costing” on page 179. obtains a resource, the preempted entity
will not record the resource costs during
the preemption period.
• If an entity is at a location when a preemp-
tive downtime occurs, the entity records
the downtime as part of its operational
costs. This applies to all types of location
downtimes, including shifts. The location
records the cost of the preempted entity
while it remains at the location.
• If an entity’s resource has a downtime which
requires the use of another resource, the
entity will not record the second resource’s
cost. However, the location will record the
extra resource’s cost.
Join/Load
• Joined and permanently loaded entities add
their costs to their base entities, but not
their time statistics.
• Loaded entities do not add their costs or time
Please note statistics to their base entities.
• When an UNLOAD occurs, ProModel
The following scenarios assume you defined costs divides all costs accrued by a loaded entity
for all model components. among the unloaded entities. ProModel
adds all other entity statistics calculated
during the loaded period to each of the
unloaded entities.
• Entities leaving the system that were tempo-
Preemption/Downtime rarily loaded onto other entities do NOT
• If you preempt an entity’s resource, an addi- report their individual costs, but do report
tional cost per use will apply once you re- all other statistics. To get the cost of each
acquire the resource. While waiting for the entity, you must unload the entities before
resource to return, the entity does not they exit or permanently load them when
record operation or resource costs. they are initially loaded using the LOAD
• If an entity preempts another entity, the pre- PERM statement.
empted entity continues to record opera-
tion time during the entire preemption
period. While the preempting and pre- Combine/Group
empted entities are simultaneously at a • Combined entities add their costs to the
location, the location records the cost for resultant entity, but not their time statis-
178 Chapter 5:
Cost
tics. The resultant entity begins with fresh • The SPLIT AS statement divides the cost of
time statistics. the original entity between all entities.
• Grouped entities do not add their costs or Each new entity begins with new time sta-
statistics to the group shell (a temporary tistics.
entity representing grouped entities that
starts with cost and time statistics of zero).
• When an UNGROUP occurs, ProModel
Costing Output Statistics
divides all costs accrued by a grouped ProModel collects costing statistics only if you
entity among the ungrouped entities. Pro- uncheck the Disable Cost Statistics option in the
Model copies all other entity statistics cal- Simulation Options menu (see “Enable or Dis-
culated during the grouped period to each able Costing” on page 179). Included in the Gen-
of the ungrouped entities. eral Statistics Report, ProModel calculates
• Entities leaving the system grouped with costing statistics.
other entities do NOT report their individ-
ual costs, but do report all other statistics. Locations
To get the cost of each entity, you must • Operational Cost = (Active Operation Time
ungroup the entities before they exit. * Rate) + (Any IncLocCost)
• % Operational Cost refers to the location’s
Special Cost Handling percentage of the sum of all operation
costs
• As soon as you acquire a resource, it begins • Resource Cost = (Utilization * Rate) +
to accrue cost. (Times Used * Cost per use)
• Unless obtained in the move logic, ProModel
charges the “Cost per use” for a resource
Please note
to the location that obtained it. Resources
obtained in the move logic do not charge a
“per use” cost to any location. For Resource Cost, Utilization and Times Used
refer to the utilization of a resource while at a
• ProModel does not charge any resource time
location. This applies only to resource use
used during move logic to any location.
through operation logic.
• ProModel adds initial entity costs defined in
the cost module only as entity costs, not
location costs.
• If a location uses a resource during a down- • % Resource Cost refers to the location’s per-
time, the location accrues that resource’s centage of the sum of all resource costs
cost.
• Total Cost = (Operation Cost + Resource
• The USE statement counts as operation and Cost)
resource cost.
• % Total Cost refers to location’s percentage
• When you CREATE a new entity, it begins of the sum of all location costs
with new time statistics and an initial cost.
• If you RENAME an entity, previous time Resources
statistics and costs continue with the
• NonUse Cost = (1-% Utilization) * Sched-
entity.
uled Time * Rate
ProModel 179
User Guide
• % NonUse Cost refers to the resource’s per- • % Total Cost % Total Cost refers to the
centage of the sum of all nonuse costs entity’s percentage of sum of all entity
• Usage Cost = (% Utilization * Scheduled costs
Time * Rate) + (Times Used * Cost per In the above calculations, the rate defined (per
use) day, hour, minute, and second) converts to the
• % Usage Cost refers to the resource’s per- default time units specified in the General Infor-
centage of the sum of all resource usage mation dialog.
costs
• Total Cost = Usage Cost + NonUse Cost In the above calculations, the rate defined (per
day, hour, minute, and second) converts to the
• % Total Cost refers to the resource’s percent-
default time units specified in the General Infor-
age of the sum of all resource costs
mation dialog.
Entities
• Explicit Exits The number of entities that Please note
have explicitly exited. Whenever an entity
exits the system, it is an explicit exit ProModel does not allow you to generate a Cost-
except in the following cases: ing Graph. However, if you set a variable equal
- When an entity JOINS, permanently to GetCost (e.g., Var1=GetCost), you can gener-
LOADS, or COMBINES with another ate a time series graph to track changing entity
entity, it implicitly exits the system, and costs. See “GetCost()” on page 478 for more
is reported as an exit in the Entity Activ- information.
ity report. However, for costing pur-
poses, the entity did not explicitly exit,
but its costing information was added to
the entity it was JOINED, permanently Enable or Disable Costing
LOADS, or COMBINED with.
- When an entity temporarily LOADS or To enable the costing feature, be sure that the
GROUPS with another entity, and the Disable Cost option in the Simulation Options
entire LOADED or GROUPED entity dialog is not checked.
exits the system, the original entity
implicitly exits the system, and is
reported as an exit in the Entity Activity
report. However, for costing purposes,
the original entity did not explicitly exit,
but its costing information was added to
the entire load or group.
• Total Cost Dollars Total Cost = cumula-
tive entity cost, or the sum of costs
incurred on all locations the entity passed
through + the sum of all costs incurred by
use of resource + initial cost + any IncEnt-
Cost
180 Chapter 5:
Tanks
Please note
How to change between a tank and a Subroutine module. To call these subroutines and
gauge operate them independently in the model, use the
ACTIVATE statement. For examples of how to
use these subroutines, see the discussion at the
• Double click on the tank or gauge and check or
uncheck the tank option. end of this section. To model tanks effectively,
you must understand the following concepts.
Basic Concepts
Since tanks do not process discrete entities, you
may not define routings to or from tanks. To con-
trol a tank level, ProModel provides predefined
subroutines that fill, empty, and transfer tank con-
tents. To monitor tank levels and initiate flows,
you must define control subroutines using the
182 Chapter 5:
Tanks
The Flow Time Step flow. The units of flow, however, may change
when you move material from one tank to
To model continuous flow, ProModel uses a another (e.g., pounds of dry material may transfer
Tank_TimeStep macro. This macro is the time into a tank containing gallons of liquid).
step used when filling/emptying tanks and is an
RTI (run-time interface) parameter. Initially, Pro- To specify a variable rate of flow that changes
Model sets this value to .2 minutes. If you wish to dynamically with each time step, pass a value of
use a different value for the time step, you may 0. This signals the subroutine to call the
change it temporarily (for a particular model) Tank_Rate subroutine with each time step. To
through the Simulation/Parameters menu option, return the desired rate value for each time step
or permanently by changing the macro itself. The when you use a variable rate, you must modify
larger the time step, the longer the interval the Tank_Rate subroutine appropriately.
between filling and emptying (which speeds up
the simulation). For example, suppose you set the Tank States
time step to .1 minutes. If a tank empties at a rate
of 60 gpm, the simulation would actually empty Like other model elements, tanks use states to
the tank by a discrete amount of 6 gallons every test and track statistics. ProModel automatically
.1 minutes. When filling or emptying a tank, if sets these states when you use the predefined tank
the remaining quantity doesn't require the full subroutines to control the tank. The following are
time step, ProModel reduces the time step using a defined states:
linear interpolation. Tank_Idle The tank is empty and not in use. Set
automatically when a tank empties and at the end
Please note of a Tank_DoPrep or Tank_GoDown subroutine.
Tank_Operation The tank is active (e.g., mixing,
The only adverse effect of using a large time step reacting, heating). Set automatically when the
is that any WAIT UNTIL statement or other test model calls the Tank_DoOperation subroutine.
based on the Tank_Level array may be off by as
much as the flow amount for the time step. For Tank_Setup The tank is cleaning or preparing for
example, if the time step is .5 minutes and the rate future use. Set automatically whenever you call
of flow is 60 gpm, the level will change in 30 gal- the Tank_Prep subroutine.
lon increments. This means that the tank will not Tank_Filling The tank is filling. Set automati-
satisfy the statement “WAIT UNTIL cally whenever you fill the tank.
Tank_Level[TankA]>=31” until the level reaches
60. Tank_Emptying The tank is emptying. Set auto-
matically whenever you empty the tank.
Tank_Blocked The tank is full and ready to
transfer. Set automatically when the tank fills to
Rate of Flow capacity.
To use flow rates properly, you must define all Tank_Down The tank is down. Set automatically
rates in terms of units (i.e., gallons, pounds) per whenever you call Tank_GoDown.
time unit defined in the General Information dia-
log. Whenever you call one of the empty, fill, or
transfer subroutines, you must specify the rate of
ProModel 183
User Guide
Tank Downtimes
For Tanks, you must define downtimes and shifts
in a special way. First, you may define only clock
downtimes for tanks. Second, when defining a
clock downtime for a tank, use the
Tank_GoDown subroutine (page 193) in the
Downtime Logic field instead of just a WAIT
statement. This sets the state of the tank to
Tank_Down and gathers the appropriate statis-
tics. Third, when defining a shift for a tank, you
should call the Tank_GoDownSched subroutine
in the off-shift logic using the DTLeft() function
as the time parameter. A SKIP statement should
follow this function as shown next.
184 Chapter 5:
Tanks
Please note
tines
Tank_Cap ............................................... page 192 Description
Tank_Dec ................................................ page 190 Fills a tank using a specific quantity and rate. The
Tank_DoOperation .................................. page 193 default tank state sets to Tank_Filling, then to
Tank_Blocked if the tank becomes full.
Tank_DoPrep .......................................... page 195
Use Tank_Fill when the source of the material is
Tank_Empty ........................................... page 186 not another tank, but an arriving entity or a
Tank_FallTrigger .................................... page 191 source that is not part of the model.
Syntax samples
Example
TANK_FILL (<Tank ID>, <Fill Quantity>, <Fill
Rate>, <Resume Level>)
186 Chapter 5:
Pre-defined Tank Subroutines
A tanker arrives and fills a storage tank by the quantity The number of units (gallons, pounds) to empty. To
stored in the tanker’s attribute, Load_Qty. The rate of empty a tank completely of its current contents, enter
fill is 80 gpm and, if the tank fills to capacity before the Tank_Level [<Tank ID>].
tanker discharges the entire quantity, the level of the
<Empty Rate>
storage tank must drop to 12,000 gallons before it
resumes filling. To represent this, enter the following The rate in units (gallons, pounds) per time unit
statement in the operation logic for the tanker at the defined in the General Information dialog. To instantly
unloading station. decrease the level of a tank, use the Tank_Dec subrou-
tine. To specify a dynamically calculated rate using the
Tank_Fill(StorageTank, Load_Qty, 80, 12000)
Tank_Rate subroutine, enter 0.
<Resume level>
If the tank level drops to 0 before you empty the speci-
See Also fied quantity, the tank must rise to the resume level
before continuing to empty. To terminate emptying if
“Filling from an Entity” on page 202 and “Initial-
the level ever drops to 0, enter Tank_Stop. A value of 0
izing and Replenishing Supply Tanks” on
causes an error to occur if the tank becomes empty
page 202. before removing the specified quantity.
Tank_Empty Example
<Tank ID>
The tank name or location index number.
<Empty Quantity>
ProModel 187
User Guide
Components
See Also
<FROM Tank ID> “Tank Transfers” on page 204.
The name or location index number of the FROM tank.
<TO Tank ID> Tank_TransferUpTo
The name or location index number of the TO tank.
<Transfer Quantity> Syntax samples
The number of units (gallons, pounds) to transfer. To
transfer the entire contents of a tank, enter Tank_Level TANK_TRANSFERUPTO (<FROM Tank ID>, <TO
[<FROM Tank ID>]. Tank ID>, <TO Level >, <FROM Rate>, <TO Rate>)
<FROM Rate> TANK_TRANSFERUPTO (Tank1, Tank2, 8500, 75,
0)
The rate in units (gallons, pounds) per time unit
defined out of the FROM tank. To use a dynamically
calculated rate in the Tank_Rate subroutine, enter 0.
<TO Rate>
188 Chapter 5:
Pre-defined Tank Subroutines
Tank_Inc Tank_Dec
Description Description
Instantly increases the level of a tank by a speci- Instantly decreases the level of a tank by a speci-
fied quantity. If the tank has insufficient capacity, fied quantity. If the tank has insufficient quantity,
the level increases as capacity becomes available. it empties as material becomes available. Pro-
ProModel sets the tank state to Tank_Blocked if Model sets the tank state to Tank_Idle if you
the level increases to the tank capacity, otherwise decrease the level to 0. Otherwise the state
the state remains unchanged. remains unchanged.
Use Tank_Inc to instantly add a specific quantity Use Tank_Dec to instantly remove a specific
to a tank. quantity from a tank.
Components Components
Example
Example
A fill tank fills one 10-gallon container every 15 sec-
Trucks deliver pellets to a holding bin twice a day. onds. After filling, each container moves to a location
When a truck arrives at the drop-off station, it dumps called FillStation. To model this activity, define the fol-
the entire 5,000 lb load in only 2.5 minutes. To model lowing activated subroutine (this subroutine creates a
this, define the following operation logic for the truck filled container every 15 seconds):
at the drop-off station:
ProModel 191
User Guide
Tank_Loop //logic repeats continuously A tanker waits at a dispatch station until the level of a
finished goods tank rises to 2,000 gallons. Once the
{
tank level reaches this point, a signal dispatches the
WAIT 15 SEC tanker to the finished goods tank for loading. Mean-
Tank_Dec(FillTank, 10) while, the finished goods tank continues filling. To
model this situation, define the following process logic
ORDER 1 Container TO FillStation for the tanker at the dispatch station:
} Tank_RiseTrigger (FGTank, 2000)
Description Tank_FallTrigger
Waits until tank contents rises to a specific level.
Use Tank_RiseTrigger to initiate some action Syntax sample
when a tank rises to a certain level.
TANK_FALLTRIGGER (<Tank ID>, <Level>)
<Tank ID>
The tank name or location index number. Description
<Level> Waits until tank contents falls to a specified level.
When the tank level rises to this value, ProModel exe-
Use Tank_FallTrigger to initiate an action when a
cutes any subsequent logic.
tank level falls to a specific level.
Example Components
<Tank ID>
192 Chapter 5:
Pre-defined Tank Subroutines
Please note
Syntax samples
Tank_DoOperation Tank_GoDown
Description
Description
Sets the state of the tank to Tank_Down, waits for
Sets the state of the tank to Tank_Operation and the specified downtime, then sets the state back
waits for the specified operation time. ProModel to the previous setting. If you defined a downtime
sets the state to Tank_Blocked after the operation. using the location downtime dialog, call the
Tank_GoDown subroutine in the downtime logic
Use Tank_DoOperation when some activity or
rather than use a WAIT statement. If the down-
treatment time is necessary for the material in a
tank. time is for cleaning, use the Tank_DoPrep sub-
routine.
<Tank ID>
Example The tank name or location index number.
<Down time>
After technicians add all the necessary ingredients to
the mixing tank, the tank requires a 20 minute mixing The duration (in time units defined in the General
time. To define this operation, enter the following Information dialog) of the downtime.
statement in the subroutine for the mixing activity:
Tank_DoOperation(MixingTank, 20)
Example
deviation of 1 minute. To define this behavior, define a nance or end of scheduled workday). Since the
clock downtime for the bin to occur with a frequency tank uses a scheduled downtime, the time lapsed
of E(10) minutes. In the logic defined for the down- during the event does not record as a downtime.
time, enter the following logic:
Tank_GoDownSched
Syntax samples
Description
Sets the state of the tank to
Tank_ScheduledDown, waits for the specified
scheduled downtime, then sets the tank state back
to its previous setting. If you defined a scheduled
downtime using the location downtime dialog,
call the Tank_GoDownSched subroutine in the
downtime logic rather than use a WAIT state-
ment. If the downtime is for cleaning and you
will return the tank status to idle, use the
Tank_DoPrep subroutine.
Use Tank_GoDownSched to shut down a tank for
a scheduled task or event (e.g., interim mainte-
ProModel 195
User Guide
Components Description
Sets the state of the tank to Tank_Setup, waits for
<Tank ID> the specified time, then sets the state to
The tank name or location index number. Tank_Idle. Use Tank_DoPrep for cleaning activi-
<Down time> ties after you empty a tank.
The duration (in time units defined in the General Use Tank_DoPrep to take a tank off line for
Information dialog) of the scheduled downtime. cleaning or other preparation time.
Components
Example
<Tank ID>
Every 4 hours, a technician must check the fill line The tank name or location index number.
from a dry supply bin. The time required to check the
line is normally distributed with a mean of 10 minutes <Prep time>
and a standard deviation of 3 minutes. To define this The duration (in time units defined in the General
behavior, define a clock-based, scheduled downtime Information dialog) of preparation time.
for the bin to occur with a frequency of 4 hours. In the
logic defined for the downtime, enter the following:
Example
See Also
Tank_DoPrep
“Mixing and Reactor Tanks” on page 203.
Syntax samples
Tank_SetState Description
Selects an output tank from among several tanks
Syntax samples based on a selection rule and optional product
type. To use this function, list all tanks included
TANK_SETSTATE (<Tank ID>, <State>) in the selection decision together in the Location
module.
TANK_SETSTATE (TankA, Tank_Idle)
Components
No
Is the specified Max
level > 0?
Yes
Is
there a tank Is
No No Wait for first tank to
No there an idle
with level > 0 but Is the specified Max become idle.
less than Max level and tank that satisfies
level > 0?
same product selection rule?
type?
Yes Yes
Yes
Yes
Return Tank ID
Tank_Emptying (if emptying), Tank_Blocked (if The name or location index number of the TO tank
full), or Tank_Idle (if empty). (this value should be 0 if there is no TO tank).
Tank_State array Tracks the state of the tank. • Total Entries The number of units (e.g., gal-
lons, pounds) to enter the tank.
Tank_Product array An optional array used to
• Avg Minutes Per Entry Left blank since
record or test the product currently at a tank.
there is no individual entry for a tank.
Tank_Statistics array A two-dimensional array
Tank_Fills array An optional array used to track
of type real used to record tank level statistics
the number of transfers to a tank. This is espe-
whenever the level changes. Generally, you will
cially useful when you activate multiple
never need to reference this array since values
Tank_Fill or Tank_Transfer subroutines for a
automatically update when you use the pre-
tank and you wish to know when the fills are
defined Tank subroutines. All times are in time
complete. The user sets the value of Tank_Fills to
units defined in the General Information dialog.
zero before activating the subroutines, then
ProModel always gathers these statistics but
defines a WAIT UNTIL statement after the
reports them only if you check Basic or Time
ACTIVATE statement. The Tank_Fills array
Series statistics for the tank location.
increments automatically when a Tank_Fill or a
Column Description Reset After Warm-up Tank_Transfer subroutine executes. See “Mixing
1 Last level NC and Reactor Tanks” on page 203 for additional
2 Last change time Current time in time information.
units defined in the
General Information
dialog Statistics
3 Cum time-weighted 0
level
4 Entries Value of column 1
Please note
5 Max contents Value of column 1
6 Last State Change Current time in time
TS = Tank_Statistics array
units defined in the n = Location index number of tank
General Information
dialog
7 Cum time Idle 0
8 Cum time Operation 0
Calculating Location Statistics for
9 Cum time Setup 0
Tanks
10 Cum time Filling 0
11 Cum time Emptying 0
Entries = TS [n, 4]
12 Cum time Blocked 0
13 Cum time Down 0 Avg. Time per Entry = (not applicable)
14 Current downtime NC Avg. Contents = TS[n,3] / Scheduled Time
count
Max Contents = TS [n,5]
As shown in the previous table, the statistics col- Current Contents = TS [n,1]
lected in the Tank_Statistics array automatically Utilization=100 x TS[n,3] / (Capacity x Scheduled
reset after any warm-up period. ProModel reports Time)
output statistics under Location statistics and
Location States by Percentage. When reporting
Location statistics for tanks, note the following:
ProModel 201
User Guide
Mixing and Reactor Tanks If the ingredients feed into the mixing tank at the
Mixing and reactor tanks receive material usually same time rather than sequentially, activate the
from one or more supply tanks. Once it receives Tank_Transfer subroutines for the mixing tank
the material, the tank may require a mixing or and monitor the Tank_Fills array to know which
other reaction time. To illustrate, suppose we ingredients enter into the tank. For simultaneous
have two tanks (Tank1 and Tank2) supplying fills, replace the first two transfer statements fol-
ingredients to a tank called MixingTank. First, lowing the BEGIN statement in the previous sub-
workers pump 2000 gallons of a liquid from routine with the following logic:
Tank1 at 50 gallons per minute followed by the
transfer of 300 pounds of dry mix from Tank2 at Simultaneously mix, then clean tank
20 pounds a minute (the dry mix adds .2 gallons
to the level of the MixingTank for every pound
Tank_Fills[MixingTank]=0
transferred, equating to 4 gallons per minute).
The ingredients then mix for 15 minutes before ACTIVATE Tank_Transfer(Tank1, MixingTank, 2000,
transferring to an idle storage tank. After trans- 50, 0, 0)
ferring the mix, workers must clean the Mixing- ACTIVATE Tank_Transfer(Tank2, MixingTank, 300,
Tank for 50 minutes to prepare it for the next 20, 4, 0)
mixing cycle. WAIT UNTIL Tank_Fills[MixingTank]=2
The control logic for the mixing tank should be a ...
subroutine activated from the initialization logic
which continues to loop throughout the simula-
tion. The subroutine logic might appear as fol-
lows: Emptying to an Entity
Often, tanks deliver material to discrete entities
Mix and clean the tank such as containers (or perhaps the material itself
converts to discrete entities through a solidifica-
Tank_Loop //logic repeats continuously tion or consolidation process). In either case, you
BEGIN can draw from the delivery tank using the
Tank_Empty subroutine if outflow is gradual and
Tank_Transfer (Tank1,MixingTank,2000, 50, 0, 0) defined by a flow rate, or the Tank_Dec subrou-
Tank_Transfer (Tank2,MixingTank, 300, 20, 4, 0)
204 Chapter 5:
Pre-defined Tank Subroutines
For output tanks, you would define similar logic The subroutines TransferToB and TransferToC
but include Tank_SelectOutput instead of would each execute a Tank_TransferDownTo
Tank_SelectInput. command followed by a statement incrementing
the value of TransferDone. For example, the
logic for TransferToB would be as follows:
Dynamically Suspending Flow ciated action should execute when the tank level
rises or falls to a certain level.
To momentarily interrupt flow into or out of a
tank, use the Tank_GoDown subroutine or set the
state of the tank to down (Tank_SetState =
Tank_Down). This typically happens if a pump
fails but may occur in other situations.
Special Notes
To model the processing of bottles from FillerIn- • Since tank models do not stop automatically
put to FillerOutput, enter the following statement when there are no more entities or sched-
in the model initialization logic. uled arrivals, remember to define a run
length or a STOP statement.
High-rate processing • When you activate a subroutine, it doesn't
process until the current logic (the one
ACTIVATE Tank_Transfer(FillerInput, FillerOutput, activating the subroutine) finishes or
999999, 110, 0, 1500) becomes blocked. It you want the acti-
vated subroutine to process first, enter
“WAIT 0” after the ACTIVATE statement.
• Do not define a local variable inside of a
This statement causes the FillerInput tank to
Tank_Loop since the loop will create the
transfer bottles to FillerOutput at a rate of 110 per
variable multiple times.
minute whenever there are bottles in FillerInput
• Make sure all IF...THEN logic and WAIT
and capacity available in FillerOutput. The
UNTIL statements based on the
resume level is 1500. (Up to 999999 bottles will
Tank_Level array use the “>=” or “<=”
transfer.)
operator and not just an “=” operator. (This
To model the creation of a 50-bottle box each is because flow occurs in increments and
time the filling station fills 50 bottles, define and you can’t check for an exact value.)
activate the following subroutine in the model • Tanks are not legal in multi-unit locations or
initialization logic: in locations containing a conveyor or
queue.
Create new, combined unit
tools for editing those objects including flip, The first four functions apply to the currently
rotate, and cut. selected object. To select multiple objects, hold
the shift key while selecting an object. Alterna-
Selector tively you can drag a rectangle encompassing the
objects you want selected. To deselect one of sev-
eral selected objects, click on the selected object
while holding the shift key.
Drawing Tools
Use the Edit menu for selecting and duplicating Paste WMF Pastes a Windows metafile (WMF)
the graphic objects in the current Background from the Windows clipboard into the Layout win-
Graphics mode. You may also use it to exchange dow. You must have previously copied a Win-
graphics with other applications. To use the Edit dows metafile to the Windows clipboard.
menu functions, select the object you wish to edit Paste BMP Pastes a bitmap file (BMP) from the
by clicking on it in the Layout window. Windows clipboard into the Layout window. You
ProModel 213
User Guide
must have previously copied a bitmap file to the How to move an imported background
Windows clipboard. graphic:
Import Graphic Imports a WMF, EMF, BMP,
PCX, or GIF file into the Layout window. • Place the cursor on the imported background graphic
and drag it to the desired location in the layout.
Export Graphic Exports all graphic objects in
the current mode to a WMF or BMP file.
Please note
How to import a background graphic
into the layout: Once imported, the background graphic is not a
separate file from the model. It is included in the
1. In a graphics application, save the graphic in one of model. Therefore, when moving or copying a
the following formats, WMF, EMF, BMP, PCX, or
model file from one directory to another, it is not
GIF.
necessary to move or copy the imported back-
2. Select Background Graphics from the Build ground graphic file as well. On the other hand, if
menu. the external graphic file is changed, it must be re-
3. Select Front of Grid or Behind Grid. imported to update the model layout.
4. Select Import Graphic from the Edit Menu.
5. Enter the name of the graphic you would like to
import or browse to the directory where the graphic is Exporting a Graphic
located.
In some cases, it is desirable to export a graphic
6. Select OK to close the import graphic dialog box.
created in ProModel for use in another applica-
The graphic will then appear in the layout window. The
tion. ProModel will export all objects in the cur-
upper left corner of the imported graphic will align
with the upper left corner of the layout window. rent mode (In Front of Grid and Behind Grid) as
one graphic to a WMF or BMP file.
2. Enter a valid DOS name for the graphic in the you must go to Behind Grid mode to edit the
resulting dialog box, such as forklift.bmp. graphic.
3. Click the OK button in the Export Graphic dialog Front of Grid Moves the selected object in the
box.
layout window in front of the grid. Once this is
done, you must go to Front of Grid mode to edit
the graphic.
Graphics Menu Group Combines or groups several graphic
objects into a single graphic so they may be sized
The Graphics Menu allows you to flip and rotate
and edited together.
the selected graphic object(s) in the layout win-
dow. It also allows you to specify whether you Ungroup Ungroups several grouped graphic
want the graphic to be behind or in front of the objects so they may be edited individually.
grid. Additionally, it allows you to group selected
Lock Locks a graphic in place so that it can’t be
graphic objects together into a single graphic.
moved. This is helpful for preventing accidental
Finally, it provides the option to define line
moving of a graphic that you wish to leave sta-
styles, fill patterns, line color, and fill color.
tionary.
Unlock Unlocks a locked graphic, allowing it to
be moved on the layout.
Alignment When multiple objects are selected
on the layout, they can be aligned side to side, top
to top, etc.
Line Styles Allows the user to define the line
style including transparent, dashed, line thick-
ness, and optional arrowheads on either end of
the line. If any objects are selected, the line styles
of the selected objects are changed.
Fill Patterns Allows the user to define the fill
pattern for solid objects including slant, grid,
crosshatch, backward slant, horizontal, vertical,
transparent, solid, vertical gradient, and horizon-
Flip Horizontal Horizontally flips the selected tal gradient. If any objects are selected, the fill
object(s). patterns of the selected objects are changed.
Flip Vertical Vertically flips the selected Line Color Allows the user to define the line
object(s). color and create custom colors. If any objects are
Rotate Rotates the selected object(s) 90 degrees selected, the line color of the selected objects are
clockwise. This does not apply for non-true-type changed.
fonts. Fill Color Allows the user to define the fill color
Behind Grid Moves the selected object in the and create custom colors for solid objects. If any
layout window behind the grid. Once this is done,
ProModel 215
User Guide
Please note
Routing Table
Blk Output Destination Rule Move Logic
1 EntA Loc2 JOIN 1 MOVE FOR 1
1 EntB Loc3 FIRST 1 MOVE FOR 1
... ... ... ... ...
This logic checks the type of the pot and then In the above example, EntB would have an
joins a lid according to that type. attribute value, Att1, equal to 2 after EntA joined
to EntB.
Join
their original attribute values. The following dia- Attributes and the LOAD/
gram graphically shows the concept of grouping.
UNLOAD Statements
EntA
Batch
EntA The LOAD statement permenantly or temporarily
Group Ungroup loads a specified quantity of entities on to a base
EntA
EntB Loc4 Loc5
entity. Temporary loaded entities retain their
EntB
EntB EntC identity for future unloading through an
UNLOAD statement (see “Load” on page 499
EntC EntC and “Unload” on page 561 for more information).
Three entities are grouped When the entities are temporarily loaded onto the
together to form a batch
which is later ungrouped. a base entity, the resulting entity retains the
attribute value of the base entity.
The logic for the diagram is as follows: For example, entities called Box are temporarily
loaded onto a base entity, Pallet. The Boxes are
Process Table assigned an attribute value, Att1=1. Pallets are
Entity Location Operation (min) also assigned an attribute value, Att1=2. Once
EntA Loc1 Att1 = 1 the Boxes are loaded onto the Pallet, the loaded
EntB Loc2 Att1 = 2 pallet is renamed Shipment. The Shipment then
EntC Loc3 Att1 = 3 has an attribute, Att1=2, because it inherits the
ALL Loc4 GROUP 3 AS Batch attribute value of the Pallet. However, we then
Batch Loc4 WAIT 30 assign an attribute value to Shipment, Att1=3.
Batch Loc5 UNGROUP After the Boxes are unloaded from the Shipment,
ALL Loc5 ... the unloaded shipment is renamed back to Pallet
and the Boxes retain their original attribute value,
Routing Table Att1=1. Now the Pallet has a different attribute
value, Att1=3, which was assigned to the
Blk Output Destination Rule Move Logic renamed entity, Shipment. Consider the follow-
1 EntA Loc4 FIRST 1 MOVE FOR 1
ing diagram and logic in which two Boxes are
1 EntB Loc4 FIRST 1 MOVE FOR 1
loaded onto a Pallet and renamed Shipment for
1 EntC Loc4 FIRST 1 MOVE FOR 1
the output entity:
1 Batch Loc5 FIRST 1 MOVE FOR 5 Box Box
You can assign an attribute value to a grouped Two Boxes are loaded onto a Pallet and renamed Shipment
in the Output. The Boxes are then unloaded from
entity. However, once the entities are ungrouped, the Shipment. Shipment is renamed Pallet in the Output.
they retain the attribute values they possessed
before they were grouped. The logic for the diagram is as follows:
222 Chapter 6:
Attributes
Variable Layout
An icon to show a variable’s value during a simu-
lation may be placed anywhere on the layout. The
Variable Observation window below shows the icons for the variables
Record Value Time in Hours Current and Total at the right side of the screen.
Observation 1 6 1 Each icon has been labeled with a background
Observation 2 5 2 graphic.
Observation 3 6 3
Observation 4 5 4
Total 22 10
Example
A plant manufactures valves of 10 different sizes,
How to edit a variable’s icon: such as 10'', 20'', .... All valves are inspected at a
common inspection station and then move to a
dock where they are loaded onto pallets. The pal-
1. Double click on the icon.
lets are designed to hold only a certain size valve.
2. Click on the Digit Color, Frame, or Font buttons to Therefore, a pallet designed to hold 10'' valves
adjust the respective setting. can only hold 10'' valves, not 20'' valves.
3. Click on OK.
Suppose a Pallet enters a multi-capacity location,
4. All other variable icons that you create from now on Dock. Each Pallet has a different entity attribute,
will retain these modifications. p_type, describing the type of valve it can hold.
Valves are loaded onto the Pallet. The 10” valves
must be loaded onto the pallet designed to hold
the 10” valves. Therefore, the attribute value of
the Valve, v_type, must match the attribute value
of the Pallet, p_type. We can use local variables
226 Chapter 6:
Variables
to accomplish this modeling task. The logic is as enced in the LOAD statement. The pallet
follows where X is a local variable: attribute cannot be directly referenced in the
LOAD statement.
Process Table
If Dock was a single capacity location, using a
Entity Location Operation (min) global variable would work the same as using a
Valve Inspect WAIT 5 local variable. However, because Dock is a
Pallet Dock INT X multi-capacity location, it can load valves onto
X = p_type multiple pallets at the same time. If a global vari-
LOAD 10 IFF able was used instead of a local variable, the glo-
X = v_type
WAIT 10 bal variable would change each time a pallet
entered Dock. If there were two different types
Routing Table of pallets at Dock, there would be only one type
of valve loaded on the pallet because the global
Blk Output Destination Rule Move Logic variable refers to both pallets.
1 Valve Dock LOAD 1 MOVE FOR 2
1 Pallet Delivery FIRST 1 MOVE FOR 8
Suppose, for example, a global variable, type,
signifies the pallet attribute, p_type. We assign
If we had not used local variables, we would need type=p_type at the beginning of the operation
to use the following operation logic for Pallet at logic for location Dock. The first pallet arrives
Dock: and type=3. Therefore, only valves with
v_type=3 are loaded onto the pallet. Another pal-
let enters Dock and type=5. Now only valves
with valve_type=5 are loaded onto both pallets.
Please note
4. In the File field, enter the name of the spreadsheet Query or Stored Procedure Enter the SQL query
you wish to use (you may also browse to select a file). or the name of the stored procedure to be exe-
cuted during the model’s initialization logic to
populate the array.
4. Click on the Database radio button. with new data. If you wish to prevent your data
from being overwritten, you can make a backup
of the spreadsheet between each running of the
simulation.
If you are running multiple scenarios and/or rep-
lications, see step 5 below for a description of
how the spreadsheet handles the multiple scenar-
ios/replications.
4. Click OK.
5. When the simulation is run, the array data will be
saved to the spreadsheet file. If you ran multiple sce-
narios and/or replications, data from each one will be
saved to a separate sheet in the spreadsheet file, as seen
below.
Notes on Arrays
1. If a warm-up time is specified, array values
are not reset.
2. Arrays can be nested. For example, if
Arr1[2,3] is equal to three, then the state-
ment Arr2[5,Arr1[2,3]] works exactly like
the statement Arr2[5,3].
3. You can examine the value of a cell in an
array during a simulation by choosing Infor-
ProModel 233
User Guide
of a location’s capacity) to complex text (e.g., a tions to find the combination that works best with
line of logic). You may create RTI parameters your model.
using the dialog box below, accessed through the
Numeric Range This specifies the lower and
macros dialog.
upper limits for the parameter if the type is
numeric.
Run-Time Interface Example You are now able to change the operation time at
Lathe_1 using the Model Parameters option in
Suppose you build a factory model and determine the Simulation menu. For more information on
the first lathe, Lathe_1, is a bottleneck. The changing model parameters and defining scenar-
model results indicate the throughput is lower
ios, see “Model Parameters & Scenarios” on
than expected. You decide to perform several
page 342.
what-if scenarios with the model by changing the
operation time of Lathe_1. Instead of changing
the operation time at Lathe_1 within the Process Please note
edit table, it is easier to define a macro with an
RTI. This technique allows the model user to For more information concerning the differences
easily see the effect of installing a faster lathe between macros and subroutines, see “Macros”
without ever editing the model itself. The fol- on page 233 and “Subroutines” on page 238.
lowing example represents the dialog used to
define the RTI for the macro where the operation
time is a numeric value between 12 and 20:
Resource Grouping
Resource grouping allows you to define specific
groups of resources rather than define each unit
separately. For example, suppose you need a spe-
cific technician to perform an operation. If the
technician is not available, you may use either
another technician or one of two qualified opera-
tors to perform the operation. Rather than define
each qualified operator as a separate resource,
you may define a macro that includes them.
Please note
are identical to subroutines of type None, except fore, independent subroutines can run in parallel
that interactive subroutines are also accessible for with the logic that called them.
activation by the user through the run-time menu.
4. Independent subroutines called with the ACTI-
Interactive subroutines are displayed in the Inter-
VATE statement cannot contain entity-specific or
act menu during runtime. For more information
location-specific system functions.
on Interactive subroutines, see the discussion
later in this section.
Parameters Arguments passed to the subroutine
get assigned to local variables called parameters. Subroutine Format
Items passed to a subroutine as arguments can
have different names than the parameters that A subroutine may be named any unique, valid
receive them. Parameters can be real or integer. name. The general format for calling a subrou-
The first parameter receives the first argument, tine is as follows:
the second parameter receives the second argu- SubroutineName(arg1, arg2,....,argn)
ment, and so on.
Logic One or more statements to be executed Subroutine call
whenever the subroutine is called. Statements in
subroutines must be valid in the logic that calls GetOpTime(3,7)
the subroutine. Subroutine logic may contain a
DoInitialization()
RETURN statement with a value to be returned
from the subroutine. (See “Return” on page 539
for the correct syntax and an example of this
statement.) Please note
Please note Subroutine format notes:
Expression fields include the Qty Each column of routing are shown below. The subroutine itself is
the Arrivals edit table and the routing rule for shown later in this section.
processing.
Subroutine Example
Suppose that you build a Copy Center model and
it is necessary to define the processing time at the
operator assisted machines as a function of two
parameters: Order Quantity and Quality Level. In
addition, you would also like to write the pro-
cessing times at each copy machine to a file
called Report.Dat. Subroutines Edit Table
Because the operation logic is identical at both The Subroutine edit table lists the name of the
machines, a subroutine may be used to execute subroutine, the return type, the parameters to be
the group of statements required. Notice in the passed to the subroutine, and the logic. Notice
Process Logic pictured next that Subroutine that the subroutine ID corresponds to the subrou-
OrderTime is called, and each order's Quantity, tine name called in the processing logic above
Quality, and Ticket attributes are passed as argu- and that the subroutine has four parameters (P1,
ments. The third argument is simply a constant P2, P3 and P4) corresponding to the four argu-
value, 1 or 2, which represents the location from ments passed to the subroutine. Also note that
which the subroutine was called (i.e., 1 if called the subroutine is of type real since the return
from OpAsist1 or 2 if called from OpAsist2). The value will be a real valued processing time.
operation logic, which calls the subroutine, and
Subroutine Parameters
The subroutine parameters, M (for mean) and SD
(for standard deviation), are defined by clicking
on the Parameters heading button. These values
are unique to each inspection location, and are
ProModel 241
User Guide
passed to the subroutine as parameters of the nor- upon the quality level desired. Operation time is
mally distributed inspection time. determined by simply multiplying the process
time by the scale factor.
Once the order time has been determined, this
value is written to the file Report.Dat. Included
with the operation time is the job number and the
location at which the job was processed.
The last line of the logic returns the order time
value to the processing logic.
subroutine of type Interactive and enter the fol- knowledge of your external programming lan-
lowing logic: guage (C, C++, Pascal) to use external subrou-
tines. In addition, you must also have a good
Windows platform knowledge, specifically with
respect to creating DLLs in your language.
Because it is a 32-bit program, ProModel can
load and call only 32-bit DLLs, and requires that
you use a 32-bit Windows compiler.
For more information about this feature, you can
load, study and run XSUB.MOD in the reference
model directory (also see “Xsub()” on page 573).
This model uses XSUB.DLL, found in the MOD-
ELS directory. The source code and make files
for XSUB.DLL (XSUB.CPP, XSUB.MAK,
During run-time, you can then change the arrival XSUB.IDE) are also included in the MODELS
frequency for the customers by choosing the Cus- directory. Some general explanation is contained
tomer Arrivals from the Interact menu (see “Run- in the comments of this source code.
Time Interact Menu” on page 358).
Due to the complexities of Windows program-
ming and the variety of uses for this advanced
Please note feature, PROMODEL Corporation can only pro-
vide minimal support for this feature. Many ques-
Interactive subroutines may also be called from tions regarding Windows programming and other
any logic or expression where no return value is programming languages cannot be handled
required. See “Statements and Functions” on through our customer support department. Please
page 429 for more information. consult your language programming manuals,
language customer service centers, Microsoft,
and other resources to resolve these types of
problems.
External Subroutines
There may be some cases where you need to per- Subroutines vs. Macros
form actions ProModel is not capable of doing.
You may need extended capabilities with more Although subroutines and macros work similarly,
sophisticated commands. ProModel allows you they have subtle differences. Any logic may use
to interface with external subroutines located in both macros and subroutines. The main differ-
thirty-two bit Windows DLL files you have cre- ence is in the way they are used. Only subrou-
ated. This feature could be useful for doing tines can be used when you need to pass
sophisticated file I/O, performing statistical anal- arguments, get a return value, or activate the
ysis, making your simulation interactive, or help- independent execution of logic. Only macros can
ing with other simulation needs. be used when defining run-time interface param-
eters.
Because of the intricacies of the Windows devel-
opment environment, you must have a sound
ProModel 243
User Guide
expressed in terms of percentages, we select Per- record for the bank example appears below. (See
cent as the basis for the cycle. Also, the percent- “Arrivals” on page 156 for more information.)
age values are not cumulative so we specify No
in the Cumulative field.
Cumulative Cycle Tables the number of arrivals to arrive within each time
interval.
In the previous example, percentages were
expressed non cumulatively. This same data Example 1
could have been expressed cumulatively as fol-
Suppose that in the bank example we knew that
lows:
for each cycle period, the number of customers to
Before Percent arrive during each time interval within the cycle
period is as follows:
9:00 am 0
10:30 am 10 From Before Number
11:30 am 25
9:00 AM 10:30 AM 100
1:00 pm 55
10:30 AM 11:30 AM 150
4:00 pm 70
11:30 AM 1:00 PM 300
5:00 pm 100
1:00 PM 4:00 PM 150
The data is now expressed cumulatively and 4:00 PM 5:00 PM 300
could be entered in the cycle table as follows.
With the data in this format, we specify the
Arrival cycle by choosing Qty in the “Qty/Per-
cent” field and complete the cycle table as fol-
lows:
Example 2
Suppose we wish to see the effect on the Bank
example if the number of arrivals is increased by
50%. The relative quantities per time interval
remain the same but now 50% more customers
arrive each day. Using the data from the previous
example, we enter the same values in the Arrival
cycle quantity fields, but specify a value of 1.5 in
the quantity field of the Arrival edit table.
Processing
time (min)
How to access the function table edi- 1
tor:
0
0 100 200 300
1. Select More Elements from the Build menu.
Order size
2. Select Table Functions.
Example 2
In this example the relationship between the inde-
Table Functions Editor pendent value and the dependent value is nonlin-
ear and inversely proportional. In addition,
Table functions are defined by the user and return interpolation is required to determine the depen-
a dependent (or look-up) value based on the inde- dent value if the independent value passed to the
pendent (or reference) value passed as the func- function lies between the independent values
tion argument. Independent values must be
entered in ascending order. If the independent
value passed to a table function falls between two
independent values, a dependent value for the
unspecified reference value is calculated by lin-
ProModel 249
User Guide
given explicitly in the table function. The tables for the two example functions are
given below.
Function: QualFactor()
3.0
2.0
Processing
Time Factor
1.4
1.1
1.0
1 2 3 4 5
Quality Level
Table... Click on this heading button to open a If the function were called with the command
table for defining the independent and dependent “Operation_Time(5),” the independent value
values of the function. passed to the table function Operation_Time
would be five. But five is beyond the limits of the
table, so the dependent value returned will be
zero. Likewise, if the independent value is 1, the
dependent value returned will be zero. However,
if 2.7 is entered as the independent value, Pro-
250 Chapter 6:
Table Functions
User Defined Distributions bution edit table. The User Distribution edit
table’s fields are described below.
Occasionally, none of ProModel’s built-in distri-
butions can adequately represent a data set. In
these cases, the user may define a User Distribu-
tion to represent the data set. User Distributions
specify the parameters of user-defined (empiri-
cal), discrete, or continuous probability distribu-
tions. ID The name of the distribution. When refer-
encing distribution tables (in the operation logic,
for example) the open and closed parentheses
after the distribution name must be used, such as
Dist1(), OpTime().
Type... Discrete or Continuous depending on the
number of possible outcomes.
Cumulative... Yes or No depending on whether
the distribution is to be specified in cumulative or
non-cumulative format.
Table... Click on this button (or double click in
the field) to open an edit table for defining the
parameters of the distribution. Once a distribu-
tion has been defined, the field changes from
“Undefined” to “Defined.”
The combination of Discrete and Continuous dis-
tributions, along with the ability to express either
How to create and edit user distribu- in cumulative or non-cumulative terms, creates
tions: four possible formats for specifying distributions.
The remainder of this section gives examples and
1. Choose More Elements from the Build menu.
procedures for specifying each of these distribu-
tion types.
2. Choose User Distributions.
Discrete Distributions
Discrete distributions are characterized by a finite
User Distribution Edit Table set of outcomes, together with the probability of
A user-defined distribution is a table of empiri- obtaining each outcome. In the following exam-
cally gathered data. User distributions may be ple, there are three possible outcomes for the
either continuous or discrete, and may be cumu- group size: 30% of the time the group size will be
lative or non-cumulative (more information con-
cerning these options is found later in this
section). The data is entered into the User Distri-
252 Chapter 6:
User Defined Distributions
10, 60% of the time the group size will be 20, and Process Table
10% of the time the group size will be 30.
Entity Location Operation (min)
Discrete Distribution EntA Loc1 GROUP Dist() AS Batch
Batch Loc1 WAIT 10 min
P 1.00
r .90
Routing Table
o .80
b .70
Blk Output Destination Rule Move Logic
a .60
b .50
i .40 1 Batch Loc2 FIRST 1 MOVE FOR 5
l .30
i .20
ProModel provides the flexibility to specify dis-
t .10 crete distributions according to a probability
y 0 mass function or a cumulative distribution func-
10 20 30
tion. Select Yes or No in the Cumulative field of
Group size the Distribution edit table and fill in the table
according to the probability mass function or the
One way to represent a discrete distribution is by cumulative distribution function. The following
its probability mass function, listing the possible tables show the discrete distribution example
outcomes together with the probability of observ- defined in both formats.
ing each outcome. A probability mass function
for the example above could be expressed as fol-
lows (with G representing the group size).
Discrete (probability mass function)
G 10 20 30
P(G) .30 .60 .10
An alternate way to represent a distribution is
through a cumulative distribution function, list-
ing each possible outcome together with the
probability that the observed outcome will be less
than or equal to the specified outcome. A cumu-
lative distribution function for the example above Discrete (cumulative distribution
could be expressed as follows. function)
G 10 20 30
P(G) .30 .90 1.0
In the next example, the number of parts are
grouped into a batch according to a user distribu-
tion.
ProModel 253
User Guide
1.0 2.0 3.0 4.0 5.0 6.0 7.0 8.0 9.0 10.0
File Types
External Files Editor
External files may be defined as one of several
The External Files Editor consists of an edit table types depending upon the purpose of the file.
with fields specifying the external files to be used
General Read File
A General Read file contains numeric values read
into a model using a READ statement. Values
must be separated by a space, comma, or end of
ProModel 255
User Guide
line. Any non-numeric data will be automatically entered in the cell where the names intersect. An
skipped when obtaining the next numeric value example of a spreadsheet file is shown next.
(See “Read” on page 527 for correct syntax and
examples). For example, if you specify a normal
distribution such as N(5,1) in the General Read
file, ProModel will not return a numeric value
following the distribution. Instead, it will read in
the first value, 5, and the next value, 1.
A General Read file must be an ASCII file. Data
created in a spreadsheet must be saved as a text
file.
machines receive the same random number every down together. Mach1 would use the first value
time. The two streams have the same starting from stream ten; Mach2 would use the first value
seed value so they will produce exactly the same from stream eleven; and Mach3 would use the
sequence of random numbers. The first number second value from stream eleven. The first time
of stream ten will be exactly the same as the first Mach1 and Mach2 went down, they would go
number of stream eleven; the second numbers down at the same time because the first number
will be the same; indeed, every number will be in streams ten and eleven is the same. But there-
the same. after they would not. The second time they
would go down at different times because Mach1
The Streams window below shows streams ten
would receive the second value from stream ten,
and eleven with the same seed values.
Mach2 would receive the third value from stream
eleven, and Mach3 would receive the fourth
value from stream eleven.
Please note
By assigning stream ten to Mach1 and eleven to Stream notes:
Mach2, both machines will go down at exactly
the same time. 1. If a stream value is not specified for a distribu-
tion, the stream is assumed to be stream one.
Stream #1 does not automatically reset after each
replication.
Material Handling Systems close to the left end of the envelope, and bridge A
is to the left of bridge B, a run-time error will
The following section provides advanced tech- occur if the space remaining between node N and
niques to model Material Handling Systems. bridge A is less than the bridge separation dis-
tance. To avoid such problems, define the crane
envelope wide enough to allow sufficient space
Crane Systems beyond any serviceable nodes.
To implement cranes in ProModel, the Path Net-
work module allows three types of networks: Crane Priorities, Preemption &
non-passing, passing, and cranes. From this mod- Bridge Bump-Away
ule, you can lay down and orient a crane enve-
lope, define the bridge separation distance, and ProModel associates two types of priorities with
define the graphics for rails and bridges in the the operation of crane resources: (1) resource
bay. Additionally, the Resources module allows request priority, and (2) crane move priority.
you to define bridge and hoist speeds, and hoist Resource Request Priorities Used to resolve
graphics for one or more cranes operating in the any conflicts that arise between multiple tasks
same bay. requesting the same resource at the same time.
This priority scale follows the rules that regular
dynamic resource priorities do (i.e., 10 levels of
Creating Multi-Bridge Crane Systems
100). Use this priority to preempt crane resources
Modeling multiple cranes operating in the same from lower priority tasks to serve higher priority
bay has never been so easy! tasks.
User defined bridge separation distances, exten- Crane Move Priorities Used for multiple
sions to regular dynamic resource usage state- bridges operating in the same envelope, to decide
ments, and a set of new priority rules have been which crane bridge has priority over another
introduced in order to let you manage conflicting while moving. This priority scale is also in the
movements in the same envelope zone. range [0...999], but does not have any preemption
Crane Envelope The parallelogram-shaped levels. Any higher value has overriding priority
area represented by a crane type path network, over a lower value. You can assign priorities to
bounded by two rails and the lines connecting the crane resources temporarily, on a task-by-task
endpoints of those rails. The lines connecting the basis via extra parameters in the GET, JOINTLY
endpoints of rails are effectively the two extreme GET, USE, and MOVE WITH statements. There-
positions of the center-lines of any bridges oper- fore, you can only use priorities for cranes that
ating within the envelope. ProModel uses the end are either moving to respond to a resource request
of one of the rails as the envelope origin to serve or moving to deliver a part. Moving to downtime,
as a reference point for all logical distance calcu- off-shift or break nodes has the default (0) move
lations within the envelope. priority. Moving to park has the lowest move pri-
Bridge Separation The minimum distance you ority (the same as an idle crane).
want to maintain between center-lines of two You can further sub-divide crane move priorities
neighboring bridges. This distance is not related into three categories:
to how close a bridge center-line can get to one of • Task Move Priority Assigned by the mod-
the extreme endpoints of the envelope. Caution: eler via parameters passed to resource usage
if bridge B tries to move to a node N that lies very statements (GET, MOVE WITH, etc.). Used
262 Chapter 6:
Material Handling Systems
as the base move priority for travel to pick may define, edit, and size multiple graphics
up and travel to deposit. for the same hoist the same way you create
• Claim Priority If crane A’s bridge is multiple graphics for other resources.
headed towards its ultimate (task) destina- • Units & Multiple Cranes Crane resources
tion, the claim priority is equal to the task limit you to one unit. When you define mul-
move priority of crane A. Otherwise (if crane tiple cranes operating in the same envelope,
A’s bridge is moving under the influence of define them as separate resources—each
crane B), claim priority is equal to the claim assigned to the same crane network.
priority of the claim inducer bridge (bridge • Downtimes In addition to the clock and
B). usage downtimes you may define for cranes,
• Effective Claim Priority Applies only to you can assign cranes to shifts in the same
envelopes with three or more cranes. If mul- way you assign other resources. When a
tiple crane bridges are moving in the same crane goes down, it moves to the downtime
direction with overlapping claims, the effec- node specified in the DTs dialog. If you do
tive claim priority of any bridge in the over- not associate a node with the crane down-
lapping region is the maximum of all the time, the crane goes down at its current posi-
claim priorities of those bridges. tion.
• Specifications Cranes require separate val-
Crane Operations ues for bridge and hoist speed and accelera-
tion. You must enter Speed (Empty), Speed
The operation of cranes in ProModel has been
(Full), and Accelerate and Decelerate values
designed to closely resemble the real-life opera-
for bridge movement along the rails and
tion of cranes. Under most circumstances, you
hoist movement across the bridge. In each
need not be concerned with how ProModel han-
field, the format is Bridge Value, Hoist Value
dles crane movements. The following operational
(e.g., if you enter “150, 20” in the speed
specifications are intended as a reference only
field, the bridge moves at 150 and the hoist
and are not essential in order to model cranes
at 20 feet per minute). Although you must
using ProModel.
enter speed values, acceleration and deceler-
ation values are optional (if you leave them
Crane Animation blank, ProModel assumes the crane to have
During a simulation run, entities picked up by a an infinite acceleration and deceleration
crane appear graphically on the entity spot for the capability. (Hint: this provides better run-
hoist. The hoist graphic appears above the entity time computational efficiency).
graphic and the bridge of the crane appears on top • Crane Searches Define Work and Park
of the entity and hoist graphics. searches in the same way you define
searches for other resources.
Crane Specifications • Node Logic Define entry and exit logic for
cranes at nodes in the same way you define
When you define cranes for your model, consider node logic for other resources.
the following:
• Crane Graphics In the Resources module,
the selected graphic represents the hoist. You
ProModel 263
User Guide
will push away bridge B, and crane B will not direction with a higher move priority than both of
respond to the request while passing over [B']). the other bridges. ProModel interrupts bridges A
and B and lays a new course for both bridge B
Case 3 [B'' = C' - bridge separation] and bridge A [A'' =
B'' - bridge separation]. In this case, B may queue
up behind A, and C behind B.
Case 5
distance. The hoist, on the other hand, moves are compared with the a, s, and d of the leading
directly to its relative destination on the bridge, bridge (L). If all of the following conditions are
independent of the bridge zone claim results. In true, bridge F moves independent of bridge L.
case of bridge interruption, the hoist does not
stop moving. Therefore, for any particular crane Conditions for No Queue-Up
move, the combined trajectory of hoist and 1. aF <= aL The following bridge cannot accel-
bridge may change depending on zone availabil- erate faster than the leading bridge.
ity at the time of the claim. 2. sF <= sL The following bridge’s maximum
If crane A accepts the claim attempt, all cranes speed cannot be greater than the leading
inside the claimed extended zone bump away at bridge.
the time of the claim. This claim also prevents 3. dF >= dL The following bridge can deceler-
any other cranes with move priority less than or
ate equally or faster than the leading bridge.
equal to the move priority of A from entering the
claimed zone in conflicting directions. If any one of the above conditions fail, bridge F
moves at the same speed as bridge L, maintaining
the distance that existed between them at the time
Zone Claim Notes F started moving.
Bridge Motion after Queue-Up another). Independent of its current position and
movement direction, the crane still has the capa-
distance
traveled bility to respond to resource requests coming
by bridges from anywhere in the envelope. If allocated to a
task with high enough travel-to-pickup move pri-
B ridge
Separation ority, the crane may reverse direction or terminate
its move early, bumping other crane bridges on
B its way.
Qup
Whenever a crane bridge changes its claim, it
distance checks to see if there are any bridges behind it
A
that are going in the same direction with overlap-
tim e
B a ccel. B m a x. B decel. ping claims. If there are any, the newly claiming
A m im ics B A g o es w ith B’s crane triggers a chain queue-up re-evaluation
(fo rm er) a v era g e s p eed
towards the following cranes. The following
If bridge A is queued up behind bridge B, bridge example demonstrates this case.
A goes through up to two stages of movement.
The first stage occurs throughout the movement B''2 B''1
of bridge B. Bridge A mimics bridge B’s motion,
maintaining its original distance from bridge B.
The second stage occurs after bridge B stops.
Bridge A continues traveling with the former
average speed of bridge B until it reaches its des-
tination.
A B A' B'
If bridge B is moving to accomplish its own task
(as opposed to just moving out of A’s zone), then At time t0, crane A is called for a task and starts
bridge A might stop earlier, without going moving to [A'] with move priority mpA, pushing
through the second stage. In this case, the total idle bridge B to [B' = A' + bridge separation]. At
traveling time for bridge A is calculated as if time t1 (bridge A and B are still moving), a
bridge A were traveling with bridge B’s average request for crane B comes from [B" (1 or 2)] with
speed. move priority mpB. Bridge B is allocated to the
When a bridge arrives at its destination, it trig- task immediately since it is available at the time.
gers a chain queue-up re-evaluation that pene- If the new destination of bridge B is [B"1], the
trates the crane envelope in the opposite direction new claim of bridge B does not conflict with the
that the stopped bridge was moving. This chain existing claim of bridge A, so the move priorities
re-evaluation handles cases in which there were are not significant. ProModel re-evaluates all
multiple bridges queued up behind the stopped motion values for crane B (acceleration, deceler-
bridge. ation, empty and full speeds for both the hoist
and the bridge) and crane B starts moving to its
Moving Idle Cranes can Respond to new destination. If the bridge motion expressions
Resource Requests for crane B have changed their values between t0
and t1, the queue-up status between bridges B
A crane can be idle and moving at the same time and A (and any others behind A) may change, so
(moving to park or being pushed away by
ProModel 267
User Guide
ProModel performs a chain queue-up re-evalua- In the first six cases, a crane changes state from
tion. “immovable” to a finite move priority. The sev-
If the new destination of bridge B is [B"2], the enth case may change the “effective move priori-
new claim of bridge B conflicts with the existing ties” of other cranes. ProModel requires the
claim of bridge A, so ProModel considers the eighth case for envelopes with three or more
move priorities: bridges with overlapping operation zones: It
• If mpB <= mpA, then B does not have ensures that two or more unsatisfied, opposing
enough priority to stop A before A gets to its claims with the same move priority will resolve
destination. Bridge B will have to go on their conflict based on earlier task assignment
moving until [B'] and wait until it can claim time instead of locking up the crane system.
the region [B"2 ~ B'] in the Æ direction. Hence, all of the above cases create a potential to
realize previously unsuccessful claims.
• If mpB > mpA, then B does have overriding
priority over A. Bridge B stops bridge A at The reclaim trigger events for each envelope
[B"2 - bridge separation], starting a chain echo in the trace together with the triggering rea-
move termination which tells bridge A to son for model debugging purposes. The results of
stop any other followers with the appropriate reclaim attempts for each crane resource and its
bridge separation distances between each. In effects on other crane resources in the same enve-
this case, bridge A (and other possible fol- lope are also displayed.
lowers) will have to wait until the next
reclaim trigger event to attempt reaching Other Crane Operation Rules
their original destinations. 1. If an entity currently possesses a crane, all
move logic for the entity must use a MOVE
Reclaim Trigger Events WITH statement (until you free the crane)—
Unsuccessful claims of all crane bridges in an the entity cannot move without the crane.
envelope are re-attempted when a reclaim trigger 2. Although an entity cannot possess more than
event occurs in that envelope. The following one crane at a time, the entity may possess a
events are considered to be triggers for claim re- crane and a resource of another type.
evaluations in the related envelope: 3. If a crane is in one of the following states,
another crane cannot push it away.
• The duration of a USE <crane> statement
a) Picking up or depositing an entity.
expires.
b) Being used at a location.
• You free a crane using the FREE statement.
• A crane completes a deposit (unless you
c) Experiencing a downtime, off-shift
time, or break time.
specify the KEEP option).
4. The hoist moves to its relative destination on
• A crane completes a pickup and the crane is
the bridge independent of the bridge zone
about to start moving to deliver.
claim attempt outcomes. The hoist does not
• A crane downtime ends.
stop for bridge interruption so, for any par-
• You preempt a crane resource.
ticular crane move, the combined trajectory
• A bridge arrives at its task destination of hoist and bridge may change depending
(before elapsing pickup/deposit time). on zone availability at the time of the claim.
• There are no moving task bridges left (for 5. When a crane pushes away an idle crane, the
envelopes with 3 or more cranes only). idle crane comes under the control of the
268 Chapter 6:
Material Handling Systems
work and park search lists defined for the minimum distance to the hoist and then the
node closest to its bridge. order of appearance in the nodes edit table.
If the hoist is still moving at the time the
Crane Operations Notes bridge stops, the registry procedure executes
by considering the destination of the hoist.
ProModel allows definition of resource points for
crane resources on envelope nodes to achieve the
three dimensional look for “lowering the hoist” Please note
upon arriving at a node. Since cranes can only
have one unit, only the first resource point for Only users can instruct cranes to park on nodes.
any crane at any node is meaningful. Also, Pro- However, as a result of bump-aways, a crane can
Model only uses the resource points if the crane end up standing still at positions that do not nec-
resource arrives at the node to perform a task. In essarily correspond to nodes. In any case, Pro-
other words, the hoist does not lower if the crane Model registers an idle stationary crane to a
arrives at a node to park or just ends up there after node and places it under the control of work and
a bump. park searches of that node.
In general, once ProModel makes a match
between a resource request and a resource of the
requested type, the resource is allocated for that
job and the simulation engine does not go on Cranes follow the same rules as regular dynamic
looking for other matches that can actually reach resources while searching for assignments
to the requester sooner. Since cranes blocking (returning to preempted jobs, exclusive & non-
other crane resources is a common phenomenon exclusive work searches, requests coming from
in multi-bridge envelopes, extra care should be nodes not included in the work search, etc.).
used while designing the active operation zones There are some additional steps to handle interac-
and resource request logic in such models. tions with other cranes operating in the same
envelope. Upon completion of its task, a crane
goes through these extra steps:
Nodes, Work, and Park Searches
1. Lets other cranes in the same envelope re-
ProModel “registers” all cranes to their home attempt their claims, possibly generating an
nodes at the beginning of a simulation run. When induced claim on its bridge.
a crane starts to move, ProModel erases registra- 2. Even though other cranes might bump away
tion, and re-establishes it when the crane stops, its bridge, the crane executes the work search
according to the following rules: defined for it at its current node. (If requests
1. Cranes assigned to a task (pick up, drop off, are waiting at different locations of the same
down) remain unregistered throughout inter- work search record, ProModel takes the
mediate stops and register to the task desti- resource request priorities into consider-
nation node upon arrival. ation.)
2. Idle cranes that are bumped away, or cranes 3. If it was not allocated to a task or bumped
that were unsuccessful in claiming the entire away, the crane executes the park search
bridge region to go parking register them- defined for it at its current node, or attempts
selves to the node closest to their bridge going home if return home is checked.
when they stop. If there are multiple nodes
closest to the bridge, ties are broken by the
ProModel 269
User Guide
Please note time a crane would have taken to get to its desti-
nation if it were the only bridge in its envelope.
A crane bridge moving to park cannot bump
other idle bridges out of its way. In such a case, Please note
the bridge goes as far as it can towards its desti-
nation and registers itself to the closest node The first component of gross travel time (moving
upon stopping (using the rules discussed above). towards the actual destination) may be greater
than the net travel time, since it may include
going back towards the destination after another
crane bumps it away. It may also involve devia-
Crane Resource Statistics tions from the bridge’s original motion values
The statistics reported for cranes are very similar when queued-up behind slower bridges.
to regular dynamic resource statistics. The fol-
lowing definitions highlight the differences in the
interpretations.
In Use Includes the following states: Special Case—Blocked Time Accrual
• Stationary use at a location via GET, for Moving to Park
JOINTLY GET, and USE statements. Remember that an idle crane registers itself to the
• Gross move time while delivering — actu- closest node whenever its bridge stops. If the
ally carrying an entity from one location to hoist is still moving, ProModel uses the destina-
another. tion of the hoist to break any ties between nodes
• Pickup and deposit times before and after the that are equidistant to the bridge position.
move to deliver. In case of an unsuccessful claim attempt to move
Travel To Use Is the gross move time to start to park, the crane bridge needs to stop before
being used — traveling to respond to a request reaching the instructed park node, and ProModel
for either stationary use or use to pickup and ignores the hoist travel for statistics purposes.
deliver an entity to another location. The “travel to park” statistic terminates at the
Gross Move Time May include the following time the bridge stops, not when bridge or hoist
times: stop time reaches its maximum value. In this
case, the net moving time to park computes as the
• Moving towards the actual destination.
bridge move time from current position to the
• Possibly moving away from the destination,
endpoint of the claim, using original bridge
when bumped away by a higher priority
motion values for the crane resource. Blocked
bridge in the same envelope.
time can accrue if this bridge queues up after a
• Stationary blockage times during which the slower bridge that is already moving (remember
bridge is waiting for a higher move priority that a crane moving to park cannot bump another
bridge in the same envelope to lower its crane).
move priority.
Blocked Time Tally blocked time by subtract-
ing the internally computed, hypothetical net Conveyors
traveling time from the actual incurred gross A conveyor is any moving track, belt, chain, or
move time. ProModel defines the net time as the roller which transports parts from one location to
270 Chapter 6:
Material Handling Systems
another. This section will help you better under- Conveyor Types
stand conveyors and how to model them using
You may represent conveyors as one continuous
ProModel.
span of randomly spaced parts (e.g., belt con-
ProModel determines the capacity of a conveyor veyor) or as intermittent spaces or carriers
by its speed and load spacing rather than a stated located at fixed intervals (i.e., trolley conveyor).
capacity. Specifically, capacity is a function of
the minimum allowable interload spacing on a
conveyor (which is the length of a queue position
Accumulating & Non-Accumulating
in the case of accumulation conveyors) and its In addition to continuous or intermittent convey-
length. It may be desirable, however, to impose a ors, some conveyors permit loads to accumulate
limit to the number of loads permitted on the con- or queue if conditions impede forward motion
veyor at any one time. progress. ProModel refers to these conveyors as
Conveyors usually do not pick up and drop off accumulating conveyors. Other conveyors pro-
loads as in the case of lift trucks, AGVS, and vide no queuing and halt all activity if forward
cranes. You must place loads onto and remove progress of the leading part or load stops. Pro-
them from conveyors. Model refers to these types of conveyors as non-
accumulating conveyors.
Depending on the nature of the conveyor and its
operation, modeling a conveyor can be straight- The following figure illustrates how entities can
forward or complex. For single conveyor sec- continue to accumulate after the leading load
tions, modeling is very simple. Conveyor stops on an accumulating conveyor. How a non-
networks, on the other hand, give rise to several accumulating conveyor can accept one additional
complexities (recirculating, merging, etc.) that entity if the leading entity stops, however it is
become more difficult to model. unable to advance any further since the entire
conveyor stopped.
Conveyor Simulation Benefits
Simulating your conveyor system will help you
address design and operational issues, answering
the following questions:
• What is the minimum conveyor speed that
still meets rate requirements?
• What is the load rate capacity of the con-
veyor?
• What is the load delivery time for different
activity levels?
• How much queuing do accumulation con-
veyors need?
• How many carriers do trolley or power-and- The different combination of continuous or inter-
free conveyors need? mittent conveyors and transport or accumulation
• What is the optimum number of pallets to conveyors result in the following four different
maximize productivity in a recirculating kinds of conveyors that ProModel is capable of
environment? modeling.
ProModel 271
User Guide
accumulate or back up. This generally occurs at Some users prefer to display the grid and select
a transfer point or process location. the Snap to Grid option in the View menu. Others
will leave Snap to Grid off. You may find that the
Modeling Conveyors precise positioning of a conveyor is easier when
you turn Snap to Grid off and set the Zoom suffi-
While not essential, it is visually more effective ciently high. When you need to change the type
to draw conveyors to scale on the layout. You of conveyor to accumulating, double-click on the
should also size entities traveling on a conveyor conveyor icon in the layout, select the Conveyor
to scale when you create them. Setting the length Options button, and select Accumulating from
of a conveyor different from the scale length or the Conveyor Options dialog.
conveying entities that have a length or width that
The following six examples show various ways
is not to scale will result in the appearance of load
of modeling conveyors:
overlapping or excessive load spacing. The
underlying logic and simulation is still valid, Example A Routes one or more parts from one
regardless of whether the graphics are to scale. or more non-conveyor locations to any conveyor
location.
Loads may appear to jump when transferring
from the end of one conveyor to another con-
veyor. This is a result of ProModel not allowing
a load to transfer onto a conveyor until there is
room for the load. Including a transfer time in
the Move Logic column of the Routing edit table
can result in smooth movement between con-
veyor sections. Defining a variable called
Transfer_Time and using that variable rather than E l A
Example B Routes one or more parts from any
entering the actual time allows for experimenta-
conveyor location to one or more non-conveyor
tion with various conveyor speeds with minimal
locations.
modeling changes.
Clock precision is also important. Note that
movement of one foot at 40 feet per minute will
take .025 minutes. If clock precision is set at .1
minutes, truncation will result in zero time. Make
sure you check your model for the correct clock Example C Routes single parts from any con-
precision. For most conveyors, a clock precision veyor location to one or more other conveyor
of .001 is adequate. ProModel may require locations.
greater precision for high-speed conveyors where
speeds are greater than 200 fpm.
Modeling conveyors in ProModel is quite easy.
Select the conveyor icon in the Locations Graph-
ics window and place the beginning and ending
points of the conveyor using the mouse. Clicking
the right mouse button will end the conveyor.
Left-click to add or delete a joint and allow the
conveyor to bend.
ProModel 273
User Guide
Example D Joins one or more parts from one Automated Guided Vehicle Sys-
or more non-conveyor locations to another trans-
porting entity (e.g., a pallet or carrier) at any con- tems
veyor location. An automated guided vehicle system (AGVS) is
a path network along which computer-controlled,
driverless vehicles transport loads. One of the
modeling requirements of AGVS is to accurately
describe the method for controlling traffic. You
can usually accomplish this in one of two ways:
• Zone blocking
• On-board vehicle sensing
Zone Blocking The most common method of
traffic control, it involves placing control points
along the guide path. Each point usually allows
Example E Accumulates multiple parts com-
only one vehicle to access it any one time, thus
ing from one or more non-conveyor locations
blocking any other vehicle from entering any seg-
onto a conveyor location.
ment of the path connected to that point. Once the
vehicle leaves a control point to travel to the next
point on the path, any vehicle waiting for access
to the freed control point can resume travel.
On-Board Vehicle Sensing Works by having a
sensor on-board the vehicle that detects the pres-
ence of a vehicle ahead of it and stops until it
Example F Splits parts at a conveyor location detects that the vehicle ahead of it has moved.
sending one or more parts to a non-conveyor
location and a single part (e.g., a pallet or carrier) Modeling AGVS
onto the conveyor. Modeling an AGVS is very similar to modeling
an industrial vehicle, such as a lift truck, (which it
is in a sense) except you control the operation
more and there exists less freedom of movement.
Paths are generally unidirectional and do not
allow vehicle passing.
One of the challenges in modeling an AGVS is
finding the shortest routes between any two stops
in a system. ProModel provides built-in capabil-
ity to automatically determine the shortest routes
between points in a complex network.
274 Chapter 6:
Material Handling Systems
Since people generally operate industrial vehi- before movement along the other axis begins.
cles, they take breaks and may be available only From a modeling standpoint, it is usually only
during certain shifts. So in addition to modeling necessary to calculate and model the longest
the vehicle, you may need to model an operator move time.
that takes breaks and works on shifts or you may
In modeling AS/RS, the storage capacity is usu-
just want to assign shifts and breaks to the vehicle
ally not a consideration and the actual inventory
resource itself, in effect, modeling the vehicle
of the system is not modeled. It would require
and the operator as one resource.
lots of overhead to model the complete inventory
in a rack with 60,000 pallet locations. Since it is
Industrial Vehicle Simulation Benefits primarily only the activity that is of interest in the
Simulating your industrial vehicles will help you simulation, actual inventory is ignored. In fact, it
address design and operational issues, answering is usually not even necessary to model specific
the following questions: stock keeping units (SKUs) being stored or
• What is the required number of vehicles to retrieved, but only distinguish between load type
handle the required activity? insofar as it affects routing and subsequent opera-
• What is the best deployment of vehicles to tions.
maximize utilization?
• What is the best deployment of vehicles to Modeling an AS/RS as a Vertical
minimize response time? Bridge Crane
One way to model an AS/RS with greater accu-
Automated Storage/Retrieval racy is to use the bridge crane construct. An AS/
RS is really just a vertical crane with the same
Systems characteristics as a bridge crane.
An automated storage/retrieval system (AS/RS)
is “a combination of equipment and controls AS/RS Simulation Benefits
which handles, stores, and retrieves materials
Simulating your AS/RS will help you address
with precision, accuracy, and speed under a
design and operational issues, answering the fol-
defined degree of automation” (The Material
lowing questions:
Handling Institute 1977). The goal of an AS/RS
• How many aisles do you need to handle the
is to provide random, high density storage with
required activity?
quick load access, all under computer control.
• What is the best sequence of stores and
retrievals to maximize throughput?
Modeling AS/RSs • What is the best stationing of empty S/R
At a simple level, an AS/RS move time may be machines to minimize response time?
modeled by taking a time from a probability dis-
tribution that approximates the time to store or
retrieve a load. More precise modeling incorpo-
rates the actual crane (horizontal) and lift (verti-
cal) speeds. Each movement usually has a
different speed and distance to travel which
means that movement along one axis is complete
276 Chapter 6:
Modeling Tips
LOAD/UNLOAD Statements
Another method of batching and unbatching
involves the LOAD and UNLOAD statements.
As with the GROUP statement, ProModel main-
tains the identities and attributes of the batched
entities. Therefore, when you use the UNLOAD
statement, each entity still has its attribute assign-
ments.
The difference between LOAD and GROUP is
that LOAD requires a “base” entity on which you
temporarily load other entities that might repre- Since the example does not specify an entity type
sent a pallet or container. Also, the entities you as part of the LOAD statement, ProModel will
are going to load, travel to the loading location on load temporarily any entity type waiting for the
an “If load request” routing rule. LOAD request. To control which entity types the
In the following example, four Gears are loaded model loads, use the “IFF” option with the
onto a pallet. Pallet is the entity which issues the LOAD statement (e.g., LOAD 4 IFF
LOAD statement. In addition, the example Entity()=gear).
includes a time element (LOAD 4 in 10 min). Once the batch moves to its destination, the
This means “load 4 gears or wait 10 minutes, model uses the UNLOAD statement to break it
whichever occurs first.” If after 10 minutes only into individual components (Gear and Pallet).
3 gears arrive, the entity loaded with the 3 gears You must define a routing for the entity Gear
continues. after the UNLOAD takes place. Typical uses for
LOAD/UNLOAD are palletizing operations,
AGV systems, and AS/RS systems.
280 Chapter 6:
Modeling Tips
ACCUM Statement
The ACCUM statement is short for “accumu-
late.” Its use is slightly different than the GROUP
and LOAD statements. ACCUM does not “batch
together” entities, but rather holds entities at a
location until a certain number accumulate. It
behaves much like a gate restricting entities until
a certain number arrive at the location. After the
required number accumulate, ProModel releases
them for downstream processing. This allows
you to model a certain type of batching which
involves simply the accumulation of parts and
their subsequent release—all at a single location.
When using the ACCUM statement, make sure
the capacity of the location where you are using If you want the entity coming from Process B to
the ACCUM statement is at least as large as the have priority and go to Process C first, define a
amount accumulating. priority in the destination field for the routing of
Process B. In the following example, we entered
Modeling Priorities a priority of 10 for the routing of the entity Cast-
ing at the location Process_B.
Priorities are an important part of modeling any
system. They range from determining which
location has priority for processing parts to
choosing the appropriate resource. Priorities
allow you to determine the order in which events
occur in the simulation. The three most common
uses of priorities deal with choosing processing
destinations, selecting resources, and prioritizing How to enter a priority for a destina-
downtimes. tion:
Choosing a Processing Destination Enter a priority value directly in the destination field,
making sure there is a comma separating the destina-
When one downstream destination exists and tion and priority.
there are two or more upstream entities compet-
ing to get there, you can use priorities. In the fol- or...
lowing example, two entities at different Click the Destination... button and enter the priority in
locations are both trying to get to Process C. the appropriate field.
Selecting Resources
Similar to the previous example, this type of pri-
oritizing refers to which of two or more pro-
ProModel 281
User Guide
cesses, requesting the same resource will have After defining a variable, you may display it any-
priority in capturing the resource. In the Opera- where on the layout screen by simply clicking
tion field, in conjunction with the USE or GET with your mouse in the desired position with the
statements, the process with the higher priority variable highlighted in the edit table.
number gets the resource first.
How to show system throughput on the
Downtimes and Preemption screen:
ProModel uses priorities in conjunction with
resource or location downtimes to determine 1. Define the variable “thruput.”
which defined downtime takes priority. Down- 2. Display the variable on the screen.
times with priorities that are 99 or less do not
interrupt or “preempt” the activity, but begin after 3. In the processing edit table, increment the variable
by one each time an entity leaves the system.
the current process completes. Downtimes with a
priority of 100 or higher preempt the current
activity. After the downtime, the activity resumes
from where it left off. Another common, on-screen statistic is work in
process (WIP). To show this statistic on the
Displaying Statistics On Screen screen, follow the first two steps above. To accu-
rately indicate the WIP in your model, increment
Effective use of statistics lends meaning and a variable as entities enter the system and use the
credibility to simulation models. This section is decrement statement as they exit the system.
designed to show ways of displaying statistics on
screen while the simulation is running. It also
provides examples you can incorporate into any
How to display the total system time
model. for entities:
Displaying on-screen statistics is valuable for
adding model clarity as well as providing a way 1. Assign the simulation clock time to an entity
attribute at the beginning of your simulation.
to keep track of what is happening in the model.
The technique used for displaying statistics is to 2. Subtract that attribute from the current clock time at
define variables within your model, perform cer- the ending location and assign it to a variable you can
tain functions on those variables (e.g., addition, display.
subtraction, etc.), and then display those vari-
ables on the screen.
ProModel defines variables as symbols (e.g., x, y, For example, to display total system time for
and var1) that hold numeric values. They are entities in the system, define a variable and an
defined in the Variables edit table. When defining attribute. The entity attribute, Input_Time,
variables, you must include the following infor- records the time an entity entered the system.
mation: The variable, Sys_Time, records the elapsed time
• Name (may be alphanumeric combination) each entity spent in the system (clock-input
• Type (real or integer) time). By displaying the variable on the layout,
• Initial value (may be any value) you will have a dynamic value showing system
time of the exiting entity.
282 Chapter 6:
Modeling Tips
Making Assemblies
An assembly occurs when you attach specific
items or entities to another entity such as a base
part or frame. To assemble entities, use the JOIN
or LOAD PERM statement. Implementing JOIN
is a two-step process:
1. Employ the JOIN statement at the designated
assembly location.
2. Use the JOIN routing rule for all joining
entities.
It is helpful to designate one of the joining enti-
ties to be the “base” entity which issues the JOIN
statement. In the following example, “Comp” is
the base entity. All other joining entities must
Several other ProModel statements similar to
travel to the assembly location on an “If Join
JOIN exist such as GROUP/UNGROUP, COM-
Request” routing rule. Note that for “Monitor”
BINE, LOAD, and ACCUM. You generally use
traveling to the assembly location, the word
these statements for temporary or permanent
“JOIN” appears in the Rule field. This indicates
batching. To learn more about these statements,
that “Monitor” will go to the location Assembly
see the discussion on Batching and Unbatching
only if a JOIN statement requests it elsewhere in
earlier in this section.
the model.
For more information see “Join” on page 494.
284 Chapter 6:
Modeling Tips
ProModel 285
User Guide
How to build a statement or expres- double-click on the statement name. Other com-
sion: ponents of the Logic Builder are as follows:
Keypad button Click on this button to display tion of numbers, model elements, and/or func-
the numeric keypad for entering numbers in the tions, but does not include statements.
parameter entry field without using the keyboard.
Statement selection list Choose which statement
you wish to use from this list. Only valid state-
ments are displayed for the logic window or field
you are using.
Paste button This button pastes the text of the
logic text box into your logic window or field. It
is only available once the minimum requirements
of the statement or expression have been com-
pleted. The Paste button closes the dialog if you
are pasting to a field.
Logic buttons These buttons can be used to insert Clear button This button clears whatever you
logical operators and other punctuation in the have done since the last paste and allows you to
parameter entry field above. When you click the start over.
button, the operator is inserted at the cursor posi-
Close button Closes the Logic Builder without
tion in the field. A button appears only when the
pasting the current logic text box.
currently selected parameter can use that particu-
lar logical operator. Help button Launches the context sensitive help
system.
• Logical & String Operators:
Logic Elements When editing an expression in
the parameter entry field, the Statement selection
list is replaced by Logic Elements. The box on
• Time Unit Operators:
the left lists logic and model element types. The
box on the right lists individual selections from
the logic or model element type selected.
Category This combo box allows you to select
which type of statements appear in the statement
selection list below it. You can select all or a spe-
cific type.
Build Expression button This button allows you Return and Cancel Buttons When editing the
to create only an expression. It displays the logic parameters of a function or nested statement, two
elements list (see below) for you to create the additional buttons appear to the right of the
expression. An expression consists of a combina- parameter edit box: Return and Cancel.
288 Chapter 7:
Logic Builder
• Return button This button (available only replaces the parameter name in the logic text box.
when required parameters have been The parameter name reappears when the entry
entered) returns to the previous parameter field is cleared. The names of optional parame-
entry field and pastes the function or state- ters are not displayed in the logic text box.
ment at the last cursor position.
An optional shortcut to begin editing the state-
ment’s first parameter is to double click on the
statement name in the statement list box.
How to place a model element in the which will also require defined parameters. This
parameter entry field: second function is called a nested function. In
addition, a function may be nested within a
nested function. Functions can be nested as many
1. Left click on the desired element type in the Logic
Elements list box. The elements for that type will be levels as you like. In this way, the logic builder
placed in the selection list box. helps you create complex expressions that would
be difficult to enter manually.
2. Left click on the desired element to paste it into the
parameter entry field at its current cursor position. Control statements such as IF...THEN and
Note that the element is highlighted in the parameter WHILE...DO contain parameters that are them-
field; clicking on another element will replace it. selves statements. These are called nested state-
ments. For example, an IF...THEN...ELSE
statement might look something like this:
example, in the following Logic Builder window, ments without worrying about syntax and place-
an IF...THEN...ELSE statement is being built. ment of nested statements and functions.
list trying to find a preemption process that WAIT or USE statement. It returns a time value
matches the same entity and location (a process in default time units (real). If multiple entities are
with ALL as the entity name will match any preempted from a location, it returns the longest
entity). If a match is found, the preemption pro- remaining time for all of the entities.
cess gets executed. Otherwise the default preemp-
tion occurs. Only the first preemption process Please note
encountered will be executed in the event that
multiple preemption processes are defined with
The values returned by these functions must be
the same entity and location names.
checked before any processing delay occurs since
they are updated whenever a preemption takes
place. If the values must be referred to later, they
should be assigned to the entity’s attribute or to a
Possible Effects of Delayed local variable.
Preemption
Several circumstances can be created through the
use of preemption process records. An entity
delaying a preemption, for example, may find at Preemption Process Example
the conclusion of the delay that the preemption is In this example, a Gear may be preempted in its
no longer required, or that it faces an even higher occupancy of the Lathe. This preemption may be
preemption priority. because of either a preempting entity or down-
In cases where an entity has multiple locations or time. Before the actual preemption takes place,
resources from which to choose, a preemptive the operation time for the Gear is interrupted and
request for any one of them is not necessarily a the Gear immediately begins processing the oper-
commitment to select that particular location. If ation logic defined in the preemption process.
any of the alternative locations becomes avail- In the preemption process, the remaining opera-
able, the entity will select it and withdraw the tion time is stored in Attr1. The Gear routes to
preemption request. Lathe_Backup where it finishes processing.
Because the backup lathe is not as efficient as the
Functions for Defining Logic in a other Lathe, it takes 50% longer to process the
Preemption Process Gear on Lathe_Backup. Therefore, we multiply
the time left to process the Gear by a factor of
The Preemption Process Logic feature includes 1.5.
the following functions for use in the preemption
logic.
PREEMPTOR() Identifies whether a downtime
or entity is making the preemptive request. It
returns a 0 if the preemptor is a downtime, other-
wise it returns the index number of the preempt-
ing entity.
TIMELEFT() Returns the amount of time
remaining if the preemption occurred during a
294 Chapter 7:
Routing Move Logic
When you click the Move Logic the following MOVE WITH This statement is used to move an
Move Logic window appears. entity using a designated resource, such as a fork-
lift. With the OR operator, you can designate
alternative resources for making the move. In this
case, the statement captures the first available
alternative resource designated in the expression
and makes the move. If one of the resources is
already owned by the entity, that resource will be
used. Please note that you cannot use the AND
operator to capture (and move with) more than
one resource with this statement. To move an
entity with multiple resources, you must use a
GET statement to capture the additional
This window allows you to manually edit the
resources.
logic or click on the Build button to use the Logic
Builder. It also provides other convenient but- This statement also allows you to set the priority
tons for editing and printing the move logic. (p1) for accessing the designated resource. If the
resource is already owned by the entity, this pri-
ority is ignored.
Move-Related Statements
If the resource is static, a time (FOR <time>) may
Admissible statements in the Move Logic win- be specified for the move.
dow include the new move-related statements
listed here. A brief description of how each state- The resource used to make the move is only freed
ment functions in ProModel follows the list. See if the THEN FREE option is used.
“Statements and Functions” on page 429 for MOVE ON <path network> Use this statement to
complete syntax, description, and examples of move an entity along a path network.
these statements.
MOVE statements
Statement Processing
Statements executed before a MOVE related
statement are processed after the entity claims the
next location but before the entity actually
departs from the current location.
Statements executed after a MOVE related state-
ment are processed after the move has been com-
pleted but before the entity enters the location. If
there is no move logic, the entity continues pro-
cessing until it encounters an implicit WAIT.
However, if “MOVE FOR 0” is placed in the
move logic, the event list is broken and other pro-
cesses scheduled to occur at the same time are
executed. Once these processes are executed, the
entity enters the destination location.
ProModel 297
User Guide
Shift & Break Logic Off Shift & Break Logic Logic executed at the
instant the location or resource actually goes off
line.
Shift & Break Logic
Shift and break logic are optional and are defined How to determine the sequence of
in four distinct logic windows. Each logic win- events
dow is executed in a specific sequence through-
out the simulation run. You can define logic that 1. When a location or resource is scheduled to go off
controls how resources and locations go off duty line due to a break or the end of a shift, the pre-start
or off line and what happens once they are off- logic for that particular location or resource is exe-
line. cuted.
To define shift or break logic, click on the Logic 2. After executing the pre-start logic, which may con-
button in shift assignments to display a submenu tain conditional (WAIT UNTIL) or time (WAIT)
of four shift events for which logic may be delays, the location or resource is taken off line,
assuming it is either available or the priority is high
defined. Selecting an event from the submenu
enough for preemption.
displays a standard logic window. You can enter
separate logic for each of these four events to be 3. At the instant the location or resource is taken off
executed when the event occurs. See Sequence of line, the Off-Shift or Break logic is executed.
Events below. 4. After executing this logic, the location or resource
waits until the time defined in the shift file expires
before going back on line.
Please note
You may want to use the Logic Builder to help
you enter the logic. Just click on the Build button If the off-shift and break nodes are not specified
in the logic window. in the Resource Specs dialog, the resource will
Pre-Off Shift or Pre-Break Logic Executed when- stay at the current node. If no resources or loca-
ever the location or resource is scheduled to go tions are assigned to a shift, the shift is ignored.
off shift or on break. This occurs before the loca-
tion or resource is checked for availability, and is
executed regardless of availability. This logic
may be used to check certain conditions before Functions and Statements
actually taking the resource or location off line. ProModel uses several functions and statements
The logic is executed for each resource and loca- specifically for off-shift and break logic: SKIP,
tion listed as members for this shift assignment PRIORITY, DTLEFT(), FORLOCATION(),
record. This allows some members to be taken off FORRESOURCE(), and RESOURCE(). Follow-
line while others may be forced to wait. (Pre-off ing is a brief description of each. For more
shift and pre-break logic may be referred to in details, see “Statements and Functions” on
this manual as pre-start logic when speaking of page 429.
either one.)
298 Chapter 7:
Shift & Break Logic
Expression Search and some dialog boxes where text is entered for
defining the model, such as attributes or arrays.
The Expression Search feature is used to find or
Search Notes Check this box to include Notes
replace text entered into logic windows and
fields in the text search.
expression fields, such as location downtime
logic or location capacity. Name fields can be Whole Words Only Check this box to search for
found, but not replaced. Reference fields can be only whole words or groups of whole words that
found and replaced. However, when the name of match the text to find. For example, searching for
a location, resource, or entity is changed, the user “Attr” without the Whole Words Only box
will be prompted to automatically change all ref- checked will find “Attr1” and “Attr2” whereas a
erences to the new name. There are three types of search with the box checked would find neither.
searches: Find expression, Replace expression,
Text to Find Enter the text expression you want
and Search Next expression.
to find.
Replace
Choosing replace gives you these options in addi-
tion to the find options:
Prompt on Replace Check this box if each time
ProModel finds a match, you want ProModel to
ask if you want that particular match changed to
the replacement text. The prompt will give you
the option to replace that particular match, skip
that particular match, or to cancel the search alto-
How to perform an expression search: gether.
New Text Enter the text you want to replace the
• Select Expression Search from the Tools menu. search text.
Search Next
Expression Search Sub-Menu Choosing Search Next in the Expression Search
Choices submenu will resume the most recently canceled
search. For example, suppose you begin a search
and then break out of the search to adjust some-
Find thing in the model. If you want to continue the
A dialog box gives you the following options original search, you can select Search Next and
after choosing Find from the Expression Search ProModel will start the search again at the place
submenu: you stopped searching.
Find Expression entire line on which the text was found, with the
search expression highlighted.
The Find Expression option allows you to find
each occurrence of an expression in a model.
Replace Expression
The Replace Expression option allows you to
find each occurrence of an expression in a model
and replace that expression with a new expres-
sion.
2. Supply the necessary details in the Replace dialog Important Notes Regarding
box shown below. Clicking Select All or Deselect All
button will check or uncheck every module. Expression Searches
1. Not every field of every module is included.
Fields such as statistics, text in graphics, or
yes/no fields which may not be edited cannot
be searched for or replaced. To replace
record identifiers, see number six.
2. Under “Modules to Search,” the Other
option refers to information entered in places
not listed in the dialog box, including the
Simulation Options dialog box.
3. Notes fields are not part of the actual model
data, therefore they are not automatically
included in the search. Notes also include
comments in the model. If you want to
search or replace Notes fields, check the
Search Notes option in the Find or Replace
3. Click on OK. If you have chosen “Prompt on dialog boxes.
Replace,” ProModel will then display the following 4. The Whole Words Only option interprets
dialog box if it finds the text you specified. words loosely enough to distinguish words
not separated by spaces. For example,
searching for “Attr1” in the expression
Attr1=Attr1+Attr2, would find both occur-
rences. You can search for expressions
longer than a whole word, such as
“Attr1=Attr1+Attr2,” as whole word expres-
sions. To find a portion of a name, like “Attr”
4. Choose: in “Attr1,” deselect the Whole Words Only
option.
Yes to change the text and search for the next match. 5. Once the Expression Search has found the
first occurrence of an expression, a dialog
Change All to change every match. box will appear giving information on
exactly where the text was found. This
No to skip this match and search for the next match. includes a box displaying the entire line on
which the text was found, with the search
Go to Module to edit the text directly. expression highlighted. In some cases the
box may be too small to display the entire
Cancel to leave the match intact and stop searching.
line. To see the hidden portion of the text,
left click with the left mouse button on the
text, and use the left and right arrow keys to
scroll the text horizontally.
ProModel 303
User Guide
Graphic Icons
Edit Window
You can also adjust the dimensions of the entire Save As Brings up the Save As dialog box for
graphic. saving the current Graphics library file under a
new filename. Graphic Library files have the file
Options The Options menu controls the editing
extension GLB.
environment. With this menu you can use a grid
to help you align component objects, edit that Print Graphic Prints the graphic in the Edit win-
grid, and require objects to snap to it. Finally, the dow only.
Options menu allows you to zoom in and out on
Print Library Prints the entire current graphic
the graphic so you can edit the graphic at differ-
library.
ent sizes.
Exit Quits the Graphic Editor with an option to
Window The Window menu allows you to
save the current library if changes have been
arrange the windows (or iconized windows) cur-
made since the last save.
rently displayed on the screen such that all win-
dows are visible at once. It also allows you to Recently Opened Files Lists the five most
bring any individual window to the forefront of recently retrieved graphics libraries. Selecting
the display. This is particularly useful when you one of these options will retrieve the listed graph-
are opening multiple graphic libraries and want to ics library.
view all libraries simultaneously.
Opening a Graphics Library File
File Menu All individual library graphics are loaded from
and saved to the current graphics library, which,
by default, is the one specified for the current
model. However, other graphic libraries may be
opened for editing at any time. The name of the
current library is displayed in the title bar of the
window for each library. More than one library
can be opened and viewed on the screen at a time.
Opening more than one graphic library simulta-
neously facilitates copying graphics between
New Creates an empty graphics library. libraries.
Open Brings up the Open Library Graphics dia-
log box for specifying which graphics library file How to open another graphics library
to retrieve. Graphics library files have the file file:
extension GLB.
1. Choose Open from the File menu.
Close Closes the current graphic library. If the
graphics library has been changed since the last 2. Enter or select the name of the desired graphics
save, you will have the option to save it. library.
3. To view all open graphic libraries, choose Tile or
Save Saves an open graphics library under the
Cascade from the Window menu.
current file name or prompts you for a name if the
graphics library has not been named.
306 Chapter 8:
Graphic Editor
A history list is given at the bottom of the File How to print an individual graphic:
menu so you are able to quickly retrieve the last
five libraries opened. 1. Double click the mouse on the desired graphic’s
icon, or select the graphic’s icon and click the Edit but-
ton.
2. Select Print Graphic from the File menu.
Closing a Graphics Library File
3. Choose the desired options from the resulting Print
When you are finished working with a graphics dialog box and click OK.
library, you can close it to save screen space and
memory. This option will not affect the graphic
library used with any model.
Printing an Entire Graphics Library
How to close a graphics library file:
How to print an entire graphics
• Choose Close from the File menu. library:
Saving a Graphics Library File 2. Choose the desired print options from the Library
Print dialog box and select OK.
Once a graphic has been created or edited and
placed in the current library, the library file must
be saved in order to make the changes permanent.
Please note
How to save a graphics library file:
If more than one graphic library is open, Pro-
• Select Save from the File menu to save the library Model will print the active graphic library only.
with the same name.
selecting its icon from the library and clicking the Export Graphic Exports the graphic in the Edit
Edit button, or double click the icon. window to a WMF or BMP file.
Importing a Graphic
Copying a Graphic from One Library graphic. This menu item works like the button of
to Another the same name described later in this chapter.
Flip Vertical Vertically flips the entire graphic or
How to copy an icon from one library any selected objects of the current graphic. This
to another menu item works like the button of the same
name described later in this chapter.
1. Open both libraries. Rotate Rotates the entire graphic or any selected
2. Drag the graphic’s icon from the first graphic objects of the current graphic 90 degrees clock-
library to the second graphic library (preferably left to wise. This menu item works like the button of the
right). same name described later in this chapter.
3. Save the destination library by choosing Save from Move to Front Moves the selected object in front
the File menu. of all other objects. Use this option to see an
object obscured by other objects. This menu item
works like the button of the same name described
later in this chapter (to move an object one posi-
Graphics Menu tion forward at a time, use the Graphic Tools).
The Graphics menu is for manipulating one or Move to Back Moves the selected object behind
more objects that comprise a library graphic. all other objects. Use this option to send an object
With this menu, you can group several objects obscuring other objects to the background. This
together, flip and rotate objects, and alter the menu item works like the button of the same
color, fill pattern and line style of objects. You name described later in this chapter.
can also adjust the dimensions of the entire
Group Combines or groups several objects into
graphic.
a single object for sizing and editing.
Ungroup Ungroups several grouped objects so
they may be edited individually.
Line Styles Allows the user to choose the line
style including solid, dashed, line thickness, and
optional arrowheads on either end of the line.
Fill Patterns Allows the user to choose the fill
pattern for solid objects including transparent,
slant, backward slant, grid, crosshatch, vertical,
horizontal, solid, vertical gradient, and horizontal
gradient.
Line Color Allows the user to choose the line
color and create custom colors.
Flip Horizontal Horizontally flips the entire Fill Color Allows the user to choose the fill color
graphic or any selected objects of the current and create custom colors for solid objects.
ProModel 309
User Guide
Dimension Brings up the Dimensions dialog box 2. Choose Ungroup from the Graphics menu.
for defining the graphic dimension. The dimen-
sion can be height or width. The units can be feet
or meters.
Line Styles
Please note You may choose different styles for the lines and
borders of objects by choosing Line Styles in the
Line Styles, Fill Patterns, Line Color, and Fill Graphic Editor Graphics menu.
Color set the feature and cause the setting to be
applied to the currently selected elements.
Group
When using the graphic tools to create an icon, it
is often helpful to group several graphics into a
single graphic for editing purposes. For example,
you may create an icon using the square, line, and
circle tool and want to work with them as a single
item.
Dimension
You can define the height or width of an object in
feet or meters from the Dimensions Dialog box.
This will determine how large the graphic
appears when placed on a model layout. For
How to change the fill pattern of an example, to change the width of a graphic loaded
object:
in the Edit window to 5.00 feet, enter the follow- know the graphic is actually 2.00 x 1.50 feet, you
ing in the Dimensions dialog box: will need to adjust the proportions of the graphic
accordingly by using various tools from the Tools
button bar.
Options Menu
The Options menu controls the editing environ-
ment. With this menu you can use a grid to help
align objects, edit that grid, and require objects to
snap to it. Finally, the Options menu allows you
to zoom in and out on the graphic so you can edit
the graphic at different sizes.
How to change the graphic’s dimen-
sions:
Background Color
Zoom
the Microsoft Windows standard for Window Clear Clears the contents of the edit window.
menus.
How to edit a graphic:
1. Select Graphic Editor from the Tools menu. How to name a graphic:
2. Use the drawing tools to create the new graphic.
1. Enter the desired name at the bottom left of the
3. Click the Save button on the graphic editor.
screen where it says “Name.”
4. The image appears at the end of the existing icons. 2. Click the Save button to save the named graphic.
• Selector
• Entity Spots
• Text
• Status Lights
• Lines
• Flip Horizontal How to move an object:
• Arcs
• Flip Vertical 1. Click on the Selector button.
• Triangles
2. Drag the object to the desired location.
• Rotate
• Regular Squares and Rectangles
• Cut
• Rounded Squares and Rectangles How to size or shape an object:
• Copy
• Circles and Ellipses 1. Click on the Selector button from the button bar.
• Paste 2. Select the desired object.
• Chords
3. Drag the sizing points. The arrow will turn into a
• Step Back cross-hair when it approaches the sizing points.
• Pies
• Step Front
• Polygons
• Line Color Text Tool
• Raised Squares and Rectangles Text may be placed anywhere in the graphic by
• Fill Color using the Text tool.
Text Tool
316 Chapter 8:
Graphic Editor
Line Tool
Please note
Arc Tool
Triangles
Triangles are drawn using the Triangle tool.
318 Chapter 8:
Graphic Editor
Rectangle
Raised Rectangle
Chords and Pies 2. Press the left mouse button at the corner of the
“slice.”
Chords and pies are drawn using the Chord tool
3. Drag the mouse to the desired position of the “slice”
and Pie tool.
and release the left mouse button.
Polygons
Polygons are drawn using the Polygon tool.
Chord Tool
Pie Tool
Positioning Spot entity will use the entity spot defined second, and
so forth. If entity spots are defined for a location
A positioning spot controls the positioning of an graphic in the Locations module, they are used
entity on a location, resource, or path. It also con- ahead of any entity spots defined in the Graphic
trols the positioning of an entity or resource on a Editor. If no entity spot is defined for the location
path. There are two types of positioning spots: graphic, no entity is shown on the location.
entity spots and alignment spots.
Entity Graphics Use only alignment spots. When
Entity spots can be defined for a graphic in either an alignment spot is defined for an entity graphic,
the Graphic Editor or in the Locations module. the entity graphic will be positioned so the align-
Alignment spots can only be defined for a
ment spot of the entity graphic and the entity spot
graphic in the Graphic Editor. In the Graphic Edi-
for the location or resource graphic are aligned. If
tor, the button showing the red circle with the the entity is traveling along a path, the entity
white X represents the positioning spot. The graphic will move along the path with the align-
default type is entity spot. To change the type, the
ment spot and the path segment or node aligned.
user may double click on the spot to display the
If no alignment spot is placed on an entity
Spot Type dialog. This allows the user to define
graphic, the center of the entity graphic is used
the type of positioning spot.
for alignment.
A graphic may have any number of entity spots. Resource Graphics May use both entity spots and
A graphic may also have any number of align- alignment spots. An entity spot on a resource
ment spots. However, only the first alignment graphic may be used to locate an entity a resource
spot defined will be used. An entity or alignment is carrying. An alignment spot can be placed on a
spot is ignored if it is inapplicable for the model resource graphic so that when the resource travels
element it is used to represent. The following def- along a path, the resource graphic will move
initions explain uses of the entity and alignment along the path with the alignment spot and the
spots for locations, entities, and resources. path segment or node aligned. If no alignment
spot is placed on a resource graphic, the center of
Positioning Spot
the graphic is used for alignment.
Flip Vertical
Status Light Rotate
Please note Using the flip and rotate buttons is the same as
choosing flip and rotate options under the Graph-
Status lights for location graphics may also be ics menu.
defined in the Locations Editor.
The figure below shows an object that has been
flipped horizontally, vertically, and rotated
through all phases.
Original Flip Horizontal Flip Vertical
Line and Fill Color formed using the left button unless stated other-
wise).
An object’s line and fill colors can be chosen
using the Line tool and the Fill tool. You may use TO... DO THIS
one of the predefined colors or create your own Select an object. Choose the Selector tool
custom color. Each tool’s color changes accord- and click on the object.
ing to the color chosen. Select multiple Drag in an empty region
objects. until a bounding rectangle
encompasses the objects.
or
Shift+Click on each of the
objects you want selected
(Shift + Click again on a
How to define the line color or fill selected object deselects it).
color: Move one or more Drag the selected object(s).
selected objects.
1. Select the object(s) to change using the Selector. Delete selected Press the Delete key.
2. Click on the Line or Fill tool from the button bar. objects.
or
3. Choose the desired color. The tool will change to
the color specified. Select Cut from the Edit
menu (This method puts
the object on the clipboard
for subsequent pasting).
Directories
The Options dialog contains default folders, The Directories section of the Settings dialog
selections for displaying the long build menu, allows you to specify which drives and folders to
defaults for record deletion, and the time between use for storing models, graphic libraries, and out-
auto-saves. put results.
2. Check the Long build menu option. 2. In the Auto-save field, enter the directory path you
wish to use.
3. Click OK.
Please note
AutoSaving Files
ProModel automatically saves the open model
every few minutes, which is useful in the event of
unforeseen crashes and power outages. ProModel
uses a model file called “AUTOSAVE.MOD” for
all autosaves and only modifies the original file
when Save is chosen from the File menu.
Please note
Customize 2. In the Name text box, type the name of the item you
will be referencing, as you want it to appear on the
You can add direct links to applications and files drop menu.
right on your ProModel toolbar. Create a link to 3. Click the Browse button.
open a spreadsheet, a text document, or your
4. Use the browse window to find the file or applica-
favorite calculator–it’s your menu. tion that you wish to have launched, then double click
To create or modify you Custom Tools menu, on it or click Open.
select Customize from the Tools menu. 5. The file or application name and path will appear in
the Source window.
Options
Select the Options button to customize ProClare
in these additional ways:
Always on Top This option allows ProClare to
always be on top of all other windows, which is
useful if you plan on adding a lot of new items.
ProClare is a quick way to add new variables, Auto Roll-up When enabled, ProClare is
attributes, macros and arrays into your ProModel reduced to just the title bar when the mouse cur-
Corporation product without having to leave sor is outside the window. When the cursor is
where you are in the model building process. inside the window, the window is restored to nor-
This is extremely useful if, for example, you are mal size.
into heavy logic and need to add a new variable.
With this tool you can add the new variable with-
out losing your place.
Tools
Startup Loads the default ProModel Corpora-
tion product for model building and editing. You
can choose to specify a model to be loaded.
Please note
Locations
When you click on a product, it will populate the
location box with all of the locations to which
that product is installed. The default product
location will have a “(Default)” caption next to it
to indicate that it is the default.
Products
This tool supports ServiceModel, ProModel and
MedModel. It supports multiple installations of
these products as well.
Each product has 2 labels: Installed and Default.
Both labels say either Yes or No next to them to
ProModel 331
User Guide
Example Worksheets
ProModel Player After the model has been loaded, the layout win-
dow of the model appears in the main browser
ProModel Player is a browser plug-in for window.
Microsoft’s Internet Explorer that allows users to
view the animation and statistics of a model.
Please Note
: Toggles the Auto Zoom on/off. When
selected, this option will zoom the animation to
A user who has installed this plug-in, but has not
fit within the browser window.
installed any other ProModel Corporation prod-
ucts will not have access to any of ProModel’s
: Opens an options window, which gives you model building capability, they may only view the
several options for controlling your animation. simulation animation and the statistical output
results. Users who have a valid ProModel Corpo-
ration registration key will have access to Pro-
: Opens this Help file. Model Player Gold, which is described in the
To run the model animation, click ProModel next section.
Player’s play button. If you have selected to view
the output, as soon as the simulation is complete,
the output statistics and graphs will open in the
browser window. Only predefined output graphs ProModel Player Gold
will come up, the user cannot define new graphs If you have a valid registration key on your com-
through ProModel Player. puter for a ProModel Corporation product, Pro-
Model Player will automatically launch
ProModel Player Gold.
The Gold version of ProModel Player is function-
ally similar to the regular version of ProModel
Player, but it contains the added functionality of
scenarios and macros.
ProModel Player Gold allows you to view values
for scenarios that are packaged with any .pkg file.
The scenario viewing area is accessible through
the green bar underneath the ProModel Player
toolbar.
simulation clock will account for the hour shift of General: Skip Resource DTs if Off-shift When
daylight saving time in April and October. checked, the simulation will ingnore resource
downtimes if the resource is off-shift.
General: Generate Animation Script When
checked, the simulation will generate a 3D ani-
mation script for use with ProModel Corpora- Output Reporting Options
tion’s 3D Animator application. The animation
script records the graphical events of the simula-
tion for later 3D rendering in 3D Animator.
General: Common Random Numbers This fea-
ture is a variance reduction technique used prima-
rily when running multiple scenarios, each with
multiple replications. It is intended to help reduce
the number of replications required to determine
the statistical significance of differences between
scenario results. When enabled, common random Standard When you select Standard output
numbers will ensure that the sequence of starting reporting, ProModel collects output statistics for
seed values for each stream in a set of replica- one or more replications. No interval length can
tions for one scenario is identical to the starting be specified when using this option. From the
seed values for corresponding replications in output program, statistics can be viewed for each
every other scenario. replication; although, by default they are dis-
played as an average over all the replications.
For example, if you have this option disabled, the
match between starting seed values for each Batch Mean The method of batch means, or
stream in corresponding replications for each sce- interval batching, is a way to collect independent
nario will not be guaranteed. The net effect of this samples when simulating steady-state systems as
is that you may have to run more replications to an alternative to running multiple replications.
get the same confidence interval that you are able The advantage over running multiple replications
to obtain by running with common random num- is that the warm-up period runs only once. When
bers. you select Batch Mean output reporting, the out-
put statistics are collected for each time interval
When common random numbers are enabled, indicated in the Interval Length field. The num-
you can theoretically establish the statistical sig- ber of intervals is determined by dividing the run
nificance of differences in output results between length by the interval length. The interval length
multiple scenarios with fewer replications than may be an expression but will only be evaluated
by not enabling common random numbers. Spe- once at model translation, so it is always a fixed
cifically, it reduces the amount of variation in dif- interval. The Number of Replications edit field is
ferences between outputs of corresponding not used when this option is selected since it
replications by ensuring that these differences are replaces the need for running multiple replica-
due to true differences in performance and not to tions.
differences due to randomness of the streams.
For more information on random number Example
streams, see “Using Random Number Streams”
on page 258.
ProModel 341
User Guide
The Content History graph below shows that the con- The content history table below shows how the con-
tents of Lathe1 varied throughout the simulation. The tents of Lathe1 varied throughout the simulation and
interval length was set to 0.5 hours and the simulation from one replication to the other. The interval length
ran a little over 3 intervals (1 1/2 hours). The average was set to 0.5 hours and the simulation ran a little over
or mean of the intervals were 2.7, 3.09, and 3.15, so the 3 periods (11/2 hours) with two replications. The
average of the interval averages is the batch mean or results are shown below.
2.98.
Periodic Period Period Period
Output 1 2 3
Replication 1 2.70 3.09 3.15
Avg.
Replication 2 2.20 3.13 3.01
Avg.
Pooled Average 2.45 3.11 3.08
How to define an RTI parameter: Scenarios are saved with the model for future
use.
1. Choose More Elements from the Build menu.
2. Choose Macros...
3. Type the macro name, choose the RTI button, and
select Define.
4. Define the Parameter Name.
5. Enter the Prompt (optional).
6. Select the parameter type, Unrestricted Text or
Numeric Range.
7. If defining a Numeric Range, enter the lower and
upper boundary for the range.
8. Click OK. Add Opens the Scenario Parameters dialog box
9. Use the macro ID in the model (e.g., operation time, to add a scenario.
resource usage time, etc.). Edit Opens the Scenario Parameters dialog box
to edit an existing scenario.
Duplicate Duplicates the selected scenario and
Please note opens the Scenario Parameters dialog box, allow-
ing you to give the newly created scenario a name
For more information on RTI, see “Run-Time and edit its data.
Interface” on page 234. Delete Deletes the selected scenario.
Scenarios dialog box. This allows you to control 4. Double click on the Parameter to bring up the
the specifics of a scenario. parameter dialog box or select the Parameter and click
the Change button.
5. Type the text in the box in the Parameter dialog box.
6. Select OK in the Parameter dialog box.
7. Repeat for every parameter desired.
8. Select OK in the Scenario Parameters dialog box.
Please note
Debugging ProModel Logic Even though several threads can execute the
same logic at the same time in the simulation, the
The Debugger is a convenient and efficient way simulation processor can only process them one
to test or follow the processing of any logic at a time. So there is really only one current
defined in your model. The debugger is used to thread while all other threads are suspended
step through logic one statement at a time and (either scheduled for some future simulation time,
examine variables and attributes while a model is or waiting to be executed after the current thread
running. at the same simulation instant).
Before discussing the details of the Debug
option, it is important to understand the following
terms:
Example
Statement A statement causes ProModel to take
some action or perform some operation. This To better explain the above concepts, consider the fol-
includes statements such as GET, JOIN, and lowing operation logic for a multi-capacity location.
SPLIT AS. (See “Statements and Functions” on
page 429 for more information).
Line of
Logic Logic refers to the complete set of state- execution
ments defined for a particular process record, for Thread 3
downtime event, initialization logic, or termina-
tion logic for a simulation. Line of
execution
Thread A thread is a specific execution of any for Thread 2
logic. A thread is initiated whenever a logic
Line of
needs to be executed. This can be an entity run- execution
ning through an operation logic, the initialization for Thread 1
logic, a resource running a node logic, a down-
time logic, or any other logic. Note that the same
logic may be running in several threads at the Logic
same time. For example, three entities of the
same type being processed simultaneously at the The logic includes all statements shown on previous
same multi-capacity location would constitute page. Let’s assume that there are three different entities
three threads. currently executing this operation logic. Each execut-
ing entity constitutes a thread. A possible scenario for
A thread or logic execution can be suspended by this case is the following: Thread 1 is an entity using
any statement, causing simulation time to pass two units of resource Oper_3 for N(35,5) minutes.
(e.g., GET Res1, WAIT 5, etc.). After such a Thread 2 is an entity waiting for resource Oper_1 to
statement completes its task, the thread is become available. The last thread is a different entity
resumed. During the time a thread is suspended, which has completed 10 minutes of the 15 minute wait
other threads may be initiated, suspended, executed at the beginning of the logic. Note that two
resumed, or completed. This is called thread entities arriving at a multi-capacity location at nearly
switching.
348 Chapter 9:
Run-Time Menus & Controls
the same time could both execute the same WAIT or Debugger Options Dialog Box
USE time in the logic, only in different threads.
The Debugger Options dialog box allows the user
to specify when to display the Debugger dialog
box during the simulation run.
In general, for a logic block containing state-
ments that pass simulation time, any number of
threads can wait for the required simulation time
to elapse, corresponding to each time elapsing
statement. These threads are scheduled to resume
at some future simulation time.
There can also be many threads (any number of
threads corresponding to each of the time elaps-
ing statements within the logic) which have com-
pleted their waiting time, but await their turn to
continue execution. These threads are on hold
because the simulation engine is busy with
another thread scheduled for the same simulation
time. There is only one thread executed at any
Disable debugger Disables the debugger com-
real time instant by the simulation engine.
pletely. By default the debugger is enabled. Run-
The debugger window will display a unique iden- ning the model with the debugger disabled
tification number for the current, active thread. increases the run speed. When running multiple
This thread ID number will help you differentiate replications or scenarios, or when the animation
between different instances of the same logic is disabled, the debugger will automatically be
block while you are debugging your models. disabled.
DEBUG statement Displays the Debugger dialog
box every time a DEBUG statement is encoun-
tered in an enabled process while running the
simulation. See “Debug” on page 455 for more
information.
Global Change Displays the Debugger dialog
box every time a global change occurs to a speci-
fied variable or array. The Debugger dialog box
shows the original and new value of the element.
Only one global name can be specified in this
box.
User Condition Displays the Debugger dialog
box when a defined user condition written as a
Boolean expression becomes true, for example,
when Var1=5. Only one expression can be speci-
fied in this box, although several conditions can
ProModel 349
User Guide
be tested by using the OR operator. See “Boolean Context Box Error Dialog Box
Expressions” on page 400 for more information.
Check Condition Allows the user to define how
often to check the user condition. The options
include:
• Before each statement The condition, such as
Var1=1, will be checked before each state-
ment is executed. This option is the most
precise way to tell exactly when the user
condition becomes true, but it slows down
the simulation the most.
• At each thread switch The condition, such as
Var3>17, will be checked only if a state-
ment from a different thread follows the
current statement being executed.
• At each thread initiation The condition, such Logic Display Box Information Box
as Att1=5, will be checked only if the next
statement to be executed is the first state- Error Display Box Displays the error message or
ment in a thread (the first statement in a reason why the Debugger dialog box is dis-
thread is also the first statement of a logic). played, such as the User-Condition becoming
true.
Debug button Pressing the Debug button dis-
plays the Debugger dialog box before the next Logic Display Box Displays the statements of
statement executes. the current logic being executed.
OK Closes the Debugger Options dialog box Context Box Displays the module, operation, and
and continues to run the simulation model. line number (in which the debugger stopped) in
the Information box.
Debugger Dialog Box Information Box Displays local variables and
The Debugger can be used in two modes: Basic entity attributes with non-zero values in the Infor-
and Advanced. The Basic Debugger appears ini- mation box.
tially with the option of using the Advanced End Simulation Choose this option to terminate
Debugger. The Basic Debugger dialog box is the simulation. This will prompt you about col-
shown below: lecting statistics.
Run Continues to run the simulation, but still
checks the debugger options selected in the
Debugger Options dialog box.
Next Statement Jumps to the next statement in
the current thread. If the last statement executed
suspends the thread (e.g., the entity is waiting to
capture a resource), another thread meeting the
350 Chapter 9:
Run-Time Menus & Controls
debugger conditions may be displayed as the next tionality as the Next Thread button in the Basic
statement. debugger.
Next Thread Brings up the Debugger at the next New (Thread) Jumps to the next initiated thread.
initiated or resumed thread.
Disable (Thread) Temporarily disables the
Into Subroutine Steps to the first statement in the debugger for the current thread (see also enable).
next subroutine executed by this thread. Again, if
Exclusive (Thread) The debugger displays the
the last statement executed suspends the thread,
statements executed within the current thread
another thread meeting debugger conditions may
only. When the thread terminates, the exclusive
be displayed first. If no subroutine is found in the
setting is removed.
current thread, a message is displayed in the
Error Display box. Next (Logic) Jumps to the next initiated or
resumed thread that is not executing the same
Options Brings up the Debugger Options dialog
logic as the current thread.
box. You may also bring up this dialog box from
the Simulation menu. New (Logic) Jumps over any resumed threads to
the next initiated thread not executing the same
Advanced Changes the Debugger to Advanced
logic as the current thread.
mode, provides additional options discussed next.
Disable (Logic) Temporarily disables the debug-
Advanced Debugger Dialog Box ger for all threads executing the current logic (see
also enable).
The Advanced Debugger contains all options in
the Basic Debugger plus a few advanced features. Exclusive (Logic) The debugger displays only the
statements executed in any thread executing the
current logic.
Enable disabled threads and logics Enables the
threads and logics which were disabled previ-
ously.
Trace Continuous
Select this option to write the trace continuously
to the output device selected from the Trace Out-
put submenu. This is useful when you do not
know exactly where to begin or end the trace.
Clicking and holding the right mouse button
stops the trace until you release the button.
Filtered Trace...
When you view the Trace during simulation, you
see a list of all the events that occur as your
model is running.
Although it may be helpful to view every event in
the simulation, there are many times when you
will want to focus on just the events that affect
specific elements (locations, resources, variables,
etc.) of your model.
The Trace feature contains an optional, custom
filter, which allows you to pick the elements of
your model, or custom text string, that you wish
to view in the Trace window.
The Enable button in the Custom Trace Options window, the zoom function will automatically
dialog must be checked for the Trace Filter to pan to show at least part of the layout.
take effect.
Output to File
Select this option to send the trace listing to a text
file. Trace statements are automatically written to
a <model name>.TRC file.
Animation Options
In addition to the debug and trace options, anima-
tion options allow you to control the animation
To zoom in a specific area of the simulation lay-
screen.
out, press and hold the CTRL key, then click and
Animation Off Choose this option to temporarily drag the mouse to create a rectangle around the
suspend the animation. To resume the animation, are in which you would like to zoom. Release the
select this option again. (The selection automati- mouse, then the CTRL key. The layout will zoom
cally changes to “Animation On.”) Note that run- in on the selected area.
ning with animation off greatly increases the run
Views Click on this menu item to display the
speed, especially for models with a large amount
available views. Select the desired view.
of graphic detail. To increase the run speed to an
even faster rate, check the Disable Animation in User Pause Choose this option to enter a time for
the Simulation Options before running the model the simulation to pause. The proper format for
(see “Animation Options” on page 353). specifying a user pause is hh:mm:xx where hh
represents hours, mm represents minutes, and xx
Zoom Select this option to Zoom in or out on the
represents hundredths of a minute.
animation. When this option is selected, you may
choose a preset zoom level, enter your own zoom
level, or choose Zoom Full to fit the entire anima- Run-Time Information Menu
tion on one screen. The Zoom function zooms to
the center of the screen. If the zoom factor causes The Run-Time Information menu allows you to
the model layout to appear outside the layout see the status of locations in two different ways.
In addition, you may view the current state of all
variables and array elements. Each of these
options is defined in the following pages.
354 Chapter 9:
Run-Time Menus & Controls
Status Light Select this option to bring up the changes for those metrics dynamically as the
Status Light Legend. model runs. Configurations of one or more plot
windows can be saved and later retrieved to
Locations Select this option and choose a loca-
quickly view a customized set of graphs.
tion to view an information box with real time
information about the location. Information for Features include:
all locations may also be displayed.
• Up to six elements many be graphed on the
Variables Select this option to show the current same chart at the same time.
state of all real and integer global variables. • More than one chart may be active at a time.
Arrays Select this option to show the current • Charts can be resized.
value of all cells for arrays of up to three dimen- • Plots display a meaningful scale for both
sions. axes.
• Improved customization for graph appear-
Dynamic Plots Allows you to graphically monitor ance
the performance of model elements during run
• Chart settings may be saved to use over from
time and store statistical data in an Excel® spread-
one simulation run to the next.
sheet.
• Dynamic plots work with multiple replica-
tions and scenarios.
Location Status Legend
The Location Status Legend shows the different Basic Operation
colors of a location status light and the meaning
of each color. Single capacity locations may be in Please note
any of several states, while multi-capacity loca-
tions appear only as up or down. This window
The Dynamic Plot dialog is only accessible dur-
may remain open during the simulation.
ing simulation run-time. If you will be creating
saved chart views, you may wish to pause the
simulation, define Chart views, then resume the
simulation.
Dynamic Plots
Dynamic plots allow you to select certain metrics
for various model elements and observe value
ProModel 355
User Guide
Dynamic Plots you will find two sub-items, New keyboards. When a subtree is fully expanded,
and Configurations… individual plottable items are shown, as below:
Statistic List
The item list below the tree view contains the
items currently being graphed, arranged into two
columns: a label and a statistic name. The label
356 Chapter 9:
Run-Time Menus & Controls
initially consists of only the text directly right of horizontal gridlines, and a chart title. An exam-
the item icon in the tree view, while the statistic ple of a chart view is shown below.
name is composed of the names of the items
ancestor nodes and the name of the item node
itself. For example, for the "Avg Min per Entry"
item under the Input location, the label would ini-
tially be set to "Avg Min per Entry" and the sta-
tistic name would be "Locations\Input\Avg Min
per Entry."
Please note
containing the names of any saved dynamic plot with the name specified in the edit field. If the
configurations for the model, an edit field, and name matches one of the configurations in the
Load, Rename, Delete, Save, and Exit button. configuration list, this data will replace the previ-
ous data for that name.
The Save button does not actually save data into
the model file. Rather, it creates or modifies a set
of configuration data associated with a particular
configuration name in memory and tags the
model as being modified. If you exit the pro-
gram, load a model, or execute the New com-
mand from the File menu you will be prompted to
save the model. Using the Delete or Rename but-
tons in the configuration dialog also tags the
model as modified.
Advanced Operation
If you select a configuration from the list and
To enhance your simulations and presentations
click Load, the indicated saved configuration of
you can turn your dynamic plots on and off using
chart(s) will be loaded, with all of the previous
the DynPlot “” statement in your model logic.
settings as far as selected data items, chart style,
Predefine the statistics to be graphed and a chart
colors, fonts, visible elements, screen position
name, then open your plot through subroutines or
and size, etc. If any of the previously selected
processing logic.
data items no longer exist in the model, they will
simply not be displayed. For example, if a statis-
tic had been selected for a location that was later
deleted from the model, it will no longer be
selected.
Double-clicking on a configuration in the list has
the same effect as selecting it and clicking the
Load button.
Context Choose this option to go directly to the How to control the simulation speed:
help screen that corresponds to the active win-
dow. If no context sensitive help exists for the • Move the animation speed control bar to the left to
active window, the Main Help Index will appear. decrease the simulation speed or to the right to increase
the simulation speed.
About... Choose the option to display a message
containing software version information.
Slower Faster
Run-Time Controls
In addition to the animation options discussed in
the previous section, you may pan the animation
screen in any direction, control the speed of the
simulation, and change the format of the simula-
tion clock display. These and other procedures
are discussed in this section.
Desired Location
How to change the format of the simu-
lation clock display:
Anchor
360 Chapter 9:
Run-Time Menus & Controls
2. Select a format for the clock display. • Pause/Resume Simulation Allows you to
toggle the simulation’s pause on and off.
• Trace Options Lists events as they happen
during a simulation. This listing may be Step
by Step, Continuous, or Filtered.
• Dynamic Plots Opens the Dynamic Plots
window.
Please note
Once your model has been built, and the simulation run, you are ready to begin making important deci-
sions about your real-world process based on your simulation’s data. To help you make the most of the
data collected during simulation, ProModel comes with a powerful, easy-to-use Output Viewer 3DR.
This Output Viewer 3DR allows you to view your date numerically, in spreadsheet format, or graphi-
cally in a variety of charts.
364 Chapter 10:
Output Viewer 3DR
Output Viewer 3DR Data sets can also be printed using the print
options in this menu.
Output Viewer 3DR organizes and displays the
data gathered during your model’s simulation.
View Menu
You can open Output Viewer 3DR from Pro-
Model or from the Window’s Start menu in the The View menu lets you specify how you want
ProModel program group. the data displayed.
Output Viewer 3DR’s Menu bar and Toolbar give
you the controls necessary to create the reports
and charts needed to help interpret your data.
Menu Bar
The Menu bar contains all of the tools necessary
to view your simulation’s data. The Menu bar is
located just beneath the Output Viewer 3DR cap-
tion bar, and allows access to the following
menus: Reports and Charts
The first five selections in the View menu display
File Menu the output data in different ways:
The File menu allows you to open and close data • Report Spreadsheets of the data collected
files, export data, and print data. during the simulation. see “Creating
Reports” on page 372.
• Category Charts Bar charts of your data.
see “Category Chart” on page 381.
• State Charts Stacked bar charts of state
variables such as location and resource
states. see “State Chart” on page 382.
• Histogram Displays graphically the fre-
quency of occurrences of time plot data. see
“Histogram” on page 384.
• Time Plot Shows variables, states and
events over time. see “Selection Window” on
Output Viewer 3DR opens files with the .idb page 386.
extension; however, .rdb files, which are gener-
ated by ProModel can be converted to .idb files Sheet/Chart Properties
when they are opened using Output Viewer 3DR. The title of the last option in the View menu will
Data can be exported to a .csv (comma-delim- vary between Sheet Properties and Chart Proper-
ited) file using the Export Data option. This ties, depending on whether a spreadsheet report
allows you to later import the data into other data or graphical chart is currently displayed. This
viewing programs, such as Excel selection brings up a window where you can
ProModel 365
User Guide
choose the data you want to appear in the open and max, standard deviation, and various
report or chart. confidence interval information for the repli-
cations.
Sheet Properties - Display Items
If you choose Sheet Properties while you are Please note
working with a Report, the following window
appears. The default Display Items Tab is If you are working with a database that does not
described below. contain multiple replications, the Additional
Records field of the Sheet Properties window is
not applicable, and therefore not accessible.
• Non-scrolling columns from the left: Use A view describes the way a report or chart
this column to lock columns in place as you appears. For instance, you may choose to create a
scroll horizontally through your sheet data. category chart as explained on page 381.
For example, entering “1” in this field will
lock the left-most column in place, so that it
will not scroll with the rest of the sheet’s col-
umns.
• Display time values in: By default, time val-
ues are shown is hours, but you may choose
to have time units shown in seconds, min-
utes, hours, days, or weeks.
Chart Properties
The Chart Properties dialog will vary depending
on what type of chart you choose to view proper-
ties for. See each chart type description (begin-
ning with “Category Chart” on page 381) for
more information on the options available from
its Chart Properties dialog.
That chart may then be customized using the
Tools Menu tools in the Chart toolbar, page 379, and the right-
click menu, page 369.
The Tools menu allows access to the View Man-
ager and Output Viewer 3DR options.
View Manager
The View Manager allows you to save custom-
In the example shown, the fonts, coloring and
ized report and chart views for quick retrieval.
window size were changed, but the data remains
The View Manager is great for creating custom
the same.
presentations. Views are associated with the
model, so the next time the model is run the same
view appears.
ProModel 367
User Guide
This particular customized view of the chart can How to Save a Customized View
be saved using the View Manager.
1. Open a report or chart window. See “Reports and
Charts” on page 364 for a list of possible reports and
charts.
2. Customize the report or chart as desired using the
tools in the Chart toolbar, page 379, and the right-click
menu, page 369.
3. Open the Views Manager by clicking on the
tool in the Output Viewer 3DR toolbar, or selecting
View Manager from the Tools menu.
4. Click the New Icon, , in the View Manager and
give the view a name.
5. Click OK to save your new view.
The decimal precision can be changed to increase • Tile Horizontally Sizes and places each
or decrease the number of digits that appear for open window horizontally across the screen
all real numbers that are displayed. so none of them overlap. Since most data in
You can choose to have the current database close the Output Viewer is arranged horizontally
whenever you open a new database. within a window, this option is very helpful
Selecting the check box for Enable Multi-create for comparing data from one window with
Dialogs will leave the Select Report and Select another.
Chart windows open until you close them. This • Tile Vertically Sizes and places each open
allows you to open multiple reports or charts at window vertically across the screen. This
the same time without having to reopen the cre- makes comparing data across two or more
ation window each time. windows convenient when the data in the
This option is checked by default. If you want the window is arranged vertically.
selection widow to close when you open a report • Cascade Places windows on top of each
or chart, uncheck the box. other in an overlapping manner.
If you have changed your report or chart style as • Arrange Icons If you have report or chart
described in the previous heading, you can windows minimized within the Output
restore the default styles by using the Reset Viewer 3DR window, this options will align
Defaults menu and Reset button. them in a row along the bottom of the Output
Viewer 3DR window.
How to Reset Default Styles • Close All Closes all open windows in the
Output Viewer 3DR.
1. Select Report or Chart Defaults from the pull-down • Open Windows This last field in the Win-
menu in the Options window. dow menu displays the names of all the open
windows. This is helpful for navigating
2. Click the Reset button.
ProModel 369
User Guide
through data windows when you have many For more information on these features see “View
open at one time. Menu” on page 364.
Help Tool
• : Starts the Output Viewer 3DR Online
File Tools Help.
The Report and Chart tools gives quick access to For more information on Views and the View
options found in the View menu. Manager, see “View Manager” on page 366
• : Creates a report.
• : Creates a category chart.
Right-click Menu
The Right-click menu provides a shortcut for
• : Creates a state chart. editing the appearance and structure of your
• : Creates a histogram. reports and charts.
The Right-click menu is available in report and
• : Creates a time plot chart.
chart windows. Additionally, the options that
appear when you right-click in the Output Viewer
370 Chapter 10:
Output Viewer 3DR
3DR vary depending on which area you right- “Category Chart” on page 381 for more
click on. information.
• Create State Chart If you right-click on a
Right-click Menu in Reports column that contains percentage values, you
can choose to have that data displayed,
When you right-click anywhere in a report win-
together with all other percentage columns
dow, the following menu appears.
on the sheet, as a State Chart. The State
Chart that’s created is the same as one cre-
ated using the State Chart option. See “State
Chart” on page 382 for more information.
When you right-click anywhere in the legend This could be the color of the background or
area, the following menu appears. bars in the chart.
• Toolbar Toggles the toolbar for chart win-
dows on and off. This is helpful, for exam-
ple, to make the chart appear less cluttered
during a presentation of the data or on a
printout of the chart. For more information
on the chart window toolbar see “Chart Tool-
bar” on page 379.
• Chart Properties Opens the Properties win-
dow. For more information on this window
see “Sheet/Chart Properties” on page 364.
• Modify Chart Items This options opens the
chart’s data dialog, which was initial dialog
There are four areas in this menu: shown when you first created the chart. This
• Font This features lets you change the font option is only available for Histogram and
options for the legend labels. Time Plot chart types.
• AutoSize The AutoSize option resizes the For more information on the data dialog see
legend area to fit the labels in the legend. the corresponding chart descriptions, begin-
• Legend Position The position of the legend ning with “Category Chart” on page 381.
area can be moved to any one of the four
sides of the Chart window, or it can float in Right-click Menu for Titles and Labels
its own window. Titles and labels are the text within the chart area.
• Hide Selecting this option makes the leg- Right-clicking on either of these two will bring
end disappear. You can bring the legend back up a Right-click menu similar to that of a chart
by opening the Chart Properties window in area’s menu, but with two additional options.
the View menu.
Creating Reports 2. If the model you ran had multiple scenarios or repli-
cations, the following window appears.
Reports contain the numerical data that is col-
lected during your simulation.
This information is presented in spreadsheet 3. From this window you may choose which scenarios
form, and grouped into the following categories: and replications to view.
• General 4. Click on the Create button. This will open a new
• Entity Activity window with the chosen report.
• Entity Costing
• Entity States Please note
• Failed Arrivals
• Location Costing If your model was run for only one replication
• Location States Multi and one scenario, the report window will open
• Location States Single/Tank immediately after selecting the Reports option.
• Locations
• Logs
• Node Entries
Report Window
• Resource Costing
• Resource States The Report window contains the categorized
information from your simulation.
• Resources
• Variables
For more information on each of these categories
see “Report Data” on page 373.
ity report. However, for costing pur- • % In Move Logic The percentage of time
poses, the entity did not explicitly exit, the entity spent traveling between locations,
but its costing information was added to including any delay time incurred in move
the entity it was JOINED, permanently logic.
LOADED, or COMBINED with. • % Waiting The percentage of time the
- When an entity temporarily LOADS onto a entity spent waiting for a resource, a WAIT
base entity or GROUPS with another UNTIL condition, another entity to join or
entity, and the entire LOADED or combine, or behind other entities. (100% -
GROUPED entity exits the system, the Sum of %’s for all other states.)
original entity implicitly exits the sys- • % In Operation The percentage of time the
tem, and is reported as an exit in the entity spent in processing at a location or
Entity Activity report. However, for traveling on a conveyor/queue. If an entity is
costing purposes, the original entity did on a conveyor behind another entity which is
not explicitly exit, but its costing infor- blocked because the next location is unavail-
mation was added to the entire load or able, the time the entity spent behind the
group. other entity is considered % in Operation.
• Total Cost Dollars Total Cost = cumulative • % Blocked The percentage of time the
entity cost, or the sum of costs incurred on entity spent waiting for a the next location to
all locations the entity passed through + become available.
the sum of all costs incurred by use of
resource + initial cost + any IncEntCost Failed Arrivals
• % Total Cost % Total Cost refers to the
The number of entities that failed to arrive at a
entity’s percentage of sum of all entity
specific location due to insufficient capacity.
costs
In the above calculations, the rate defined (per
Location Costing
day, hour, minute, and second) converts to the
default time units specified in the General Infor- • Operation Cost Dollars Operational Cost =
mation dialog. (Active Operation Time * Rate) + (Any
IncLocCost)
• % Operation Cost Refers to the location’s
Please note percentage of the sum of all operation costs
• Resource Cost Dollars Resource Cost =
ProModel does not allow you to generate a Cost- (Utilization * Rate) + (Times Used * Cost
ing Graph. However, if you set a variable equal per use)
to GetCost (e.g., Var1=GetCost), you can gener-
ate a time series graph to track changing entity
costs. Please note
• % In Use The percentage of time the tion or other resource to transport or process
resource spent transporting or processing an an entity, or to service a location or other
entity, or servicing a location or other resource. Does not include any pickup time,
resource that was down. This also includes but does include any blocked time. (This
deposit time. information is not available if your model
• % Travel To Use The percentage of time the does not have dynamic resources.)
resource spent traveling to a location or other Average Time Travel to Use = total Time Travel
resource to transport or process an entity, or to Use / (divided by) Number of Times Used
to service a location or other resource. This • Average Time Travel To Park The average
also includes pickup time. (This information time the resource spent traveling to either a
is not available if your model does not have park node or a downtime node. (This infor-
dynamic resources.) mation is not available if your model does
• % Travel To Park The percentage of time not have dynamic resources.)
the resource spent traveling to a path node to • % Blocked In Travel The percentage of
park or traveling to its downtime node. (This time the resource was unable to move to a
information is not available if your model destination because the next path node along
does not have dynamic resources.) the route of travel was blocked (occupied by
• % Idle The percentage of time the resource another resource). (This information is not
was available but not in use. available if your model does not have
• % Down The percentage of time the dynamic resources.)
resource was unavailable due to unscheduled • % Utilization The percentage of time the
downtimes. resource spent traveling to be used, trans-
porting or processing an entity, or servicing a
Resources location or other resource.
• Units The number of units defined in the Total Travel to Use Time + Total Time In Usage x
Resources module for that resource. 100 / (divided by)
• Scheduled Time The total amount of time Total Scheduled Time
the resource was scheduled to be available.
(Excludes off-shift time, break time, and Please note
scheduled downtimes.)
• Number of Times Used The total number of ProModel reports resource groups and multi-unit
times the resource has been acquired to resources both by unit and collectively. The col-
transport or process an entity or to service lective unit (aggregate) report for a resource
locations or other downed resources. totals the first three fields and averages the last
• Average Time Per Usage The average time five fields discussed above.
the resource spent transporting or processing
an entity, or servicing a location or other
resource. Includes any pickup and drop-off
time as well as any blocked time while in Variables
use. (See note on time units.)
• Total Changes The total number of times
• Average Time Travel To Use The average the value of the given variable changed dur-
time the resource spent traveling to a loca- ing the simulation.
378 Chapter 10:
Creating Reports
Please note
Please note
Visible column. To show or hide all the items you Category Chart
can click check or uncheck the box in the <ALL>
row or click on any box while holding the CTRL Category Charts displays bar charts for columns
key. of data found in reports.
Double click on a series or item name to rename The Category Chart is an excellent way to visu-
it with an alias. ally compare the different items in your reports. It
is also helpful for organizing data attractively for
presentations.
To display a Category Chart, select Category
Chart from the View menu or the Category Chart
icon from the Toolbar. As a shortcut, you can also
right-click on any column of data in a report and
select Category Chart from the drop-down menu.
When you choose to view a Category Chart, the
Category Chart Selection dialog will be dis-
played.
centage values and select State Chart from the State Chart Example
drop-down menu. An example of a State Chart is shown below.
When you choose to view a State Chart, the State
Chart Selection dialog will be displayed.
Selection Window
Selection Window
Chart Properties
The chart properties for the simple values histo-
gram are the same as for the time-weighted val-
ues histogram. See “Chart Properties” on
page 384.
ProModel 387
User Guide
Chart Properties
Choosing the properties option for time weighted
values time plot will open a window with two
tabs: Data and Display
Chart Example
The example chart below compares the time-
weighted time plot contents of a queue for two
scenarios.
Chart Properties
Choosing the properties option for simple values
The X-Axis shows the time periods for the chart. time plot will open a window with two tabs: Data
The Y-Axis shows the average content values of and Display
the queue for the time periods in the X-Axis.
Chart Properties: Data
The One Operator scenario additionally displays
the minimum and maximum contents of the
The chart properties:data for the simple values
queue for each time period for all replications, as
time plot are the same as for the time-weighted
well as the contents 99.99% confidence interval,
values histogram. See “Chart Properties” on
which means that 99.99% of all queue contents
page 384.
will be with the two confidence interval lines by
period.
Chart Properties: Display
This chart shows the impact that an additional
The Display tab for the time-weighted time plot
operator has on the contents of a queue.
properties window is functionally equivalent as
ProModel 389
User Guide
the Category Chart Properties: Display window, State Values Time plot
with the exception of the “Line Properties”
The state values time plot shows location state
option.
statistics over time.
• Line Properties: Choose the pattern and
thickness for the lines on the chart. Selection Window
See “Category Chart Properties” on page 382.
Chart Example
The example chart below compares the value of
the variable “WIP” over time for two scenarios.
Chart Properties
The Y-Axis shows the value of the WIP (work in Choosing the properties option for state values
progress) variable over the time in the X-Axis. time plot will open a window with two tabs: Data
The example shows how adding two additional and Display
resources to the demo model increases WIP and
reduces the fluctuation in WIP. Chart Properties: Data
The only option available from this properties
window is to change the time units shown in the
X-Axis.
Selection Window
Chart Properties
Choosing the properties option for the counts
time plot will open a window with two tabs: Data
and Display
Chart Example
The example chart below compares the through-
put of a pallet entity for two scenarios.
Language Elements
Language elements are the smallest units of the
language used to define a model’s objects and
logic. Language elements include:
• Names
• Keywords
• Numbers
• Character Strings
• Operators
394 Chapter 11:
Names
Names
A name or identifier is any combination (up to
eighty characters long) of letters, numbers, and
underscores (“_”), used to identify model ele-
ments such as locations, entities, variables, and
functions. Although any valid name can refer to
any object, it is best to use names which describe
the object they identify (e.g., using “ClientA” to
describe an entity that represents a client).
Names, like all words in ProModel, are case
insensitive, meaning that ProModel sees
“PARKING_A,” “Parking_A,” and
“PaRkInG_a” as identical.
Names must use the following conventions:
• Names may contain the letters A through Z
(upper or lower case), digits (0-9) and the
underscore “_”. Names may not contain
spaces. When opening an older model,
ProModel flags improper use of these
restricted characters.
• Do not use a digit as the first character of a
name. After the first character, any charac-
ter may be a digit. For example, “2Var” is
an invalid name, but “V2”, is a valid name.
• Names may not be keywords, but names may
contain keywords. For example, “For” is
an invalid name, but “Forklift” is a valid
name. Similarly, “Queue2” and “Order-
Qty” are both valid.
• No matter what they identify, every name in
a model must be unique. For example, you
cannot name both a location and an entity
“Server.” You may, however, name one
“Server1” or “Server_Location” and the
other “Server2” or “Server_Resource.”
ProModel 395
User Guide
Converting from name-index numbers to the The statement, DISPLAY “The simulation \nis
name of an element requires the ENT(), LOC(), half over.” displays this dialog box:
and RES() functions as ProModel does not auto-
matically convert numbers to names. For infor-
mation on how to output the name of an element
based on its name-index number, see “String
Expressions” on page 402.
Please note
Operator Meaning
= Equal to
> Greater than
< Less than
>= Greater than or equal to
<= Less than or equal to
<> Not equal to
A=B
A>B
A<B
A >= B
A <= B
A <> B
Examples
2 hr
E(10) min
Var1+40.25 min
Colon notated time expressions evaluate from A string expression must begin with a concatena-
right to left as illustrated in the following exam- tion operator ($) or with a string constant in
ples: quotes (i.e., “...”). The concatenation operator
combines components together, and must be
Example Meaning between all components of a string expression.
:05 5 seconds For example, if Attr1 is 7.83, then the expression
5:00: or 5:: 5 hours “STRING1”$ ATTR1 $ “STRING2” evaluates
5:00 or 5: 5 minutes to “String17.83String2.”
2:40: 2 hours and 40 minutes To output the name of a location, entity, or
15:02:05 15 hours, 2 minutes and 5 seconds resource, use the appropriate function inside a
3:25 3 minutes and 25 seconds string expression: LOC() for locations, ENT() for
entities, and RES() for resources. For example,
Attr1::Var2 Attr1 hours and Var2 seconds
the following logic checks the first ten locations
in a model and displays the name of any location
that is completely full.
Var1 = 1
While Var1 <= 10 Do
Begin
If FreeCap(Loc(Var1)) = 0 Then
DISPLAY Loc(Var1) $ “is full.”
INC Var1
End
Nested expressions
A+B*(C+D)
((A>B) OR (B>C)) AND (C>D)
The expression (C+D) is a nested expression which is
evaluated first. Multiple nesting is permitted, with the
innermost nesting being evaluated first.
Example 1
15 - MATRIX[4]**2 + CLOCK(MIN) / 60
404 Chapter 11:
Operator Precedence
Example 2
Routing Rules
Routing rules determine the next location for the
processing entity. They are specified in the
“Rule” field of the Routing edit table. They may
be typed manually or selected from the Routing
Rule Dialog box shown below by clicking on the
Rule button. For more information about routing,
see “Routing Edit Table” on page 149.
406 Chapter 12:
Alternate
Alternate Example
Backup Example
Description
Locations specified by this rule are selected only
Process Table
if all of the destinations (primary or alternate)
listed in the preceding routings of the same block Entity Location Operation (min)
are unavailable due to any downtime, including a Chip CNC WAIT 3
shift. One use of BACKUP is to handle a
machine that is not functioning, and entities need Routing Table
another destination to continue.
Blk Output Destination Rule Move Logic
1 Chip Stamp1 FIRST 1
Valid In
Chip Stamp2 ALT
Inside the rule field of the Routing edit table, at Chip Stamp3 BACKU
the end of a routing block, after one or more pri- P
mary routings or even an ALTERNATE rule.
Conditions for using Backup routings with either See Also
USER CONDITION and PROBABILITY rout- ALTERNATE routing rule. Also see “Process-
ing rules are given in the notes for these rules. ing” on page 143.
408 Chapter 12:
Continue
Continue Valid In
The rule field of the Routing edit table only. A
CONTINUE rule must be the only routing in a
Syntax samples
routing block and must always take a quantity of
one.
CONT 1
Example
Process Table
Entity Location Operation (min)
Gear Loc1 WAIT 2
Gear Loc2 WAIT 3
IF CLOCK() > 1 THEN
BEGIN
var = 999
ROUTE 2
END
ELSE ROUTE 1
Gear Loc2
Routing Table
Blk Output Destination Rule Move Logic
1 Gear Loc2, 99 FIRST 1 MOVE FOR 1
1 Gear Loc3 FIRST 1 MOVE FOR 1
2 Gear Loc2, var CONT 1
1 Gear Loc3 FIRST 1 MOVE FOR 1
See Also
“Processing” on page 143.
410 Chapter 12:
Dependent
Dependent Example
Valid In
The rule field of the Routing edit table only. A
DEPENDENT routing may be specified after any
other routing rule (including other DEPENDENT
routings) except for a CONTINUE routing.
ProModel 411
User Guide
Empty Example
Components
<expression>
Total entities output from the process. This expression
is valid only for the first routing of a routing block. For
more information on this expression, see “Processing”
on page 143.
412 Chapter 12:
First Available
Valid In
The rule field of the Routing edit table only.
Components
<expression>
The total entities output from the process. This expres-
sion is valid only for the first routing of a routing
block. For more information on this expression, see the
“Processing” on page 143.
ProModel 413
User Guide
Join Example
Process Table
Description
Entity Location Operation (min)
Selects a location whenever a JOIN request is EntA Loc1 WAIT 5.2
issued at that location. Since a joining entity does
not require capacity, there is no need to check for Routing Table
available capacity at the destination. Multiple
JOIN requests are filled according to the oldest Blk Output Destination Rule Move Logic
waiting request with the highest priority. Entities 1 EntA Loc2 JOIN 1
routed with the JOIN routing rule are not actually EntA Loc3 JOIN
sent to their destination until a JOIN statement is EntA Loc4 JOIN
encountered at the destination location.
See Also
Valid In JOIN statement. Also see “Processing” on
The rule field of the Routing edit table only. page 143.
Components
<expression>
The total entities output from the process. This expres-
sion is valid only for the first routing of a routing
block. For more information on this expression, see
“Processing” on page 143.
414 Chapter 12:
Load
Load Example
Process Table
Description
Entity Location Operation (min)
Selects a location whenever a LOAD request is EntA Loc1 WAIT 3
issued at the destination location. Since a loading
entity does not fill capacity, there is no need to Routing Table
check for available capacity at the destination.
Multiple LOAD requests are filled according to Blk Output Destination Rule Move Logic
the oldest waiting request with the highest prior- 1 EntA Loc2 LOAD 1
ity. EntA Loc3 LOAD
EntA Loc4 LOAD
Valid In
See Also
The rule field of the Routing edit table only.
LOAD statement. Also see “Processing” on
page 143.
Components
<expression>
The total entities output from the process. This expres-
sion is valid only for the first routing of a routing
block. For more information on this expression, see
“Processing” on page 143.
ProModel 415
User Guide
Process Table
Description
Entity Location Operation (min)
Selects one of the locations listed in a block of
EntA Loc1 WAIT 2.5
routings based on which has been unoccupied the
longest. If several multi-capacity locations all
Routing Table
have one or more current entities, the location
with the most available capacity will be selected. Blk Output Destination Rule Move Logic
If no capacity is available at any location, the first 1 Plane Gate1 LU 1 MOVE FOR 2
one that becomes available is selected. This rule Plane Gate2 LU MOVE FOR 2
is useful in situations where residual effects must Plane Gate3 LU MOVE FOR 2
diminish before further usage of a location (e.g., Plane Gate4 LU MOVE FOR 2
an oven cooling to an ambient temperature, the
vapor clearing out of a paint booth, etc.). Routing Table
Please note that this routing rule is not valid for Blk Output Destination Rule Move Logic
single-capacity locations 1 EntA Loc2 LU 1
EntA Loc3 LU
Valid In EntA Loc4 LU
The rule field of the Routing edit table only.
See Also
<expression>
The total entities output from the process. This expres-
sion is valid only for the first routing of a routing
block. For more information on this expression, see
“Processing” on page 143.
416 Chapter 12:
Most Available
<expression>
The total entities output from the process. This expres-
sion is valid only for the first routing of a routing
block. For more information on this expression, see
“Processing” on page 143.
ProModel 417
User Guide
Probability Example
Random Example
RANDOM {<expression>}
Process Table
<expression>
The total entities output from the process. This expres-
sion is valid only for the first routing of a routing
block. For more information on this expression, see
“Processing” on page 143.
ProModel 419
User Guide
Send Example
Turn Example
<expression>
The total entities output from the process. This expres-
sion is valid only for the first routing of a routing
block. For more information on this expression, see
“Processing” on page 143.
ProModel 421
User Guide
Description
This rule continues to direct all output to the first
Process Table
location specified until it fills to capacity and
then to the next location until it fills and so on. If Entity Location Operation (min)
all locations are full, the first one that becomes Pallet Barcode USE Scanner FOR U(2.3,4)
available is selected.
Routing Table
Valid In
Blk Output Destination Rule Move Logic
The rule field of the Routing edit table only. 1 Pallet Aisle1 FULL 1 MOVE FOR
5
Components Pallet Aisle2 FULL MOVE FOR
6
Pallet Aisle2 FULL MOVE FOR
<expression> 7
The total entities output from the process. This expres-
sion is valid only for the first routing of a routing See Also
block. For more information on this expression, see
“Processing” on page 143.
“Processing” on page 143.
422 Chapter 12:
User Condition
<Boolean expression>
Syntax samples
Any expression which evaluates to TRUE or FALSE.
<Boolean expression> {<expression>} <expression>
The total entities output from the process. This expres-
sion is valid only for the first routing of a routing
block. For more information on this expression, see
Description “Processing” on page 143.
Selects one of several locations listed in a routing
block based upon a user-defined condition. Sev-
eral User-Condition routings usually are used in Example
the same routing block. At least one of the user-
defined conditions in a block must be true or an Customers bring their cars to a local service station for
error message will appear and the simulation will emissions testing and state inspection. After each car
terminate. Capacity must be available at the loca- completes a 10-minute inspection operation at location
tion before the routing actually takes place. Inspect, they are put in the proper service bay depend-
Unlike most primary routing rules, an ALTER- ing on the car’s engine type. Late-model (post-1975)
NATE or BACKUP routing may be specified cars are tested in Bays 1 and 2, pre-1975 cars are tested
after each USER CONDITION routing in the in Bay3, and diesel engine cars are tested in Bay4. If
Bay1 is selected but not available, an alternate location
same routing block.
(Bay2) is selected. If both Bay1 and Bay2 are down, a
backup location (Bay3) is selected. Bay3 also has an
alternate location (Bay4) in case it is unavailable, but
has no backup location. Bay4 has neither an alternate
location nor a backup location.
Valid In
The rule field of the Routing edit table only.
ProModel 423
User Guide
Process Table
Entity Location Operation (min)
CAR Inspect WAIT 10
Routing Table
Destinatio
Blk Output n Rule Move Logic
1 CAR Bay1 IF Type=1 1
CAR Bay2 ALT
CAR Bay3 BACKUP
CAR Bay3 IF Type=2
CAR Bay4 ALT
CAR Bay4 IF Type=3
See Also
“Processing” on page 143.
424 Chapter 12:
User Condition
ProModel 425
User Guide
When converting from a real to an integer, Pro- There are two subsets of operation statements:
Model ignores everything to the right of the deci- entity-related and resource-related. Entity-
mal point. When converting from an integer to a related operation statements perform specific
real, ProModel simply adds a decimal point to the actions on entities only. Resource-related opera-
integer. ProModel handles name-index numbers tion statements involve resources alone (for
exactly like integers. Most often, these automatic example, GET and FREE) or resources and enti-
conversion will be sufficient, but occasionally it ties together (for example, USE).
will be necessary to convert between the types
differently. For these situations, use the conver- Statement Blocks
sion functions.
A statement block is a group of statements that
begin with the keyword BEGIN, or the symbol
Statements “{”, and end with the keyword END, or the sym-
bol “}”. Two examples appear below. See BEGIN
Statements cause ProModel to take some action and END for more extensive examples of state-
or perform some operation. Unlike functions,
ment blocks.
statements neither return a value nor use paren-
theses, and logic may contain comments. (See
“Comments” on page 451.) Statements can use Statement blocks
spacing (including a new line) before each word
in a statement, and are case insensitive so any let- BEGIN {
ter may be either upper or lower case. Statement 1 Statement 1
Statement 2 Statement 2
General Action and Control
Statement 3 Statement 3
Statements
... ...
General statements can be divided into two main
Statement n Statement n
categories: action and control statements. They
are called general because they can be used in END }
any logic. Action statements cause some action to
occur in the model, such as changing an entity’s
graphic or writing to a file. Control Statements
determine the next statement to be executed, such
as loops, branches, and statement blocks.
Distribution Functions
Distribution functions are built-in functions
which, in conjunction with streams, return ran-
dom values according to a statistical distribution.
The following table is a summary of available
distribution functions. They are valid in any
numeric expression.
General Components time shift the entire distribution. Any time an axis
shift is specified, a stream must be specified also.
<s> The optional stream to use in conjunction
with the distribution’s probabilities. If this option Any negative value returned by a distribution that
is omitted, ProModel will use stream one. For is used for a time expression will be automati-
more information on streams, see “Streams” on cally converted to zero.
page 258.
<ax> An optional axis shift. The distributions, E,
G, W, L, IG, P5, and P6 all normally have a mini-
mum value of zero. Use an axis shift to alter the
distribution’s minimum value and at the same
428 Chapter 13:
Priorities
Priorities
Many statements in this manual use <priority> as
a component. A priority determines the order in
which competing commands are fulfilled. For
example, priority determines which of two com-
peting requests to USE a resource gets fulfilled,
or which of two competing requests to SEND the
same entities to different locations gets fulfilled.
Commands or entities with high enough priority
can even bring back up locations that are down,
or force a location to stop processing one entity
and process another instead. This is called “pre-
emption.” All priorities must be an expression
that evaluates to a number between 0 and 999.
For a complete explanation of priorities and pre-
emption, see “Location Priorities and Preemp-
tion” on page 105, “Resource Shift Downtime
Priorities” on page 134, “Preemptive Entities” on
page 115, and “Preemption Process Logic” on
page 292.
ProModel 429
User Guide
<expression>
The number of entities to accumulate. If this expres-
Description
sion results in zero or one, it is ignored. If it results in a
Accumulates, without consolidating, the speci- number greater than the location’s capacity or a nega-
fied quantity of entities at a location. ACCUM tive number, the simulation will stop with an error.
works like a gate that prevents entities from pro- This expression is evaluated every time an entity to be
cessing until a certain number arrive. Once the accumulated arrives, so the quantity to be accumulated
specified number of entities have accumulated, can vary as the entities to be accumulated arrive. If an
they will go through the gate and begin process- entity arrives that changes this expression to a number
ing individually, independent of each other. lower than the number of entities already accumulated,
all of the accumulated entities begin to process.
ACCUM can be used to model situations where
several entities should be accumulated before
they get processed. For example, when a resource
processes orders at a work station, it may be more
Example
efficient to accumulate several orders before
requesting the resource. Entities named “Pallet” arrive at a location named
“Loading” and accumulate in batches of 20. Entities
If you specify an ACCUM operation in a process named “Box” also arrive at Loading and accumulate in
for an individual entity, accumulation will occur batches of 10. Only after the right number of boxes or
by individual entity type. However, if you specify pallets accumulates does ProModel request the forklift.
ALL as the processing entity, all entity types at The accumulation of Boxes and Pallets at Loading is
entirely independent because the accumulation state-
430 Chapter 14:
Accum
Process Table
Entity Location Operation (min)
Pallet Loading ACCUM 20
USE ForkliftFOR 2
Box Loading ACCUM 10
USE Forklift FOR 2
ALL Storage ACCUM 30
Routing Table
Blk Output Destination Rule Move Logic
1 Pallet Storage FIRST 1 MOVE FOR 5
1 Box Storage FIRST 1 MOVE FOR 5
1 ALL Loc3 FIRST 1 MOVE FOR 5
See Also
COMBINE, JOIN, and GROUP.
ProModel 431
User Guide
Activate Components
Description
Example
Starts an independent subroutine. The calling
logic then continues without waiting for the This example uses ACTIVATE in a model’s initializa-
called subroutine to finish. Therefore, indepen- tion logic to start a subroutine named Res_Log().
dent subroutines can run in parallel with the logic Res_Log() is a user-defined subroutine that logs every
that called them. Independent subroutines are not time that all units of a resource named Worker are in
entity or location dependent and run without use. After it logs the time that all units were busy, it
regard to what happens inside the logic that waits ten minutes to check again. Note that the
called them. WHILE...DO loop in the subroutine is never exited.
This technique allows the subroutine to run during the
Use ACTIVATE to process logic that has WAIT entire simulation.
or WAIT...UNTIL statements when you do not Initialization Logic:
want to use an entity to process the WAIT or Activate Res_Log()
WAIT...UNTIL statements. For example, an
Res_Log()
ACTIVATE in the initialization logic could call a
INT X = 1
subroutine that adjusts the arrival frequency for a
WHILE X = 1 DO
type of entity depending on the time of day. BEGIN
Independent subroutines called with ACTIVATE IF FREEUNITS(Worker)=0
cannot use entity-specific or location-specific THEN LOG "All workers busy at ",0
WAIT 10
system functions. If the subroutine has a return
END
value, then that value is ignored. External subrou-
tines cannot be called with ACTIVATE, although
they may be called from within an activated sub- See Also
routine. XSUB(). Also see “Subroutines” on page 238.
Valid In
Any logic.
432 Chapter 14:
Animate
Syntax samples
ANIMATE <expression>
ANIMATE 70
ANIMATE Var1
Description
Sets the simulation’s animation speed. The higher
the value, the faster the animation. ANIMATE is
used primarily to speed up or slow down a model
for cursory or detailed observation whenever a
See Also
particular condition is encountered. Another
common use is to set the animation speed to one- GRAPHIC and SOUND.
hundred in the Initialization Logic to rapidly
advance the simulation to some point in time.
Valid In
Any logic.
Components
<expression>
The new speed of the animation. This expression can
be any number from 0 to 100 and is evaluated every
time the ANIMATE statement is encountered. The
default speed is 56.
Example
ArrayDims()
General System Function
Syntax samples
ARRAYDIMS(<arrayname>)
ARRAYDIMS(MyArray)
Description
Returns the number of dimensions in an array.
Valid In
Any Logic
Components
<arrayname>
The name of the array for which you wish to know the
number of dimensions.
See Also
ArrayDimSize().
434 Chapter 14:
ArrayDimSize()
ArrayDimSize()
General System Function
Syntax samples
ARRAYDIMSIZE(<arrayname>, <dim_num>)
ARRAYDIMSIZE(MyArray, 2)
Description
Returns the size of a dimension in an array. You
must provide the name of the array and the partic-
ular dimension of the array for which you want to
know the size.
Valid In
Any Logic
Components
<arrayname>
The name of the array.
<dim_num>
The number of the dimension for which you wish to
know the size.
See Also
ArrayDims().
ProModel 435
User Guide
Assignment Statement
Syntax samples
Description
Assigns the value of a numeric expression to a
designated variable, array element, or attribute.
Valid In
Any Logic
Example
Var1 = 300
Attr2 = Clock(hr) - Attr3
Please Note
Description
Defines a statement block with a corresponding
END statement. BEGIN and END are almost
always used in conjunction with other control
statements such as IF...THEN and DO...WHILE.
Every BEGIN statement must pair with an END
statement.
Valid In
Any logic.
Example
Valid In BREAKBLK.
Any logic.
Example
Example
CalDay() Example
General System Function Suppose that shipment arrival types vary from day to
day. Since Monday’s Shipment_Type_A arrival pat-
terns are unique, you will need to use a distribution
Syntax samples specific to those patterns.
IF CALDAY()=1 THEN
CALDAY()
BEGIN
Shipment_Type_A =
Monday_Distribution_A
Description USE Forklift FOR Unload_Time
END
The CALDAY() function corresponds to the
weekday of the calendar date you defined as part
of the warm-up period or simulation begin date
under simulation options. Since CALDAY() See Also
resets with the advent of a new week, every CALDOM(), CALHOUR(), CALMIN(), CAL-
weekday will return the same value (i.e., Wednes- MONTH(), and CALYEAR().
day will always return a value of 3).
Valid In
Any logic.
Please note
CalDOM()
General System Function
Syntax samples
CALDOM()
Description
The CALDOM() function corresponds to the cal-
endar day of the month you defined as part of the
warm-up period or simulation begin date under
simulation options. Values returned by this func-
tion will be integers in the range of 1 to 31.
Valid In
Any logic.
Please note
See Also
CALDAY(), CALHOUR(), CALMIN(), CAL-
MONTH(), and CALYEAR().
ProModel 441
User Guide
Syntax samples
CALHOUR()
Description
The CALHOUR() function corresponds to the
hour of the calendar date you defined as part of
the warm-up period or simulation begin date
under simulation options. Since this function ties
directly to the 24-hour clock displayed on the
screen during simulation, CALHOUR() will
never return a value higher than 23.
Valid In
Any logic.
Please note
Example
Syntax samples
CALMIN()
Description
The CALMIN() function corresponds to the
minute of the calendar date you defined as part of
the warm-up period or simulation begin date
under simulation options. Since this function ties
directly to the 24-hour clock displayed during
simulation, CALMIN() will never return a value
higher than 59.
Valid In
Any logic.
Please note
Example
CalMonth()
General System Function
Syntax samples
CALMONTH()
Description
The CALMONTH() function corresponds to the
month of the year you defined as part of the
warm-up period or simulation begin date under
simulation options. Values returned by this func-
tion will be integers in the range of 1 to 12.
Valid In
Any logic.
Please note
Example
See Also
CALDAY(), CALDOM(), CALHOUR(),
CALMIN(), and CALYEAR().
444 Chapter 14:
CalYear()
CalYear()
General System Function
Syntax samples
CALYEAR()
Description
The CALYEAR() function corresponds to the
year of the calendar date you defined as part of
the warm-up period or simulation begin date
under simulation options.
Valid In
Any logic.
Please note
See Also
CALDAY(), CALDOM(), CALHOUR(),
CALMIN(), and CALMONTH().
ProModel 445
User Guide
Cap() Example
General System Function The individual ovens of a ceramics plant have different
capacities, but otherwise they are exactly the same.
While each oven could be modeled as an individual
Syntax samples location, it would be easier to model this situation as a
multi-unit location. This example uses CAP() in the
CAP (<location>) processing logic of the parent location to accumulate
enough Sinks to fill each oven. The LOCATION()
GROUP CAP(Loc1) function returns the value of the current location.
<location>
The name of the location to examine. If this component
is the name of a multi-unit location, CAP() will return
the capacity of the entire location. For example, if each
unit of a five-unit location has a capacity of five,
CAP() will return twenty-five. This component can
also be the name of an individual unit in a multi-unit
location.
446 Chapter 14:
Char()
Char() Example
String Function The logic below displays the combined cost of all the
Parts ordered through a particular service center. The
simulation has kept a tally of all the parts it has ordered
Syntax samples in the variable Parts, and each part cost 25 English
pounds. The logic displays the cost of the parts with
CHAR(<expression>) the pound symbol (£), which is ASCII code 156.
CHAR(10) DISPLAY “Total cost of parts:” $ CHAR(156) $ Parts
* 25
Description
Returns the ASCII character for the number that
the expression evaluates to. This function is most
useful for outputting ASCII characters that can-
not be typed, such as accented characters. This
function is most often used in conjunction with a
string expression and the concatenation (“$”)
operator.
The number corresponding to the ASCII charac-
ter varies with each computer depending on the See Also
character set specified in the config.sys file of “String Expressions” on page 402.
your computer. To determine the number corre-
sponding to the ASCII character at your com-
puter, run the model CHAR.MOD found in the
MODELS\REFS directory. View the file this
model generates called CHAR.TXT found in the
same directory as the model.
Valid In
Any string expression.
Components
<expression>
Any expression that evaluates to a number between 0
and 255. The expression is evaluated every time the
CHAR() function is encountered.
ProModel 447
User Guide
Clock() Components
Attr1 = CLOCK()
See Also
“General Information” on page 171 and “Time
Description Expressions” on page 401.
Returns value of the elapsed simulation time in
the units specified. Clock units should be kept
consistent when comparing values. If an attribute
has been assigned a time in minutes, any time
value compared with that attribute should also be
in minutes.
When no units are specified in the parentheses in
the clock function, ProModel returns the default
time unit specified in the General Information.
Valid In
Any logic and most fields, except those fields
evaluated at translation. For a list of fields evalu-
ated at translation, see the “Appendix A” on
page 577.
448 Chapter 14:
Close
Close
General Operation Statement
Syntax samples
Description
Closes a file that has previously been written to
with WRITE, WRITELINE, XWRITE, or read
with READ. Use CLOSE when finished with a
file to free system resources. A file will automati-
cally be re-opened to be read or written if it has
been closed. All opened files are automatically
closed at the end of a simulation. When you are
using many external files and you want to con-
serve system resources, this statement is espe-
cially helpful.
Valid In
Any logic.
Components
<file ID>
The file ID of the desired file as defined in the External
Files editor.
See Also
READ, WRITE, WRITELINE, XWRITE, and
RESET.
ProModel 449
User Guide
Combine Valid In
Operation logic only. COMBINE may not be
Entity-Related Operation Statement used in combination with CREATE, GROUP,
UNGROUP, LOAD, UNLOAD, SPLIT AS, or
other combine statements in the same process
Syntax samples
logic.
COMBINE <expression> {AS <new entity name>}
Components
COMBINE Var1
COMBINE 3 AS EntQ <expression>
COMBINE Var1 as ENT(Attr1) The number of entities to combine. Negative values
generate an error message. If this expression evaluates
to zero, it is ignored. If it evaluates to one, then no enti-
ties are actually combined, but the entity that encoun-
Description tered the combine statement is renamed (if the AS
option has been specified).
Accumulates and consolidates a specified quan-
tity of entities into an entity, optionally with a dif- This expression is evaluated every time an entity
ferent name. Unlike the GROUP statement, encounters the COMBINE statement, so the amount of
combined entities lose their identities and entities to be combined can vary as the simulation
attributes and cannot be ungrouped later. Use progresses. If an entity arrives that changes this expres-
sion to a number lower than the number of entities
COMBINE when several entities need to be com-
already waiting to be combined, all of the entities wait-
bined, such as when eight spark plugs are com-
ing to be combined are combined, including the entity
bined in a box. Note that after several entities that just arrived.
have been combined at a location, no additional
statistics will be collected for any of the com- AS <new entity name>
bined entities at that location. The optional name of the resulting entity. If left off, the
new entity will have the same name as the last com-
When specifying COMBINE <expression> AS bined entity or the output entity name.
<new entity name> in the operation logic, there
must be another operating block at the same loca-
tion. In this case, the incoming entity at the new Explicit Entity Actions
operating block is the new entity name specified
in the COMBINE statement. COMBINE passes cost on to new entities but not
statistical information. ProModel counts com-
bined entities as exits.
450 Chapter 14:
Combine
Example
Process Table
Entity Location Operation (min)
mboard Assembly COMBINE 20
Routing Table
Blk Output Destination Rule Move Logic
1 Tote Shipping FIRST 1 MOVE FOR 5
See Also
GROUP, ENT(), ACCUM, and LOAD. Also see
the “Attributes” on page 217.
ProModel 451
User Guide
Comments Valid In
Any logic.
Documentation Symbols
Example
Syntax samples
The logic below has several notes to explain it. Addi-
# tionally, ProModel ignores the ELSE statement and the
ELSE statement’s block.
//
IF Parts_Available > Attr2 THEN
/*...*/
//Parts needed is stored in attribute 2
BEGIN
JOIN Attr2#Join the number of parts
Components # needed only if there are
# enough parts available.
#
WAIT Attr1
The pound sign signals the start of a one-line comment.
END
ProModel will ignore any characters on the rest of the
line. /* ELSE
// BEGIN//Start operation
Two forward slashes signal the start of a one-line com- INC Var1
ment. ProModel will ignore any characters on the rest
WAIT Attr3
of the line. This symbol works exactly the same as the
# sign. END */
/*...*/
A slash followed by an asterisk signals the start of a
multi-line comment. ProModel will ignore all charac-
ters after the “/*” until it finds an asterisk followed by a
slash, “*/”. Use this type of comment for long explana-
tions and to prevent ProModel from executing long
portions of logic during debugging. Comments using //
or # may be nested inside multi-line comments.
Description
Comments are notes to the modeler inside blocks
of logic. ProModel ignores them, but they can be
particularly useful to explain logic when more
than one person will be using a model.
452 Chapter 14:
Contents()
Contents() Example
General System Function An assembly line has a location called Clean that often
gets too busy for one operator to handle and the super-
visor then comes to help. The processing logic below
Syntax samples models this situation with an IF...THEN statement and
the CONTENTS() function. As long as the location
CONTENTS(<location>{,<entity type>}) contains fewer than five entities, a worker processes
any arriving entities. However, if the location’s con-
LOAD CONTENTS(Loc1) tents are greater than five, the Supervisor processes
JOIN CONTENTS(Loc1, EntA) EntA them.
Components
<location>
The name of the location to examine.
<entity type>
The optional name of the type of entity to look for. If
omitted, CONTENTS() will return the total of all enti-
ties at the location.
ProModel 453
User Guide
Create Components
The operation column of process edit tables only. Implicit Entity Actions
CREATE may not be used in combination with
LOAD, UNLOAD, GROUP, UNGROUP, SPLIT ProModel allows you to use the CREATE state-
AS, or other CREATE statements in the same ment implicitly as part of the routing definition.
processing logic. To do this, define a route block and check the
New Entity option. ProModel does NOT add an
initial cost to implicitly created entities.
454 Chapter 14:
Create
Example
Process Table
Entity Location Operation (min)
Record Station1 WAIT N(8,.3)
CREATE 2 AS
Copy
Copy Station1 WAIT U(3,.3)
Routing Table
Blk Output Destination Rule Move Logic
1 Record Station2 FIRST 1MOVE FOR 5
1 Copy File_Cab FIRST 1MOVE FOR 5
See Also
ORDER, SPLIT AS, ENT(), and RES().
ProModel 455
User Guide
Valid In
Any logic.
Example
Dec Example
General Operation Statement The example below shows two variables decremented
in exit logic. The variable Num_in_system is decre-
mented by one, while variable Var3 is decremented by
Syntax samples 20.
Description
Decrements a variable, array element, or attribute
by the value of a specified numeric expression.
To decrement a variable, attribute, or array ele-
ment when the current entity actually leaves a
location, use DEC in the move logic.
<name>
Any variable, array element, or attribute.
<expression>
The amount to decrement the value. If this expression
is omitted, the value will be decremented by one. This
can be a negative number.
ProModel 457
User Guide
Display Example
General Action Statement This simple example displays the value of both Var1
and of Attr1 if Attr2 is 1. This logic will display the
dialog box below if Attr2 is 1. If Attr2 is not 1, an error
Syntax samples message will appear.
Operation (min)
DISPLAY <string expression>
IF Attr2=1 THEN
DISPLAY “Var1 =” $ Var1 $ “and Attr1 =” $ Attr1
DISPLAY “Var1 =” $ Var1 $ “\nand Attr1 =” $ Attr1
DISPLAY “Now beginning 100th process”
ELSE
DISPLAY Number_in_Queue
DISPLAY “Error”
Description
Pauses the simulation and displays a message.
The simulation will resume when the user selects
OK. The concatenation operator ($) should be
used to combine a numeric value into the string
(as in the first syntax example above). Using the
ENT(), LOC(), and RES() functions will display
the name of the entity, location, or resource.
<string expression>
See Also
The message to be displayed. To display a numeric
value, use the concatenation operator ($) as in the first PROMPT, PAUSE, CHAR(), and FORMAT().
syntax example.
458 Chapter 14:
Do...Until
Syntax samples
Example
DO <statement block> UNTIL <Boolean expression>
A machining station can manufacture parts of increas-
DO INC Var1 UNTIL Array1[Var1] <> 10 ing complexity from the same entity, called a Blank.
When a Blank arrives at the station, the value stored in
Attr1 determines the complexity of the part and the
DO amount of time needed to create the new part. The fol-
lowing logic models this situation with a DO...UNTIL
BEGIN loop. All blanks that arrive go through a five minute
INC Var2, 5 processing time, and then go through the operation
several more times depending on the value of Attr1.
WAIT 5 sec
END
UNTIL FreeCap(Loc1) > 5
Process Table
Entity Location Operation (min)
Blank Machining INT Count = 0
Description DO
BEGIN
Repeats a statement or statement block continu-
WAIT 5 min
ously while a condition remains false. INC Count
DO...UNTIL is an exit-condition loop, meaning END
that the loop will always be executed at least UNTIL Count = Attr1
once. Use DO...UNTIL when an operation will
always be executed at least one time and possibly Routing Table
more times.
Blk Output Destination Rule Move Logic
1 Base Painting FIRST 1
Valid In
Any logic. See Also
BEGIN, END, DO...WHILE, and WHILE...DO.
Components
<statement block>
The statement or block of statements to execute.
ProModel 459
User Guide
Do...While Components
Please note
Valid In
Any logic.
460 Chapter 14:
Down
Valid In
Any logic, except Initialization and Termination
logic.
Components
<dtname>
The name of the called downtime. This name is
defined in the Called Downtime dialog, found in the
Locations table.
<priority>
You may optionally define a priority. This will override
the priority you defined in the Called Downtime dialog
for the specified called downtime.
ProModel 461
User Guide
DownQty() Example
General System Function Two resources, Welders, weld brackets onto steel
frames at a location, Man_Weld, in 6.5 minutes. An
automatic welding machine, Auto_Weld, can perform
Syntax samples the same task, but it takes 9.3 minutes. However, if
only one Welder is available and the other Welder is
DOWNQTY(<location> or <resource>>) down (e.g., on break), it takes one Welder 13.0 minutes
to weld the brackets to the frames. Therefore, if one
IF DOWNQTY(Loc1) > 3 THEN ROUTE 2 Welder is down, the frames should route to the auto-
DISPLAY “Total Res1 Down Now:” $ DOWN- matic welding machine, Auto_Weld.
QTY(Res1)
Process Table
Description
Entity Location Operation (min)
Returns the number of location or resource units Frame Buffer IF DOWNQTY(Welder)>0
down at the time of the call. Use this function to THEN
make decisions based on how many resource or ROUTE 1
location units are down. For example, if too many ELSE
ROUTE 2
units are down, a foreman could preempt several
Frame Auto_Weld ...
units back into service. Frame Man_Weld ...
Valid In
Routing Table
Any logic and all fields except those fields evalu-
Blk Output Destination Rule Move Logic
ated at translation only. For a list of the fields
1 Frame Auto_Weld FIRST 1 MOVE FOR 1
evaluated only at translation, see the “Appendix
2 Frame Man_Weld FIRST 1 MOVE FOR 1
A” on page 577.
... ... ... ... ...
... ... ... ... ...
Components
See Also
<location>
FREECAP, FREEUNITS(), and UNITS().
The name of the location to examine. LOC() can be
substituted for the name of a location.
<resource>
The name of the resource to examine. RES() can be
substituted for the name of a resource.
462 Chapter 14:
DTDelay()
DTDelay() Example
Valid In
Any downtime logic including off-shift and break
logic. This function returns a real number.
Components
<time unit>
The function will return the downtime delay in any of
the following units: SEC, MIN, HR, DAY, and WK.
ProModel 463
User Guide
DTLeft() Example
Shift & Break System Function Suppose a technician is frequently working on a job
when the end of the shift rolls around and that the pri-
ority for ending the shift is not high enough to interrupt
Syntax samples the job. To ensure that the technician gets a minimum
of 14 hours off before coming back to work, even
DTLEFT <time units> though the shift file specified 16 hours between shifts,
you could enter the following off-shift logic:
Shift_Time = DTLeft()
IF DTLEFT(hr) < 14 THEN
BEGIN
Description WAIT 14 hr
SKIP
The DTLEFT function returns the balance of the
off-shift or break time remaining for a location or END
resource before it resumes normal activities.
Unless passed as an argument (e.g., DTLeft(hr)),
the return value uses the time units defined in the
General Information Dialog (see “General Infor- Please note
mation” on page 171).
In the above example, the SKIP statement is
Valid In important to skip over the defined time in the shift
file.
This function can only be referenced in off-shift
and break logic (either the pre-start or main
logic).
See Also
Components
DTDELAY()
<time units>
The time units, if different from the default found in
the General Information dialog, in which you want the
return value expressed.
464 Chapter 14:
DynPlot()
DynPlot() Example
Components
<Chart name>
The name of the Dynamic Plot chart as defined in the
Dynamic Plots dialog. Enclose the name in quotation
marks.
ProModel 465
User Guide
End Example
BEGIN {
END }
Just as in the logic above, if Attr1 in the following
example equals one, ten Cases are ordered. However,
Var1 increments no matter what the value of Attr1.
Description Without a statement block, the IF...THEN applies only
Defines a statement block along with a corre- to the very next statement, no matter how you format
the logic.
sponding BEGIN statement. BEGIN and END
are almost always used in conjunction with other IF Attr1 = 1 THEN
control statements such as IF...THEN and ORDER 10 Case
DO...WHILE. Every END must pair with a
INC Var1
BEGIN.
Valid In
Any logic. See Also
BEGIN, IF...THEN, DO...WHILE, WHILE...DO,
DO...UNTIL, and END.
466 Chapter 14:
Ent()
Ent() Example
Type Conversion Function The logic below orders three batches of five different
entity types to a location, Receiving.
Description
See Also
Converts a name-index number or integer to an
entity name. Use this function when a statement LOC(), RES(), ENTITY(), and LOCATION().
or function needs the name of an entity whose
name index number is stored in an attribute, vari-
able, or some other expression. ENT() can also be
used to vary the entity that a statement references
by using an expression for the name-index num-
ber. When used in an expression expecting a
string, such as in the second syntax example
above, ProModel will convert the name-index
number to the actual name of the entity.
Valid In
Any logic where an entity name is normally used.
Components
Entity() Components
All cars from the motor pool must be washed after use.
Description All cars except vans require ten minutes to wash, and
vans require an additional ten minutes. The logic
Returns the name-index number of the current
below models this situation.
entity or a particular entity in an entity group.
This function is especially useful in macros and
subroutines that vary depending on which entity
calls them. Use ENTITY() to determine what Process Table
type of entity is processing when an entity type of
ALL is specified at a location. For example, if a Entity Location Operation (min)
common area handles several different parts with ALL Wash1 WAIT 10 min
essentially the same process, use an IF...THEN IF ENTITY() = Van THEN
WAIT 10 min
statement in conjunction with an ENTITY() to
have individual statement blocks handle the
Routing Table
details of the operation. This function returns an
integer. Blk Output Destination Rule Move Logic
1 ALL Parking FIRST 1 MOVE FOR 30
Valid In
Speed fields, traveling time fields, conveyor See Also
speed fields, Resource fields, operation logic, ENT() and LOCATION().
routing fields, arrival logic, debug user-condition
field.
468 Chapter 14:
Entries()
See Also
IF...THEN...ELSE.
Description
Returns the total entries to a location. This func-
tion returns an integer.
Valid In
Any logic and any field except those evaluated
only at translation. For a list of fields evaluated at
translation see the “Appendix A” on page 577.
Components
<location>
The location to examine.
Example
Exp()
Math Function
Syntax samples
EXP(<expression>)
Real1 = EXP(Real2)
Description
Returns the exponential of an expression. This
function is equivalent to ex.
Valid In
Any expression. This function returns a real num-
ber.
Components
<expression>
EXP() returns the exponential of this expression.
See Also
LN().
470 Chapter 14:
ForLocation()
Syntax samples
FORLOCATION()
IF FORLOCATION() THEN
INC Arr1 [1, 2]
ELSE
INC Arr1 [2, 2]
Description
This function returns TRUE if the object execut-
ing the shift or break logic is a location.
Valid In
Shift or break logic.
Example
Format() digits to the right of the decimal than this number, the
excess digits will be truncated. If there are fewer digits,
ProModel will pad the number with zeros.
String Function
FORMAT(<expression>, <total number of characters The logic below writes formatted output to a file with
in expression> {,<digits after decimal>}) XWRITE and FORMAT.
DISPLAY “The value of Var1 is” $ FORMAT(Var1, 5) XWRITE File1, “The variable Var1 is” $ FOR-
MAT(Var1,5,2)
In this example, if the value of Var1 is 378.87654, it
would be written to the file as:
Description
The variable Var1 is 378.87
Converts a number to a string in the format speci-
fied. FORMAT() should most often be used with (Two spaces)
the concatenation operator (“$”) and another
string, as in the syntax example above. Format is
often used in conjunction with the XWRITE
statement to produce formatted output. See Also
WRITE and WRITELINE.
Valid In
Any string expression.
Components
<expression>
This expression will be evaluated and converted to a
string. If the expression results in an integer, it will be
converted to a real.
<total number of characters in expression>
This expression formats the number so that it occupies
a total space equal to the number of digits before +
number of digits after the decimal + one character for
the decimal point. For example if you were to do the
following logic: XWRITE file1 Format (10.0 4 1)
XWRITE file1 Format (1.0 4 1), it will show up in
the file as 10.0 1.0 with a space before the 1.0.
<digits after decimal>
An expression that evaluates to the maximum number
of digits to the right of the decimal. If there are more
472 Chapter 14:
ForResource()
ForResource()
Shift & Break System Function
Syntax samples
FORRESOURCE()
IF FORRESOURCE() THEN GET Res1
Description
This function returns TRUE if the object execut-
ing the shift or break logic is a resource.
Valid In
All Shift or Break logic.
Example
See Also
FORLOCATION(). Also see “Shift & Break
Logic” on page 297.
ProModel 473
User Guide
Free Example
Resource-Related Operation Statement In the following example, EntA arrives at Loc1 for a
multi-step process requiring the use of resources Res1
and Res2. The first step requires the simultaneous use
Syntax samples of Res1 and Res2 for a normally distributed amount of
time. ProModel then frees Res1while Res2 performs
FREE {<quantity>} <resource>, {{quantity} the second step of the process according to a Lognor-
<resource>...} mal distribution.
<quantity>
The number of the following resource to free. A value
of zero is ignored and values less than zero result in an
error. This quantity may be any numeric expression
and is evaluated and truncated to an integer every time
the FREE statement is encountered.
<resource>
The name of the resource to free. The ALL keyword
may be used here to free all resources owned by an
entity. Any resource which is not owned by the entity
will be ignored.
474 Chapter 14:
FreeCap()
FreeCap() Example
General System Function Suppose the entities, Plates and Cams, travel through
an assembly line. The location, Assembly (capacity=1)
joins Cams with the Plates. When a Cam finishes pro-
Syntax samples cessing at Station2, it should not enter Station3 unless a
Plate is waiting to join with it further down the assem-
FREECAP(<location>) bly line at Assembly. If there is no Plate at Assembly,
another location, Buffer, sends one. The logic for Cam
SEND FREECAP(Loc1) EntA TO Loc1 at Station2 is as follows:
IF FREECAP(Assembly) = 1 THEN
SEND 1 Plate TO Assembly
Description
Returns the available capacity of a location. This
function returns an integer.
See Also
Valid In CAP().
Any logic and any field except those fields evalu-
ated only at translation time. For a list of fields
evaluated only at translation time, see the
“Appendix A” on page 577.
Components
<location>
The name of the location to examine. The LOC() func-
tion may also be used here.
ProModel 475
User Guide
Components
<location>
The name of the location to examine.
<resource>
The name of the resource to examine.
Example
Process Table
Entity Location Operation (min)
Assy Weld USE Operator FOR 4 min
GET Operator
USE Tester FOR U(2,.5)
WAIT 4 min
Assy Buffer WAIT T(7,10,11)
FREE Operator
Routing Table
Blk Output Destination Rule Move Logic
1 Assy Buffer FIRST 1 MOVE FOR
1.5
1 Assy Checker FIRST 1 MOVE FOR 5
See Also
JOINTLY GET and USE.
478 Chapter 14:
GetCost()
See Also
Description
INCENTCOST, INCLOCCOST, and SETRATE.
Returns the cost of the current entity executing
the logic. Use this function to return the entity’s
actual, accumulated dollar amount.
Valid In
Operation logic only.
Example
GetReplicationNum()
General System Function
Syntax samples
GETREPLICATIONNUM()
Description
Returns the number of the currently running rep-
lication.
Valid In
Any Logic.
Example
Process Table
Description Entity Location Opn (min)
Returns the cost rate specified in the Cost dialog Order Order_desk GET Clerk, 399
WAIT N (4.5, .3)
or through the SETRATE() function for a
IF Off_Shift_Var=1
resource currently owned by the entity making THEN INCRESCOST
the function call. When used without the optional GETRESRATE() *.50
<resource> parameter, this function returns the FREE Clerk
cost rate of the entity’s most recently captured,
owned resource. Routing Table
If an entity owns multiple units of a resource, the Blk Output Destination Rule Move Logic
function returns the cost rate of the entity’s most 1 Order Shipping FIRST 1 MOVE FOR
recently captured resource unit. 1
<resource>
A resource currently owned by the entity making the
function call. When you use GETRESRATE without
this parameter, this function returns the cost rate of the
entity’s most recently captured, owned resource.
Example
Valid In
Any logic.
Components
<label ID>
The name of the label to switch to. Omit the colon on
the label name here.
Example
Syntax samples
Process Table
GRAPHIC <expression>
GRAPHIC 2 Entity Location Operation (min)
EntA Loc1 GRAPHIC 2
GRAPHIC Var1 WAIT 15 min
GRAPHIC 3
WAIT 25 min
GRAPHIC 4
Description
Routing Table
Changes the entity’s or resource’s current
graphic. Entities and resources are assigned Blk Output Destination Rule Move Logic
graphics from the graphics library in the Entity or 1 EntA Loc2 FIRST 1 MOVE FOR
Resource editor. Use the GRAPHIC to show the 5
result of a process. For example, when a cus-
tomer sits down, the graphic could change from a See Also
standing person to a sitting person. “Entities” on page 112 and “Resources” on
page 126.
Valid In
When used in node entry, node exit, and
resource-downtime logic, GRAPHIC changes a
resource’s graphic. When used in location pro-
cessing logic, move logic, and arrival logic,
GRAPHIC changes an entity’s graphic.
Components
<expression>
The number of the entity’s or resource’s new graphic.
Example
GROUP <expression> {AS <entity name>} The number of entities to group. If this expression is
zero, the statement is ignored. If it is less than zero, it
GROUP (Var1+Var2) generates an error.
GROUP 10 AS EntX This expression is evaluated every time an entity
encounters the GROUP statement, so the amount of
entities to be combined can vary as the simulation
progresses. If it becomes less than or equal to the num-
Description ber of entities already waiting to be combined, the
Accumulates and temporarily consolidates a entity that encountered the GROUP statement will be
grouped with all the waiting entities.
specified quantity of entities into a single
GROUP shell entity. AS <new entity name>
The shell entity retains the same attributes as the The optional name of the resulting entity. If left off, the
first entity that was grouped into the shell. How- new entity will have the same name as the last entity to
complete the group.
ever, if the GROUP AS statement is used, the
new shell entity does not retain any attribute val-
ues, even if the same name is used for the
Explicit Entity Actions
GROUP shell entity as the entities that have been
grouped. GROUP creates a shell (a temporary entity repre-
senting grouped entities that starts with cost and
The individual entities comprising the group time statistics of zero) to which ProModel assigns
retain their identities, attributes, and resources all cost and time statistics for the group. Each
and are divided from the group when an grouped entity retains its individual cost and time
UNGROUP statement is encountered. The first statistics and, when you ungroup the entities and
entity processed from the group takes any the shell disappears, ProModel divides all statis-
resources the group owns. Entities in a group can
tics and cost (accrued by the shell) between them.
be grouped into a larger group at another loca-
tion.
Valid In
The operation column of process edit tables only.
GROUP may not be used in combination with
COMBINE, CREATE, LOAD, UNLOAD,
SPLIT AS, other GROUP statements in the same
processing logic, or with conveyors. An excep-
tion to this rule is that an UNGROUP statement
484 Chapter 14:
Group
Example
Process Table
Entity Location Operation (min)
Man Floor1 WAIT E(2.0)
Woman Floor1 WAIT U(3,1)
Child Floor1 WAIT N(2.1,.2)
ALL Waiting GROUP 10 AS Grp_A
Grp_A Waiting GET Elevator
Routing Table
Blk Output Destination Rule Move Logic
1 Man Waiting FIRST 1 MOVE FOR
0.5
1 Woman Waiting FIRST 1 MOVE FOR
0.5
1 Child Waiting FIRST 1 MOVE FOR
0.5
See Also
COMBINE, ACCUM, GROUPQTY(), and
ENTITY(). Also see “Attributes” on page 217.
ProModel 485
User Guide
GroupQty() Example
Entity-Specific System Function A group of entities called GRPA arrives at Loc1 and
process for some amount of time according to a Nor-
mal distribution. If the group contains three or more
Syntax samples entities it routes to Loc2, otherwise it routes to Loc3.
Routing requires 1.2 minutes.
GROUPQTY({<entity name>})
ORDER GROUPQTY(Part1) Part2 TO Loc1
IF GROUPQTY(Part1) > 5 THEN... Process Table
Entity Location Operation (min)
GRPA Loc1 WAIT N(3,.1)
Description IF GROUPQTY() > 2 THEN
ROUTE 1
Returns the number of entities of a specified type in a ELSE
grouped or loaded entity. If no name is specified, it ROUTE 2
returns the entire group quantity. If it is a loaded entity,
it will only return the number of temporarily loaded Routing Table
entities, not the base entity. For example, if four Cast-
ings are temporarily loaded onto a Pallet and called Blk Output Destination Rule Move Logic
Batch, the GroupQty() will return the number of Cast- 1 GRPA Loc2 FIRST 1 MOVE FOR
ings (i.e., 4), which does not include the base entity 1.2
Pallet. 2 GRPA Loc3 FIRST 1 MOVE FOR
1.2
In the case of hybrid nested groups with several mixed
and nested levels of groups and loads, GroupQty()
returns the number of entities in the uppermost level See Also
only. GROUP, UNGROUP, and ENT().
Valid In
Speed fields, traveling-time fields, conveyor-
speed fields, Resource fields, operation logic,
routing fields, arrival logic, and debug user-con-
dition fields. This function returns an integer.
Components
<entity name>
The optional specific type of entity to search for in the
group.
486 Chapter 14:
If...Then...Else
If...Then...Else Valid In
Any logic.
General Control Statement
Components
Syntax samples
<Boolean expression>
IF <Boolean expression> THEN <statement 1> {ELSE The condition to be tested.
<statement 2>}
THEN <statement 1>
The statement or block to be executed if the condition
IF Var1 = 5 THEN WAIT 2 min is true.
ELSE <statement 2>
IF (Attr2 = 5) OR (Var5 <> 0) THEN WAIT 2 min The statement or block to be executed if the condition
ELSE WAIT 3 min is false.
Description
Executes a statement or statement block if the
Boolean expression is true. If an ELSE statement
is included and the Boolean expression is false,
an alternate statement or statement block is exe-
cuted. For an IF...THEN statement to be broken
into more than one line, the first item on the next
line must be THEN, AND, or OR. IF...THEN
statements only apply to the next statement or
statement block in a logic. Any statements out-
side of the BEGIN and END will execute nor-
mally. See BEGIN and END for examples.
ProModel 487
User Guide
Process Table
Entity Location Operation (min)
Client Loc1 IF CLOCK(Hr) < 8 THEN
ROUTE 1
ELSE
ROUTE 2
Routing Table
Blk Output Destination Rule Move Logic
1 Client Office1 FIRST 1 MOVE FOR
5
2 Client Office2 FIRST 1 MOVE FOR
5
See Also
BEGIN, END, DO...WHILE, WHILE...DO, and
DO...UNTIL.
488 Chapter 14:
Inc
Inc Example
General Operation Statement The following example increments two variables in the
exit logic. Num_complete is incremented by one, and
Count is incremented by the expression Attr1*Attr2.
Syntax samples
Description
Increments a variable, array element, or attribute
by the value of a specified numeric expression.
When counting the number of entities a location
has processed, increment a variable at the end of
the processing logic.
See Also
Valid In
DEC.
Any logic.
Components
<name>
The name of any variable, array element, or attribute.
<expression>
The amount to increment the value. If this expression
is omitted, the value will be incremented by one. This
can be a negative number.
ProModel 489
User Guide
IncEntCost Example
Cost Related Statement The logic below allows you to add an initial cost to an
entity implicitly created through the ROUTE state-
ment. In the following example, a Pallet of entities,
Syntax samples PalletA, arrives at Unload_Loc where workers unload
entities called Box every 20 seconds until the pallet is
INCENTCOST <expression> empty. ProModel determines the number of Boxes
unloaded from PalletA by the value of PalletA’s
INCENTCOST 15 attribute, Qty_Attr. In Move Logic, the statement
INCENTCOST -15 “IncEntCost 10” adds an initial cost of 10 dollars to
each implicitly created entity, Box.
Description
Process Table
Enables you to increment the cost (positively or
negatively) of the current entity by a given Entity Location Opn (min)
amount. Use this function to add to the entity’s PalletA Unload_Loc int x = 0
actual, accumulated dollar amount. WHILE x < Qty_Attr DO
{INC x
WAIT 20 sec
Please note ROUTE 2}
ROUTE 1
When working with new entities created through
a ROUTE statement, use INCENTCOST to assign Routing Table
an initial cost to entities. Initial entity cost Blk Output Destination Rule Move Logic
defined for an entity in the cost module applies to 1 PalletA Exit FIRST 1
entities entering the system through a scheduled 2* Box Conveyor1 FIRST 1 INCENT-
arrival, the CREATE statement, or the ORDER COST 10
statement.
<expression>
The positive or negative change to the value of cost.
490 Chapter 14:
IncLocCost
Components
<expression>
The positive or negative change to the value of cost.
Example
IncResCost Example
Description
Process Table
Enables you to increment the cost (positively or
negatively) of a resource currently owned by the Entity Location Opn (min)
entity executing the statement. Use this function Order Order_desk GET Clerk, 399
to add to the resource’s actual, accumulated dol- WAIT N (4.5, .3)
lar amount. When used without the optional IF Off_Shift_Var=1
THEN INCRESCOST
<resource> parameter, this statement increments GETRESRATE() *.50
the cost rate of the entity’s most recently cap- FREE Clerk
tured, owned resource.
If an entity owns multiple units of a resource, the Routing Table
cost distributes evenly to each unit. Blk Output Destination Rule Move Logic
1 Order Shipping FIRST 1 MOVE FOR 1
Valid In
Operation and move logic.
Components
See Also
<cost expression>
The positive or negative change to the value of cost. GETCOST(), GETRESRATE(), INCENTCOST,
INCLOCCOST, INCRESCOST, and SETRATE.
<resource>
A resource currently owned by the entity executing the
statement. When used without the parameter, this state-
ment increments the cost rate of the entity’s most
recently captured, owned resource.
492 Chapter 14:
Int
Int Components
INT Count = 1
INT Count = 1, Test = FREECAP(Loc2) Example
Valid In
Any logic. Variables declared with INT are valid
in any expression within the logic where a normal
integer number is valid.
ProModel 493
User Guide
Process Table
Entity Location Operation (min)
Pipe Inspect WAIT 5
Box Dock INT X= b_type
LOAD 5 IFF
X=p_type
Box Dock WAIT 10
Routing Table
Blk Output Destination Rule Move Logic
1 Pipe Dock LOAD 1 MOVE FOR 2
See Also
REAL. Also see “Local Variables” on page 225.
494 Chapter 14:
Join
Join Valid In
Operation logic only. More than one JOIN state-
Entity-Related Operation Statement ment may be used in the same logic.
Joins a specified quantity of a designated entity The entity type to be joined to the base entity. Joining
entities must come from a JOIN routing and lose their
type to the current entity. The entities joined to
identity once joined.
the current entity lose their identities and any
resources owned by the joining entities are trans- <priority>
ferred automatically to the base entity. Use JOIN An entity with a higher priority will have arriving enti-
to simulate a component being assembled to a ties joined to it before one with a lower priority. This
main part, such as when wings are attached to the expression should be a number between 0 and 999. For
fuselage of an airplane. more information on priorities, see Priorities, at the
beginning of this section.
Entities to be joined must be routed to the current
location with a JOIN rule. The current entity
waits until enough entities to fill its request have Explicit Entity Actions
been routed to the current location with a JOIN
rule. JOIN passes cost on to the base entity but not sta-
tistical information. ProModel counts joined enti-
The resulting entity retains the attributes and ties as exits.
name of the base entity. To transfer attributes
from the joining entity to the current entity, in the
exit logic for the joining entity, copy the desired
attribute to a global variable. Then assign the glo-
bal variable to the attribute of the base entity after
the JOIN statement in the processing logic.
All resources owned by the joining entity are
transferred to the base entity.
To JOIN an entity with a specific attribute value
to another entity with the same attribute value,
use the LOAD PERM statement .
ProModel 495
User Guide
Example
Process Table
Entity Location Operation (min)
Rdoor Paint WAIT 30
Ldoor Paint WAIT 30
Body Assembly JOIN 1 Ldoor
JOIN 1 Rdoor
Routing Table
Blk Output Destination Rule Move Logic
1 Rdoor Assembly JOIN 1 MOVE FOR 30
1 Ldoor Assembly JOIN 1 MOVE FOR 30
1 EntB Cleaning FIRST 1 MOVE FOR 5
See Also
LOAD, COMBINE, and GROUP. Also see
“Attributes” on page 217.
496 Chapter 14:
Jointly Get
Last() Example
Resource-Specific System Function This Entry Logic window shows that whenever a
resource enters a particular node a check is made to see
if the name-index number of the last node equals one.
Syntax samples If so, the resource graphic is changed to Graphic 2, oth-
erwise it is changed to Graphic 3.
LAST()
Var1=LAST()
IF LAST() = 13 THEN Var3 = 0
IF LAST() = PathNet1.N1 THEN INC Var1
Description
Returns the name-index number of the node from
which a resource has just traveled. LAST() can
be useful to choose the appropriate graphic or to
reset a variable. You can also check the name-
index number of the last node by specifying
<path network name>. <name of the node>. For
example, if you wanted to know if the last node See Also
was N5 on the network Net3, you could specify NEXT() and WAIT...UNTIL.
“IF LAST() = Net3.N5 THEN...” in the node
entry logic.
Valid In
Node entry logic.
498 Chapter 14:
Ln()
Ln()
Math Function
Syntax samples
LN(<expression>)
Real1 = LN(Real2)
Description
Returns the natural logarithm of an expression.
Valid In
Any expression. This function returns a real num-
ber.
Components
<expression>
LN() returns the natural logarithm of this expression.
See Also
EXP().
Please note
logbase<expression> = LN<expression>/
LN<base>
ProModel 499
User Guide
LOAD <expression> {PERM}{IFF <Boolean expres- The number of entities to load onto the base entity.
sion>}{IN <time>}{,<priority>} This expression is evaluated at the time the entity
encounters the LOAD request.
LOAD 5, 99
PERM
LOAD 5 IFF Attr3 > 2 IN 5 min
This option causes the LOAD to behave the same as
LOAD Pallet_Capacity LOAD 5 PERM IN 10 min the JOIN statement. It will permanently join entities to
the base entity executing the LOAD statement. Any
resources owned by the permanently loading entities
are transferred automatically to the base entity.
Description
IFF <Boolean expression>
Loads a specified quantity of entities onto a base
This option allows the LOAD command to be condi-
entity. Temporarily loaded entities retain their
tional. Any attributes, entity functions, or location
identity and may be unloaded with an UNLOAD functions apply to the entity to be loaded, not to the
statement. Permanently loaded entities, using the base entity. This technique allows only entities with
PERM option in the LOAD statement, do not certain properties to be loaded onto the base entity. To
retain their identity and cannot be unloaded later. use attributes, entity functions, and location functions
Loaded entities must be routed to the loading that apply to the base entity, assign the desired value to
location using the LOAD routing rule. Additional a local variable and use the local variable in the Bool-
entities may be added to an entity’s existing load ean expression.
with additional LOAD statements. Use LOAD to IN <time>
model parts placed into a container or pallet when
The entity will load entities up to the specified limit for
they must be removed later. If a base entity owns
this amount of time and then go on. Entities loaded
a resource when the entities are unloaded the with this option may have a load smaller than the spec-
resource stays with the base entity. Any resources ified amount.
owned by permanently loading entities are trans-
<priority>
ferred automatically to the base entity. Any
resources owned by temporary loading entities Waiting entities will load arriving entities by priority.
are kept and cannot be freed until the entities are This expression should be a number between 0 and
unloaded. 999.
Valid In
Explicit Entity Actions
Operation logic only. A process may contain
multiple load statements and no more than one LOAD does not transfer cost or statistics of the
UNLOAD statement following all LOAD state- loaded entity. However, if the PERM option is
ments. LOAD may not be used in the same pro- used, the cost of the loading entity does get trans-
ferred to the base entity.
500 Chapter 14:
Load
Example
Process Table
Entity Location Operation (min)
Box Shipping WAIT 2 min
Truck MfgSite
Routing Table
Blk Output Destination Rule Move Logic
1 Box Dock LOAD 1 MOVE FOR 45
sec
1 Truck Dock FIRST 1 MOVE FOR 10
min
1 Truck NewYork FIRST 1 MOVE FOR 24
hr
Truck Chicago FIRST MOVE FOR 12
hr
Truck Boston FIRST MOVE FOR 28
hr
See Also
LOAD, GROUP, UNLOAD, ACCUM, COM-
BINE, JOIN, GROUPQTY(), and ENTITY().
Also see “Attributes” on page 217.
ProModel 501
User Guide
Loc() Components
LocState()
General System Function
Syntax samples
LOCSTATE (<locationname>)
Description
Returns a value indicating the current state of the
specified location. Return values will range from
1-7, which translate to the following:
1 = idle/empty
2 = setup
3 = operating
4 = blocked
5 = waiting
6 = up (multi-capacity location)
7 = down
Valid In
Any Logic.
Components
<locationname>
The name of the location.
ProModel 503
User Guide
Description
Returns the current location’s name-index num-
ber. This function is especially useful in macros
and subroutines that vary depending on which
location’s logic calls them. By using a LOCA-
TION() function with an IF...THEN statement,
the macro or subroutine can act differently
depending on the location that called it. Also, the
same technique can be used to determine which
location is carrying out a process when ALL is
used as the process location.
Valid In
Any logic.
Example
Log Example
General Action Statement The example below shows a LOG statement used to
capture each Client’s total throughput time as they
travel through the system. Time starts when the Client
Syntax samples arrives at Receptionist and stops when the Client exits
through the door. The first process sets attribute CT
LOG <string>, <expression> equal to the current clock time. Next, Clients are sent
randomly to one of three offices. Finally, when a Cli-
LOG “Activity Time”, Attr1 ent leaves the system at location OutDoor, the LOG
statement records the cycle time by subtracting the
time stored in attribute CT from the current simulation
time.
Description
ProModel assumes that the time stored in the Throughput Time
expression is in the model’s default time units set
in the General Information dialog box. Use the
1 2 3 4 5
LOG statement to record the time from one state-
ment to another statement by storing the time of
the first statement in an attribute, variable, or Reception Loan OutDoor
array element with CLOCK() and using the same Auditor Service
attribute, variable, or array element as the expres-
sion in the LOG statement. Use the LOG state-
ment to determine throughput time or throughput
in a particular section of the facility.
Valid In
Downtime logic, location processing logic, node
entry and exit logic, and routing exit logic.
Components
<string>
This string will be stored in the file before the result of
the log expression and may not be a string expression.
Use this string to identify the number that follows.
<expression>
The result of this expression subtracted from the
model’s current time will be stored in the file <model
name>.LAP, after the string above.
ProModel 505
User Guide
Process Table
Entity Location Operation (min)
Client Reception CT=CLOCK()
Client Auditor WAIT T(5,6,8)
Client Loan WAIT T(4.5,5,7)
Client Service WAIT N(6.2,1.1)
Client OutDoor LOG “Cycle Time”, CT
Routing Table
Blk Output Destination Rule Move Logic
1 Client Auditor RANDOM MOVE FOR
Loan 1 1.5
Service RANDOM
RANDOM
1 Client OutDoor FIRST 1 MOVE FOR
0.5
1 Client OutDoor FIRST 1 MOVE FOR
0.5
1 Client OutDoor FIRST 1 MOVE FOR
1.2
1 Client EXIT
See Also
WRITE, WRITELINE, and READ. Also see
“External Files” on page 254.
506 Chapter 14:
MapArr
Syntax samples
Example
MAPARR <array name>{TO <variable name>}
MAPARR Array1 TO Var10 Suppose you want to dynamically view an array,
MAPARR Array5 Storage_Array, during simulation. The array has a
dimension of 2x3x2 (a three-dimensional array with 2
cells in the first dimension, 3 cells in the second, and 2
cells in the third) and contains a total of 12 cells (multi-
ply all the dimensions together).
Description
Since you already used the first 8 of the 30 variables
Starting with the variable you specify, the MAP-
defined in the model, Var1 through Var30, you will
ARR statement maps each individual cell of an start mapping the array with Var9 and end with Var20
array to a unique variable (i.e., if you define 12 (the 12th variable from Var9 listed in the Variables
cells for the array, the array will map to 12 vari- module). In the initialization logic, use the following
ables). To display the cell value of a mapped statement:
array, create a variable graphic for the variable to
MAPARR Storage_Array TO Var9
which you mapped the array cell. ProModel col-
lects statistics for an array cell through the vari- The cells in Storage_Array will map to variables Var9
able to which you mapped the cell. (Choose to Var20 in the following order:
“Basic” or “Time Series” statistics for a mapped [1,1,1] ... Var9
variable, then view the variable in the Statistics [1,1,2] ... Var10
Output program.) [1,2,1] ... Var11
[1,2,2] ... Var12
If you do not specify the optional variable name [1,3,1] ... Var13
in the statement, ProModel will unmap the array [1,3,2] ... Var14
from the variables to which you originally [2,1,1] ... Var15
mapped it. You can remap arrays by using the [2,1,2] ... Var16
MAPARR statement again. [2,2,1] ... Var17
[2,2,2] ... Var18
Valid In [2,3,1] ... Var19
[2,3,2] ... Var20
Any logic.
In the Variables module, create graphics for variables
Components Var9 through Var20 and place them on the layout. This
will allow you to view them during the simulation.
<array name>
Map, unmap, or remap this array. The brackets, [ ], are
unnecessary after the array name in the statement.
ProModel 507
User Guide
Please note
Match Components
Valid In
The operation column of process edit tables only.
ProModel 509
User Guide
Process Table
Entity Location Operation (min)
EntAB Loc1 INC Count
Attr1= Count
EntA Loc2 ...
EntA Loc10A MATCH Attr1
EntB Loc3 ...
EntB Loc10B MATCH Attr1
JOIN 1 EntA
Routing Table
Blk OutputDestination Rule Move Logic
1 EntA Loc2 FIRST 1 MOVE FOR 5
2 EntB Loc3 FIRST 1 MOVE FOR 5
... ... ... ... ...
1 EntA Loc10B JOIN 1 MOVE FOR 30
sec
... ... ... ... ...
1 EntAB Loc11 FIRST 1 MOVE FOR 5
See Also
WAIT...UNTIL and LOAD.
510 Chapter 14:
Move
<time expression>
The amount of time needed for the entity to travel
If an entity processing at a queue or conveyor through the queue. This expression is ignored for con-
encounters a MOVE statement, the entity stops veyors. It is evaluated every time the statement is
executing the processing logic, moves to the end encountered and should be on the same line as the
of the queue or conveyor in the appropriate MOVE command.
ProModel 511
User Guide
Example
Process Table
Entity Location Operation (min)
ALL Queue1 MOVE FOR 2.5
ALL Queue2 MOVE FOR 3.5
ALL Queue3 ...
Routing Table
Blk Output Destination Rule Move Logic
1 ALL Queue2 FIRST 1
1 ALL Queue3 FIRST 1
... ... ... ... ...
See Also
“Locations” on page 90. Also see WAIT.
512 Chapter 14:
Move For
Entity-Related Move Logic Statement It takes 4 minutes for the entity, Cutter, to move from
one location, Grinder, to the next location, Profiler.
Syntax samples
Valid In
This statement is valid in Move Logic. MOVE
FOR may be encountered only once by an entity
in the same logic.
Components
<time>
The length of time the system takes to execute the
move. This expression is evaluated whenever the
statement is encountered. If no time unit is specified,
the default time unit specified in the General Informa-
tion dialog is applied.
ProModel 513
User Guide
Valid In
This statement is valid only in Move Logic.
MOVE ON may only be encountered once by an
entity in the same move logic.
Components
<path network>
Any valid path network name.
Example
Move With The resource used to make the move is freed only
if the THEN FREE option is used.
Entity-Related Move Logic Statement Valid In
This statement is valid only in Move Logic.
Syntax samples
MOVE WITH may only be encountered once by
an entity in the same move logic.
MOVE WITH <res1> {,p1}
OR <res2> {,p1}
{FOR <time >} {THEN FREE} Components
MOVE WITH Technician, 100
<res1>
MOVE WITH Operator1, 399 FOR 3 min
Resource to be captured and used to transport the
MOVE WITH Truck1, 99 THEN FREE entity.
MOVE WITH Operator1 OR Operator2 <res2>
Alternate resource to be captured and used to transport
the entity.
Description <priority>
This statement is used to move an entity using a The priority for accessing the resource. If the resource
designated resource such as a person or forklift. is already owned by the entity, this priority is ignored.
With the OR operator, you can designate alterna- <time>
tive resources for making the move. In this case,
The length of time the system takes to execute the
the statement captures the first available resource
move. Used only if the resource is static. This expres-
designated in its expression and makes the move.
sion is evaluated whenever the statement is encoun-
As soon as the destination becomes available, the tered. If no time unit is specified, the default time unit
entity implicitly gets the resource. However, if specified in the General Information dialog is applied.
one of the resources is already owned by the
entity, it will use that resource.
It also allows you to set the priority (p1) for
accessing the designated resource. If the
resource is already owned by the entity, this pri-
ority is ignored.
If the resource is static, you may specify a time
(FOR <time expression>) for the move. If a
resource is dynamic, a time (FOR <time expres-
sion>) is not valid. If you use “FOR <time>” with
a dynamic resource, ProModel ignores the time.
The resource will travel based on either the time
or speed/distance defined in the path networks
module.
ProModel 515
User Guide
Example
See Also
MOVE FOR and MOVE ON. Also see “Routing
Move Logic” on page 294.
516 Chapter 14:
Next()
Next() Example
Resource-Specific System Function This Exit Logic window shows that whenever the
resource leaves a node a check is made to see if the
name-index number of the next node equals 1. If so,
Syntax samples the resource graphic is changed to Graphic 3. (Other-
wise it is changed to Graphic 2.)
NEXT()
Var1=NEXT()
IF NEXT() = PathNet5.N11 THEN Var5=3
Description
Returns the name-index number of the resource’s
destination node. Use NEXT() to determine the
direction an entity is headed and choose the
appropriate graphic. This function can be used to
control interference between multiple transport-
ers on the same path network. You can also check
the name-index number of the next node by spec-
ifying <path network name>. <name of the
node>. For example, if you wanted to know if the
next node is N5 on the network Net3, you could See Also
specify “IF NEXT() = Net3.N5 THEN...” in the LAST() and WAIT...UNTIL.
node exit logic.
Valid In
Node exit logic. This function returns a name-
index number.
ProModel 517
User Guide
Order <location>
The destination of the new entities. LOC() may be sub-
stituted for the names of locations. If no location is
General Action Statement
specified, the entities will be ordered to the location of
the ORDER statement.
Syntax samples
Components
<expression>
The number of new entities to be ordered. This field is
evaluated every time the ORDER statement is encoun-
tered, allowing the number ordered to vary as the simu-
lation progresses.
<entity>
The name of the new entities. ENT() may be used for
an entity name.
518 Chapter 14:
OwnedResource()
OwnedResource() Components
Valid In
Entity speed fields, traveling-time fields,
resource fields, resource downtime logic, loca-
tion processing logic, location downtime logic,
routing fields, arrival logic, debug user-condition
fields, and move logic.
ProModel 519
User Guide
Pause Example
General Action Statement The simple example below pauses the simulation after
the 100th EntA has been processed at Loc1. The pur-
pose for doing this might be to view the current state of
Syntax samples the system at this particular point in time.
Valid In
Any logic.
Components
<string expression>
The optional message to display.
520 Chapter 14:
PercentOp()
PercentOp()
General System Function
Syntax samples
PERCENTOP (<locationname>)
Description
Returns the cumulative operation time percentage
for the specified, single-capacity location. The
value returned by this function represents the
cumulative percentage of time the location was
actually processing an entity up to the point
where the function was called.
If PercentOp() is called for a multiple-capacity
location, the value returned will always be zero,
since operation time percentage is not calculated
for multiple-capacity location
Note: The method used to calculate operation
percentage for this function is the same method
used in the output statistics.
Valid In
Any Logic.
Components
<locationname>
The name of the location.
ProModel 521
User Guide
PercentUtil()
General System Function
Syntax samples
PERCENTUTIL (<locationname>)
Description
Returns the cumulative utilization percentage for
the specified location. The value returned by this
function represents the cumulative percentage of
capacity occupied at the location, on average, at
the time the function was called.
Cumulative Occupancy Time x 100
Capacity x Scheduled Time
Cumulative Occupancy Time in the above equa-
tion refers to the sum of the clock time each
entity spends at a location for processing.
PercentUtil() may be called to return percent uti-
lized for both multi- and single-capacity loca-
tions.
Note: The method used to calculate utilization
percentage for this function is the same method
used in the output statistics.
Valid In
Any Logic.
Components
<locationname>
The name of the location.
522 Chapter 14:
Preemptor()
Example
Priority Example
Shift & Break Logic Statement Suppose you want to insure that the resource is non-
preemptable for the first four hours it is off-shift. Sim-
ply enter a high (e.g., 999) off-shift priority value in
Syntax samples the priority dialog in the Shift Assignments module.
Enter the following off-shift logic to lower the priority
PRIORITY <expression> (to 99) four hours into the off-shift period:
PRIORITY 199 WAIT 4 hr
PRIORITY 99
WAIT 4 hr
SKIP
Description
This statement is used to change the priority of
the off-line state of the location or resource. If the See Also
priority is less than the value set previously, the
system will check if the location or resource can “Shift & Break Logic” on page 297.
be preempted.
Valid In
Shift and break main logic only. This statement
is not valid in pre-off shift or pre-break logic.
Components
<expression>
Any expression that yields a value between 0 and 999.
Standard ProModel priority levels apply.
524 Chapter 14:
Prompt
Prompt <name>
The name of the variable, array element, or attribute to
give the value. The value already in this item will be
General Operation Statement
used as the default value.
<choices>
Syntax samples
A string expression identifying the choice. Any num-
PROMPT <string expression>, <name>{, ber of choices may be specified, and all must have cor-
<choice1>:<expression1>, responding expressions.
<choice2>:<expression2>, <expressions>
<choice3:<expression3>...}
The value to assign the variable, array element or
PROMPT “Enter the number of entities to process:”, attribute if the user selects the corresponding choice
Var2 from the menu.
PROMPT “Enter the size of batches to accumu-
late:”,Var1, “Large”: 20, “Medium”: 15, “Small”:
10 Example
Valid In
Any logic.
Components
<string expression>
The message to display. This expression should tell the
user what value to enter or choose.
ProModel 525
User Guide
Example
See Also
PAUSE; DISPLAY. Also see “Run-Time Inter-
face” on page 234.
526 Chapter 14:
Rand()
Description Components
Reads the next numeric value from a general read
file and assigns that value to a name. General <file ID>
read files are defined in the External Files Editor.
The file identifier as defined in the External Files Edi-
When reading from a file, ProModel skips all tor.
non-numeric data, such as text, and reads the next
numeric value. Thus comments and notes may be <name>
included in a read file. Multiple replications of a The variable, array element, or attribute to be assigned
model will continue reading from a file where the the value.
previous replication left off unless reset with the
RESET statement.
Example
Please note
The example below shows an outside file being read in
ProModel reads a period (.) in a General read the Arrival logic for entity type Box. In this case three
values representing the length, width and depth of each
file as a zero. To avoid this, you should use the
Box are listed on each line of a file called “Size.Dat.”
comment symbol (#) in front of notes and com-
The File ID for this file is simply Size. Length, Width,
ments that contain a period. and Depth are all entity attributes.
See Also
“External Files” on page 254. Also see RESET
and CLOSE.
ProModel 529
User Guide
Real <expressions>
The variable will initially be assigned this value. This
expression is evaluated every time the REAL statement
Local Variable Declaration Statement
is encountered.
Valid In
Routing Table
Any logic. Variables declared with REAL are
valid in any expression within the logic where a Blk Output Destination Rule Move Logic
1 Box Shipping JOIN 1 MOVE FOR 1
real number is valid.
1 Pack- Dock FIRST 1 MOVE FOR 3
age
Components
See Also
<names>
INT. See “Variables” on page 223.
An identifier for the first local variable. This identifier
must be a valid name.
530 Chapter 14:
Real()
Real()
Type Conversion Function
Syntax sample
REAL(<expression>)
Var2 = Var1 + REAL(Var3)
Attr3 = 1.05 * REAL(Var5)
Description
Converts an integer to a real number. ProModel
automatically converts integers to real when
needed.
Valid In
Any expression.
Components
<expression>
REAL() converts this expression to a real number.
See Also
ROUND() and TRUNC().
ProModel 531
User Guide
Report Example
General Action Statement To get a snapshot report every 40 hours, enter the fol-
lowing:
Description
Calculates and reports the current statistics to the Please note
output database. This is useful to get a snapshot
of the model while it is running. If you use the REPORT statement even once, a
final overall report will NOT be created since the
The REPORT statement may be followed by the
report generated with your use of the statement
WITH RESET option to reset the statistics after
may be the final report desired. In this case, you
the report is made to the database When you use
must use the REPORT statement at the end of ter-
the WITH RESET option, you generally want to
mination logic in order to create a final report if
provide some looping or event creation that will
desired. If a REPORT statement is never used, a
call the report function at the appropriate time.
final overall report is created automatically.
Used with the AS option, REPORT creates a
report with the name specified in the expression
that can be accessed in the Output Program when
creating a General Stats report. See Also
RESET STATS and WARMUP.
Valid In
Any logic.
Components
<string expression>
A unique name given to the report so it can be
easily identified in the General Stats dialog in the
Output Program. If any reports have the same
name, a number is tacked on the end of the name
to make it unique.
ProModel 533
User Guide
Res() Components
Valid In
Any statement where a resource name is nor-
mally used, except in the Move Logic field in the
Routing edit table. Also used in string expres-
sions.
534 Chapter 14:
Reset
Reset Example
General Action Statement The example below shows how a general read file,
Times, is reset in the Initialization logic. Each time a
simulation begins, whether a single replication or one
Syntax samples of several multiple replications, the Times file is reset
so that calls to the Times file start at the beginning of
RESET <file ID> the file.
RESET Times
RESET (Times)
Description
Starts a general read file over from the beginning.
RESET is used primarily in the Initialization or
Termination logic to reset a general read or write
file at the beginning or end of multiple replica-
tions and single, independent runs. RESET can
also be used to re-read cyclic data in the same
simulation run. The parentheses are optional and
are included only to insure compatibility with
older models. See Also
Valid In “External Files” on page 254. Also see READ,
WRITE, XWRITE, and RESET.
Initialization and termination logic, node entry
and exit logic, down-time logic, location process-
ing logic, routing exit, and arrival logic.
Components
<file ID>
The file identifier as defined in the External Files Edi-
tor.
ProModel 535
User Guide
Reset Stats
General Action Statement
Syntax samples
RESET STATS
IF Total = 20 THEN RESET STATS
Description
Resets the simulation statistics. Useful in con-
nection with the REPORT statement to manually
control statistics for reporting purposes in case
specific or event logic.
Valid In
Any logic.
Example
See Also
REPORT and WARMUP.
536 Chapter 14:
Resource()
Resource()
Shift & Break System Function
Syntax samples
RESOURCE ()
Description
Returns the name-index number of the resource
currently processing the off-shift or break logic.
Valid In
Off-shift and break logic.
Example
See Also
LOCATION(), FORLOCATION(), and FORRE-
SOURCE().
ProModel 537
User Guide
ResourceUnit()
Shift & Break System Function
Syntax samples
RESOURCEUNIT()
Description
Returns the unit number of the resource being
used.
Valid In
Off-shift and break logic.
Example
ResQty() Example
See Also
<resource name>
The name of the resource to check for. If no resource FREECAP(), FREEUNITS(), and
name is specified, the total number of units of all GROUPQTY().
resource types owned by the entity is returned. RES()
may be substituted for a resource name.
ProModel 539
User Guide
Return Components
RETURN {<expression>}
RETURN Example
RETURN Attr1**Sqrt(Attr2)
The following example uses a subroutine to check the
supply of items in a storage location. If the free capac-
ity of the location is greater than 10, the user is
Description prompted for an order quantity; otherwise no new
items will be ordered. If an order is made, the order
Sends a value from a subroutine to the logic that
time is returned; otherwise the variable OrdTm
called the subroutine. In the same way that
remains unchanged. The logic for Sub1() appears in
parameters send information from the calling the logic window.
logic to the subroutine, RETURN sends informa-
tion from the subroutine to the calling logic.
After the RETURN is executed, no more logic in Process Table
the subroutine is executed. When subroutines
return values, the RETURN statement must be Entity Location Operation (min)
followed by an expression. Item99 Stores
Item99 Shipping WAIT N(3.2,.2)
When used in logic that is not a subroutine, OrdTm = Sub1()
RETURN functions like a very powerful BREAK
or BREAKBLK statement. Whereas BREAK and Routing Table
BREAKBLK exit only the innermost loop or
statement block, RETURN exits the logic com- Blk Output Destination Rule Move Logic
pletely, no matter how deeply nested inside loops 1 Item99 Shipping SEND 1 MOVE FOR 15
and statement blocks. 1 Item99 EXIT FIRST 1
Valid In
Any logic, but used most often in user-defined
subroutines.
540 Chapter 14:
Return
See Also
“Subroutines” on page 238. Also see BREAK
and BREAKBLK.
ProModel 541
User Guide
Round()
Math Function
Syntax samples
ROUND(<expression>)
Integer1 = ROUND(3.5)
Description
Rounds the expression to the nearest whole num-
ber. Use this function to override ProModel’s
default, truncation.
Valid In
Any expression. This function returns an integer.
Components
<expression>
The expression to be rounded.
See Also
TRUNC() and REAL().
542 Chapter 14:
Route
Components
Description
Executes a routing block for the processing <expression>
entity. The process does not continue until all of The integer result of this expression determines the
the entities being routed for the particular block routing block that the entity will take. The expression
have begun executing their move logic. The pro- is evaluated every time it is encountered, allowing the
cessing logic may contain several ROUTE state- chosen block to vary during the simulation.
ments. These statements may be selected
individually using IF...THEN statements, or they
may be processed sequentially, with or without Example
other process statements in between. If any
ROUTE statement appears in a process logic, This example illustrates a “nested” probability routing.
then ProModel assumes all routing for that pro- The initial entity, EntAB, enters Loc1 and ProModel
cess will be activated by the user and therefore makes a decision based on the user-defined distribution
does no automatic routing. If no ROUTE state- Dist1() whether to route the resulting entities according
ment appears in the processing logic, then all to Route 1, Route 2, or Route 3. If ProModel chooses
routing blocks will be executed automatically Route 1, it sends an EntA 60% of the time, or an EntB
40% of the time, to Loc2. If ProModel chooses Route
once processing logic has been completed.
2, it sends an EntA 20% of the time, or an EntB 80% of
The ROUTE Statement is most often used with the time, to Loc3. If ProModel chooses Route 3, it
IF...THEN statements to make routing decisions sends an EntA 30% of the time, or an EntB 70% of the
based on complex logic that is not available time, to Loc4.
through other ProModel features (such as system
functions or the User Condition routing rule).
ROUTE, if used with IF...THEN properly, will
insure that only one of the routing blocks is acti-
vated.
This statement can be used to route one or more
entities and leave behind a “ghost” entity that will
ProModel 543
User Guide
Process Table
Entity Location Operation (min)
ENTAB Loc1 Route Dist1()
Routing Table
Blk Output Destination Rule Move Logic
1 EntA Loc2 .600 1 MOVE FOR 2
EntB Loc2 .400 MOVE FOR 2
2 EntA Loc3 .200 1 MOVE FOR 2
EntB Loc3 .800 MOVE FOR 2
3 EntA Loc4 .300 1 MOVE FOR 2
EntB Loc4 .700 MOVE FOR 2
See Also
“Routing Rules” on page 405.
544 Chapter 14:
Send
Send Components
Valid In
Any logic.
ProModel 545
User Guide
Process Table
Entity Location Operation (min)
EntA LocA1 WAIT U(3,.5)
SEND Attr2 EntB TO LocB2
EntB LocB1 Wait 5 min
Routing Table
Blk Output Destination Rule Move Logic
1 EntA LocA2 FIRST 1
1 EntB LocB2 SEND 1
EntB LocB3 SEND
EntB LocB4 SEND
See Also
ORDER, JOIN, ROUTE, WAIT...UNTIL, and
LOAD.
546 Chapter 14:
SetRate
General Operation Statement SETRATE uses the time units defined for the
model. (By default, SETRATE uses hours.)
Syntax samples
Valid In
Initialization logic.
Components
<resource name>
The name of the resource whose rate you wish to set.
<expression>
The rate assigned to the resource. See Also
<unit #> GETCOST, GETRESRATE(), INCENTCOST,
The unit number of the resource. Where multiple INCLOCCOST, and INCRESCOST.
instances of a resource exist, you must specify which
instance of the resource to use (e.g., Tech1, Tech2,
Tech3, etc.). The keyword ALL may be used to indicate
all instances of a resource.
ProModel 547
User Guide
Skip
Shift & Break Logic Statement
Syntax samples
SKIP
Description
In pre-off-shift or pre-break logic, a SKIP state-
ment causes any off-shift or break main logic to
be skipped as well as the off-shift or break time
defined in the shift file so that the affected loca-
tion or resource stays on line.
In off-shift or break logic, a SKIP statement
causes the off-shift or break time defined in the
shift file to be ignored. This is useful if you want
to define your own off-shift or break time as part
of the logic rather than use the time defined in the
shift file.
Valid In
Shift logic only.
Example
See Also
“Shift & Break Logic” on page 297. Also see
FORLOCATION() and FORRESOURCE().
548 Chapter 14:
Sound
Sound Example
General Action Statement The example below shows an entity’s operation logic.
A variable called Total is used to keep track of the
number of entities passing through the location. Every
Syntax samples 100th entity to pass through the location will cause the
sound “Tada” to sound, thus notifying the user of the
SOUND <string expression> 100th entity. In addition, ProModel resets the counter.
SOUND “Chimes.wav”
SOUND “Tada.wav”
Description
Plays a wavefile. Wavefiles, which have the
extension .WAV, may be purchased commercially
or created with a sound card. A few sounds, such
as the examples here, come with Windows and
are found in the Windows directory. Use SOUND
to alert a model’s user that some event has taken
place.
Components
<string expression>
The DOS name of the wavefile to be played. This
expression must evaluate to a valid DOS file. It may
include a path.
ProModel 549
User Guide
Split As Components
SPLIT 10 AS Entx The name of the resulting entities. Each split entity
searches forward in the process list, and then from the
beginning of the list, until it finds a process for the new
entity type at the current location.
Description
Splits an entity into the number of entities you Explicit Entity Actions
specify, changes the entity names, and divides all
cost and time statistics accrued by the base entity When you use the SPLIT AS statement, Pro-
between the new entities. ProModel counts the Model divides the accrued cost between the new
old entity as an exit and the resulting entities entities and counts the old entity as an exit. Each
share the same attribute values as the original new entity begins with new statistical informa-
entity. tion.
Any entity you wish to split must release all Implicit Entity Actions
owned resources using the FREE statement. Use
SPLIT AS to divide pieces of raw material into ProModel allows you to use the SPLIT AS state-
components. The entities formed by the SPLIT ment implicitly as part of the routing definition.
AS statement at a location will not appear in the To do this, define a route block with a Quantity
statistics for this location. field output value greater than 1 and the New
Entity option unchecked.
Valid In
Example
The operation column of process edit tables only.
ProModel does not allow SPLIT AS on convey-
In the following example, a batch of entities, Batch A,
ors, and not at the end of a queue. You also may
arrives at Loc1 for a 2 hour processing time. Once the
not use SPLIT AS after a ROUTE statement. Do
processing completes, BatchA splits into individual
not use SPLIT AS in combination with COM- entities called EntA. ProModel determines the number
BINE, CREATE, GROUP, UNGROUP, LOAD, of EntA’s resulting from the SPLIT AS statement by
UNLOAD, or other split statements in the same the value of BatchA’s attribute, Attr3.
process logic.
550 Chapter 14:
Split As
Process Table
Entity Location Operation (min)
BatchA Loc1 WAIT 2 Hr
SPLIT Attr3 AS EntA
EntA Loc1 USE Res1 FOR U(2,.3)
Routing Table
Blk Output Destination Rule Move Logic
See Also
JOIN, GROUP, UNGROUP, and CREATE.
ProModel 551
User Guide
Sqrt()
Math Function
Syntax samples
SQRT(<expression>)
Real1 = SQRT(Real2)
Description
Returns the square root of an expression.
Valid In
Any expression. This function returns a real num-
ber.
Components
<expression>
SQRT() returns the square root of this expression.
See Also
ROUND().
Please note
X**(1/Y)
Stop Example
Description
Terminates the current replication and optionally
displays a message. The simulation will then con-
tinue with the next replication. Use STOP to end
a replication when the simulation has run long
enough to provide sufficient statistical data.
Components
<string expression>
An optional message to display when the replication
stops.
ProModel 553
User Guide
ThreadNum() debugger displays the process and logic that caused the
error, as shown below.
Syntax samples
THREADNUM()
IF THREADNUM()=215 THEN DEBUG
Description
Every time any logic is executed, it is executed
by a thread which is assigned a unique number. By adding the statement, “IF THREADNUM() = 210
THREADNUM returns the number of the thread THEN DEBUG” before the statement that causes the
that called the function. This function is most error, the simulation will run until the proper process
useful in conjunction with the IF...THEN and and then bring up the debugger. The debugger can then
DEBUG statements to bring up the debugger at a be used to step through the process to find the particu-
certain process. See below for a detailed exam- lar statement causing the error.
ple. Note that if the model does not change
between simulation runs, every thread will have
the same number from run to run, but not from
See Also
replication to replication. Also, most changes in a
model will cause threads to have different num- DEBUG.
bers on subsequent runs.
Valid In
Any logic
Example
Process Table
Valid In
Operation logic defined as a preemptive process.
Example
TimesUsed() Example
General System Function In the example below, when an EntA arrives at Loc1, it
will only use the resource Res1 if the resource has been
used five or fewer times. If the resource has been used
Syntax samples more than five times, EntA will use Res2 instead.
TIMESUSED(<resource>)
IF TIMESUSED(Res1) > 5 then USE Res2 for 10
Process Table
Entity Location Operation (min)
EntA Loc1 IF TIMESUSED (Res1)> 5
Description THEN USE Res2 FOR 10
ELSE USE Res1 FOR 10
Returns the number of times a resource has been
used.
Routing Table
Valid In Blk Output Destination Rule Move Logic
Any logic and any field evaluated after transla-
tion. For a list of fields evaluated after transla-
tion, see the “Appendix A” on page 577. See Also
UNITS().
Components
<resource>
The name of the resource to examine. RES() may be
used here.
556 Chapter 14:
Trace
Trace CLOSE
Turns tracing off and closes the trace listing.
General Action Statement
TRACE CLOSE
Description
Turns tracing on and off. Trace listings will
appear in a separate window on the screen. Use
trace to follow the logical flow of a model.
Valid In
Any logic.
See Also
Components
DEBUG.
<message>
The message to appear in the trace listing when the
TRACE statement is encountered. The message can be
any string expression.
STEP
Makes ProModel wait for the user to click the left
mouse button to execute the next statement or trace
continuously while the right mouse button is held
down. TRACE statements default to step.
CONT
Steps continuously without user intervention. Clicking
the right mouse button will step through the logic.
OFF
Turns tracing off but does not close the trace listing.
ProModel 557
User Guide
Trunc()
Type Conversion Function
Syntax samples
TRUNC(<expression>)
Integer1=TRUNC(3.9)
Description
Returns a real expression truncated to an integer.
Any digits to the right of the decimal place will
be removed. When necessary, ProModel auto-
matically converts real values to integers by trun-
cating them. For more information about
ProModel automatically converting between
reals and integers, see “Converting Between
Numeric Types” on page 397.
Valid In
Any expression. This function returns an integer.
Components
<expression>
The expression to be truncated.
See Also
ROUND().
558 Chapter 14:
Ungroup
Entity-Related Operation Statement If you are trying to ungroup an entity that has
never been grouped, ProModel ignores the
UNGROUP statement.
Syntax samples
UNGROUP {LIFO}
UNGROUP Components
UNGROUP LIFO
LIFO
Last In, First Out. Starts the ungrouped entities pro-
cessing from last to first, rather than from first to last.
Description If this option is not specified, the ungrouped entities
Separates entities that were grouped with the will be processed FIFO, or First In, First Out.
GROUP statement. Each of the resulting entities
searches ahead in the process list and then from
the beginning of the list until a process is found Explicit Entity Actions
that has been defined for that entity type at the With an UNGROUP, ProModel dissolves the
current location. The first entity processed from temporary shell and divides costs among the
the group takes any resources the group owns. If ungrouped entities (ungrouped entities may
a grouped entity has members that are also include smaller clusters of grouped entities).
grouped entities, only the top level group is
ungrouped with an UNGROUP statement. An Example
additional UNGROUP will ungroup any member
groups.
The example below is the continuation of the GROUP
statement example where EntA, EntB and EntC were
Valid In grouped to form Grp_A. Now the entities are
The operation column of process edit tables only. ungrouped with all of their original properties. (See the
You may not use UNGROUP on conveyors nor at GROUP statement example.)
the end of a queue. UNGROUP may not be used
in combination with COMBINE, CREATE,
UNGROUP, LOAD, UNLOAD, SPLIT AS or
other UNGROUP statements in a processing
logic. It may follow a GROUP statement no more
than once in the same processing logic to allow
batch processing.
ProModel 559
User Guide
Process Table
Entity Location Operation (min)
Grp_A Loc3 UNGROUP
EntA Loc3 USE Res1 FOR 2 min
EntB Loc3 USE Res1 FOR 2 min
EntC Loc3 USE Res1 FOR 2 min
Routing Table
Blk Output Destination Rule Move Logic
See Also
GROUP, LOAD, JOIN, COMBINE, and SPLIT
AS. See “Attributes” on page 217 for more infor-
mation.
560 Chapter 14:
Units()
Units()
General System Function
Syntax samples
UNITS(<location> or <resource>)
PAUSE “There are” $ UNITS(Res1) $ “Res1's in the
system.”
Description
Returns the total units of a location or resource.
Valid In
Any logic and any field except those evaluated
before translation. For a list of fields evaluated
before translation, see “Appendix A” on
page 577.
Components
<location>
The name of the location to examine. You may substi-
tute LOC() for the name of a location.
<resource>
The name of the resource to examine. You may substi-
tute RES() for the name of a resource.
See Also
FREEUNITS() and RESQTY().
ProModel 561
User Guide
Description
Unloads a certain quantity of entities, or a certain Explicit Entity Actions
quantity of those entities depending on a condi- UNLOAD divides up costs and copies statistical
tion. Use UNLOAD to unload entities from a car- information accrued while loaded, to each
rier entity that was previously loaded with unloading entity.
LOAD. The unloaded entities are processed
ahead of the entity which unloaded them. Each
unloaded entity searches ahead in the process list,
Example
and then from the beginning of the list, until a
process is found for that entity type at that loca- The following example is a continuation of the LOAD
statement example and shows how the loaded entity
tion.
(Truck) is unloaded, resulting in the original Truck and
the boxes that were loaded onto it. Boxes continue to
Valid In the next location while Truck is returned to its starting
The operation column of process edit tables only. location, Factory. (See the Load statement example.)
UNLOAD is not valid at conveyors, after routing,
or at the end of a queue. You may not use
UNLOAD in combination with COMBINE,
CREATE, GROUP, UNGROUP, and SPLIT AS
or other UNLOAD in the same process logic. If
the process contains LOAD statements,
UNLOAD can only appear once after all of them.
Components
<expression>
The number of entities to unload. A value of zero is
ignored and a negative value produces an error. If the
quantity specified for unloading is greater than the
562 Chapter 14:
Unload
Process Table
Entity Location Operation (min)
Box Shipping WAIT 2 min
Truck MfgSite
Truck Dock LOAD Attr1 IN 2 Hr
Truck NewYork WAIT T(20,30,60)
UNLOAD 5
Box NewYork
Truck Chicago WAIT T(20,30,60)
UNLOAD 5
Box Chicago
Truck Boston WAIT T(20,30,60)
UNLOAD 5
Box Boston
Routing Table
Blk Output Destination Rule Move Logic
1 Box Dock LOAD 1 MOVE FOR 45
sec
1 Truck Dock FIRST 1 MOVE FOR 10
min
1 Truck NewYork FIRST 1 MOVE FOR 24
Hr
Truck Chicago FIRST MOVE FOR 12
Hr
Truck Boston FIRST MOVE FOR 28
Hr
1 Truck MfgSite FIRST 1 MOVE FOR 24
Hr
1 Box NY_Recv FIRST 1 MOVE FOR 5
min
1 Truck MfgSite FIRST 1 MOVE FOR 12
Hr
1 Box Chi_Recv FIRST 1 MOVE FOR 5
min
1 Truck MfgSite FIRST 1 MOVE FOR 28
Hr
1 Box Bos_Recv FIRST 1 MOVE FOR 5
min
See Also
LOAD, COMBINE, JOIN, GROUP, and
UNGROUP. Also see “Attributes” on page 217
for more information.
ProModel 563
User Guide
Use Valid In
Location processing logic, downtime logic, and
Resource-Related Operation Statement move logic.
Process Table
Entity Location Operation (min)
Client Reception USE Secretary
FOR Dist1()
Client Waiting
Routing Table
Blk Output Destination Rule Move Logic
1 Client Waiting FIRST 1 MOVE FOR 30
sec
1 Client Loan .400 1 MOVE FOR 1
Client Auditor .350 1 MOVE FOR 1
Client Service .250 1 MOVE FOR 1
See Also
GET, JOINTLY GET, and MOVE WITH.
ProModel 565
User Guide
Variable() Example
General System Function .In the example below, parts of different types arrive at
location In_Queue. Each entity type has a unique value
for Attr1 that corresponds to the name-index number of
Syntax samples a variable in the Variables module. Once parts arrive at
In_Queue, they increment the variable specific to that
VARIABLE(<numeric expression>) entity type before routing to the location Process_Loc.
VARIABLE(Attr) = 124
VARIABLE(x) = VARIABLE(y)
Process Table
N=VARIABLE(x) + VARIABLE(y) - 1
Entity Location Operation (min)
All In_Queue VARIABLE(Attr1) =
VARIABLE(Attr1) + 1
Description
Converts a name-index number or integer to a Routing Table
variable name. Use this function when a numeric
Blk Output Destination Rule Move Logic
expression uses a variable whose name-index 1 All Process_Loc FIRST1 MOVE 1
number is stored in an attribute, array, or vari-
able.
See Also
Valid In LOC(), ENT(), and RES().
Any logic.
Please note
Components
<numeric expression>
The name index number for a variable. You can deter-
mine the name-index number associated with a particu-
lar variable by the position of the variable record in the
Variables module.
566 Chapter 14:
View
View Example
General Action Statement You are giving a presentation on the use of simulation
for airport design. Two hours into the model run, you
want to zoom in on the baggage area to show the activ-
Syntax samples ity there. Three hours into the simulation, you want to
zoom out to show the entire airport..You are giving a
VIEW “view name” presentation to management on the factory floor using
simulation. Two hours into the simulation, you want to
VIEW “Cell5” zoom in on a particular cell in the factory to show the
VIEW “View10” activity there. Three hours into the simulation, you
want to zoom out to show the entire factory.
To do this, define two views called Cell1 and Factory
using the Views editor on the View menu. Define an
Description independent subroutine and call it in the initialization
Use this statement to change the view in the Lay- logic using the ACTIVATE statement. Enter the fol-
out window from within your logic. Once the lowing logic in the subroutine:
view has been defined from the View menu in INT X=1
main menu, you can use it in the logic. WHILE X=1 DO
BEGIN
Valid In IF CLOCK(hr) = 2 THEN VIEW “Cell1”
IF CLOCK(hr) = 3 THEN VIEW “Factory”
All logic. WAIT 1 hr
END
Components
<view name>
See Also
The name of the view defined in the Views dialog.
Enclose the name in quotation marks. “Commands” on page 83.
ProModel 567
User Guide
Wait Components
Entity And Resource-Related Operation State- The example below uses the WAIT UNTIL statement
to group a variable quantity of entities. As each EntA
ment
arrives at Loc1, a variable (Total) is incremented to
keep track of the total entities waiting at the location.
Syntax samples The WAIT UNTIL statement causes processing of all
EntA’s to halt at this point until the variable, Var1,
WAIT UNTIL <Boolean expression> reaches or exceeds 500. Then all of the waiting EntA’s
are GROUPed together as a BatchA.
WAIT UNTIL Var1 > 3
WAIT UNTIL Var1 < Attr3 AND Var2 >= 5
Process Table
Entity Location Operation (min)
Description
EntA Loc1 INC Total
Delays processing of the current logic until the WAIT UNTIL Total >= 5
Boolean expression is true. The rest of the model GROUP Total AS Batch
continues to process during the delay. Note that
if the expression is initially evaluated to be false, Routing Table
it is only reevaluated when a location attribute,
Blk Output Destination Rule Move Logic
variable, or array element in the expression
changes. Multiple entities waiting on the same
condition are released one at a time. This allows
See Also
a released entity to change a variable value that
will prevent the other waiting entities from being DO...WHILE, WHILE...DO, and DO...UNTIL.
released.
Valid In
Node entry and node exit logic delays processing
for resources, and location processing logic
delays processing for entities. Independent Sub-
routines. (See “Subroutines” on page 238.)
Components
<Boolean expression>
The condition that must be satisfied to continue pro-
cessing the entity or resource. Elements of this expres-
sion are limited to location attributes, variables, and
array elements.
ProModel 569
User Guide
Warmup Example
General Action Statement Suppose you want to base the warmup period on 2,000
entities being processed rather than on a lapse of time.
You could increment a variable (e.g., Total_Processed)
Syntax samples whenever an entity exited the system. Enter the follow-
ing logic in an independent subroutine activated from
WARMUP the initialization logic:
Please note
Valid In
Any logic.
570 Chapter 14:
While...Do
While...Do Example
General Control Statement The example below shows the arrival logic window for
an entity that arrives every 40 hours to reset the values
of Array1 elements 1 through 100 to 0.
Syntax samples
Description
Repeats a statement or statement block continu-
ously while a condition remains true.
WHILE...DO is an entry-condition loop, meaning See Also
that the loop will not be executed once unless the BEGIN, END, DO...WHILE, and DO...UNTIL.
Boolean expression is true.
Valid In
Any logic.
Components
<Boolean expression>
As long as this expression is TRUE, the loop will con-
tinue. This expression is evaluated for each iteration of
the loop.
<statement block>
The statement or block of statements to execute.
ProModel 571
User Guide
WRITE <file ID>, <string or numeric expression> The number of spaces to save after the decimal point.
{,<maximum digits before decimal>, Use this option to line up any labels appearing after
<digits after decimal>} numbers.
Example
Description
Writes information to a general write file. The The following example uses both WRITE and WRITE-
next item written to the file will appear immedi- LINE to record the time when EntA completes pro-
ately after this item. WRITE always appends to cessing at Loc1 in a general write file called Rpt.
the file unless the file is RESET. This holds true
for multiple replications as well as single, inde-
pendent runs. Any file that is written to with
Process Table
WRITE automatically becomes a text file and
will have an end of file marker attached automat- Entity Location Operation (min)
ically to the end when it is closed. For more flex- EntA Loc1 WAIT N(7.3,.4)
ible WRITE capability, use XWRITE. WRITE Rpt,”EntA Complete at:”
WRITELINE, Rpt CLOCK(min),3,2
WRITE and WRITELINE automatically separate
values by commas Routing Table
Any logic.
See Also
Components XWRITE, WRITELINE, RESET, READ, and
FORMAT(). Also see “External Files” on
<file ID> page 254.
The name of the file as previously defined in the Exter-
nal Files Editor. Please note
<string or numeric expression>
The string or numeric expression to be written to the The sum of the maximum digits before and after
file. In the output file, quotes will automatically be the decimal must be less than 20.
added to string expressions so that most spreadsheet
programs can easily read the file.
572 Chapter 14:
WriteLine
Syntax samples
Example
WRITELINE <file ID>, <string or numeric expres-
The following example uses both WRITE and WRITE-
sion>{,<maximum digits before decimal>, <digits
LINE to record the time when EntA completes pro-
after decimal>}
cessing at Loc1 in a general write file called Rpt.
Description
Process Table
Writes information to a general write file and
starts a new line. WRITELINE always appends Entity Location Operation (min)
to the file unless the file is RESET. Any file that EntA Loc1 WAIT N(7.3,.4)
WRITE Rpt, "EntA Complete at:"
is written to with WRITELINE automatically WRITELINE Rpt, CLOCK(min),3,2
becomes a text file and will have an end of file
marker attached to the end when it is closed. Routing Table
WRITE and WRITELINE automatically separate
Blk Output Destination Rule Move Logic
values by commas
Valid In
See Also
Any logic.
WRITE, RESET, XWRITE, READ, and FOR-
MAT(). Also see “External Files” on page 254.
Components
Please note
<file ID>
The name of the file as previously defined in the Exter- The sum of the maximum digits before and after
nal Files Editor. the decimal must be less than 20.
<string or numeric expression>
The string or numeric expression to be written to the
file. In the output file, quotes will automatically be
added to string expressions so that most spreadsheet
programs can easily read the file.
<maximum digits before decimal>
When writing real numbers, the maximum number of
digits before the decimal. Use this value to line num-
bers on different lines up on the decimal.
ProModel 573
User Guide
Description Valid In
Calls an external subroutine inside a DLL file. Any expression or logic.
XSUB() is perhaps the most powerful statement
in ProModel, because by using it the user can Components
access the entire functionality of any 32-bit Win-
dows programming language such as C, C++,
<file ID>
Delphi, or Visual Basic. XSUB() can be used for
sophisticated file IO and to make simulations The file ID assigned to an external DLL file as defined
interactive. In fact, subroutines called with in the External Files editor. This file should be a 32-bit
XSUB() can do anything that the language they Windows DLL file.
were written in allows. Because of its power, <ordinal function number>
however, XSUB() should be used with caution. The ordinal number of the function inside the DLL.
When called, the simulation is suspended until This function must be exportable. When DLL’s are
the external subroutine finishes execution. compiled, every exported function inside them is num-
bered. The individual functions can then be accessed
The subroutine inside the DLL must have been
by calling the program by number. This field may be
compiled as exportable by a Windows 32-bit
an expression that evaluates to an ordinal function
compiler and have a return type of IEEE format number that is valid inside the DLL. Use an ordinal
double real. XSUB() will copy the parameters function number or the function name.
following the function name to a block of mem-
<function name>
ory, then pass the function a pointer to that block
of memory. The name of the function inside the DLL. This func-
tion must be exportable. Note that when most compil-
The function can take only one parameter: a ers compile DLL’s, they adjust the name of the
pointer to void. But the function may access any functions inside them. The function name inside the
number of parameters through structure overlay- XSUB statement must be the adjusted name, not the
ing. The function should define a structure to original name.
match the type and order of the parameters, and Most C compilers add an underscore to the function
assign the pointer just passed to a pointer to that name; so a function called “Test1” would be compiled
574 Chapter 14:
Xsub()
Xwrite Example
General Operation Statement The following example uses XWRITE to record the
time each Box completes processing at location Ship.
Syntax samples
Valid In
Any logic.
Components
<file ID>
The name of the file as previously defined in the Exter-
nal Files Editor.
<string or numeric expression>
The string expression to be written to the file.
576 Chapter 14:
Xwrite
ProModel 577
User Guide
Appendix A
Valid Expression and Statement the edit fields in this manner and shows the
Groups by Field expression and statement groups that can be used
in each field. Fields are classified as either
When running a simulation, expressions and expression fields or logic fields. Fields not listed
statements are either evaluated 1) once at transla- on this chart are either menu fields or expression
tion (before initialization logic and before any fields that accept only numbers.
events are created) or 2) continuously during the
simulation run. The following chart categorizes
Field Name
(evaluated at translation) Field Type 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
Variables
Initial Value Exp • •
Function Table
Dependent Value Exp • •
Independent Value Exp • •
Simulation Options
Warm-up Hours Exp • •
Run Hours Exp • •
Replications Exp • •
Interval Length Exp • •
Path Networks
Node Capacity Exp • •
Segment Distance Exp • •
Speed Factor Exp • •
Resources
Resource Units Exp • •
Locations
Location Capacity Exp • •
Conveyor
Length Exp • •
Speed Exp • •
Queue
Queue Length Exp • •
580
Field Name
(evaluated at translation) Field Type 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
Shifts
Shift Start Time Exp • •
Entities
Entity Length Exp • •
Entity Width Exp • •
ProModel 581
User Guide
Field Names
(during simulation) Field Type 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
Logic
Initialization Logic Logic • • • •
Termination Logic Logic • • • •
Entities
Speed Exp • • • • • • •
Path Networks
Traveling Time per
Path Segment Exp • • • •
Resources
Acceleration Exp • • • •
Deceleration Exp • • • •
Empty Load Speed Exp • • •
Full Load Speed Exp • • • •
Pickup Time Exp • • • • • • •
Deposit Time Exp • • • • • • •
Node Entry Logic Logic • • • • • • • •
Node Exit Logic Logic • • • • • • • •
Location Clock DT
First Occurrence Exp • • •
Frequency Exp • • •
Priority Exp • • •
Clock DT Logic Logic • • • • • • • • •
Location Entry DT
First Occurrence Exp • • •
Frequency Exp • • •
Entry DT Logic Logic • • • • • • • • •
Location Usage DT
First Occurrence Exp • • •
Frequency Exp • • •
Priority Exp • • •
Usage DT Logic Logic • • • • • • • • •
582
Field Names
(during simulation) Field Type 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
Location Setup DT
Setup DT Logic Logic • • • • • • • • • • •
Resource Clock DT
First Occurrence Exp • • •
Frequency Exp • • •
Priority Exp • • •
Clock DT Logic Logic • • • • • • • • •
Resource Usage DT
First Occurrence Exp • • •
Frequency Exp • • •
Priority Exp • • •
Usage DT Logic Logic • • • • • • • • •
Operation
Operation Logic Logic • • • • • • • • • • • • • •
Preemption
Preemption Logic Logic • • • • • • • • • • • • • •
Routing
Priority for Destination Exp • • • • • • •
Destination Exp • • • • • • •
Entity Output Quantity Exp • • • • • • •
User Condition Rule Exp • • • • • • •
Move Logic Logic • • • • • • • • • • • • • •
Arrivals
First Occurrence Exp • • •
Frequency Exp • • •
Occurrences Exp • • •
Qty of Each Arrival Exp • • •
Arrival Logic Logic • • • • • • • • •
Shift Assignments
Priorities Exp • •
Pre-Off Shift Logic Logic • • • • • • • •
Off Shift Logic Logic • • • • • • • • • •
ProModel 583
User Guide
Field Names
(during simulation) Field Type 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
Pre-Break Logic Logic • • • • • • • •
Break Logic Logic • • • • • • • • • •
Subroutines
Interactive Subroutines Logic • • • • • •
Debugger
Debug Condition Exp • • • • • •
584
Nodes Subtable
Variables Table
• Coordinates • Variable name
• Name • Type
• Capacity • Initial value
• Stats
Arrivals Table • Stats basis
• Entity name • Notes
• Location name
• Quantity of each arrival Arrays Table
• Qty each (cycle table name) • Array ID
• First time • Dimensions
• Number of occurrences • Type
• Frequency of arrivals • Import File
• Arrival logic • Export File
• Disable flag • Notes
Suggested readings
To expand your knowledge and understanding of
simulation, its practices, and its applications,
consider the following texts.
Harrell, Charles; Ghosh, Biman; Bowden, Royce.
2003. Simulation Using ProModel. 2nd Edi-
tion; McGraw-Hill, Inc.
Glossary
Cost Statistics Help button is shown, you may select Help from
the main menu.
Statistics collected on a cost basis (e.g., total cost
and average, non-use cost). You have control of
how ProModel collects these statistics. You may Edit Tables
collect information through statements, base An edit table is a powerful editing window used
them on the system clock, or use a combination to add, delete and edit modeling and language
of both. elements such as entities or locations. It is simi-
lar to a spread sheet editor in that it provides
Counter maximum visibility of element lists while still
allowing each field of a particular element to be
A counter is a location or variable graphic used to directly edited.
display the contents of a location or the current
value of a variable during animation. A counter
consists of a frame, a specification of the digit File Name
color, and the font. If the number being dis- A file name is any name used to identify a file.
played requires more digits than the maximum File names may include a path (e.g.,
specified, the counter simply expands to the left. C:\REPORTS\DATA) as well as a terminating
ProModel displays real values showing only 2 period with up to three additional characters as an
decimal places. For example, a variable equal to extension (e.g., DATA.TXT). File names are case
4.8936 would display 4.89 on the screen. insensitive.
Parameter Preemption
Parameters are variables used in a subroutine Preemption is the act of bumping or replacing an
which are local to or have scope only within the activity currently using a location with an activity
subroutine. Arguments or numeric expressions of a higher preemptive priority. ProModel han-
passed to a subroutine are assigned to the param- dles preempted activities differently depending
eters for use inside the subroutine. on the location preempted.
For locations, ProModel puts the preempted
Park Search activity (any current entity or downtime) in a pre-
A park search defines the sequence where a emption list for that particular location until it can
resource looks for nodes at which to park after resume its activity at that specific location unit.
completing a task assuming no other tasks are
waiting. Real Number
A real number is a number ranging from 1.7 X
Paths 10 -308 to 1.7 X 10 +308. Real values may not
Paths define the course of travel for entities and include commas, so enter the number 5,380.5 as
resources between locations. You may define a 5380.5.
path for a specific entity and routing, or a net- Examples: -2.87563, 844.2, 65.0
work of paths shared by several resources and
entities. Define movement along a path in units
of time, or speed and distance.
Reference
A reference is a name entry in an edit field that
Path networks consist of nodes connected by path
references a defined model element. If you
segments. Any node may have multiple input
change the name of the model element, all refer-
and output segments.
ences to the element automatically change to
reflect the change in name.
Positioning Spot
An entity spot is simply a graphic position rela- Region
tive to a location or resource and displays any
A region is a rectangular area on the graphic lay-
entities occupying the location or resource.
out that represents a location. Defining a region
For any given location you may place one or is useful when you import a layout from a CAD
more entity spots on the graphics layout. Entities drawing and you want to designate a portion of
to enter a location appear on the first available the layout to represent a particular processing
entity spot in the order they are placed. If an location. A region should have one or more
entity enters a location and all the entity spots are entity spots associated with it in order to be
filled, the entity will appear on the last entity meaningful.
spot.
For resources, place the entity spot where it Resource
appears when a resource carries the entity. A resource is a person or item used to perform an
operation or activity. Common resources include
human operators, inspectors, forklifts, and other
594
vehicles. Use resources used to perform opera- 1. Click on the scroll arrows at either end of the
tions on entities at a location, transport entities scroll bar for incremental scrolling.
between locations, or perform activities on a 2. Click on either side of the scroll box for
location during a downtime. scrolling one window at a time.
3. Drag the scroll box with the mouse to scroll
Resource Point to a specific position.
Text
Text refers to words that you wish to display on
the graphic layout. Each specification of text has
an associated font, color, frame, and orientation
(up, down, left or right). You can rotate only
true-type fonts.
Time Statistics
Statistics collected on a time basis (e.g., time in
system, average minutes per entry, and average
contents). You cannot control how ProModel col-
lects these statistics since ProModel bases them
solely on the system clock.
Work Search
A work search defines the sequence in which a
resource looks for work at locations where work
may wait to be performed.
596
Bibliography
Carson, J. S. “Convincing Users of Model's Law, Averill M. “Designing and Analyzing Sim-
Validity is Challenging Aspect of Modeler's ulation Experiments,” Industrial Engineer-
Job,” Industrial Engineering, June 1986, p. ing, March 1991, pp. 20-23
77.
Neelamkavil, Francis Computer Simulation and
Conway, Richard, William L. Maxwell, and Modeling, John Wiley & Sons, 1987.
Steven L. Worona, User's guide to XCELL
Factory Modeling System, The Scientific Pritsker, Alan B. and Claude Dennis Pegden,
Press, 1986, pp 65-66. Introduction to Simulation and SLAM, John
Wiley & Sons, 1979.
Gordon, Geoffrey, System Simulation, 2nd ed.,
Prentice-Hall, 1978. Schlesinger, S. “Terminology for Model Credibil-
ity,” Simulation, 32(3), 1979, pp.103-104.
Harrell, Charles; Ghosh, Biman; Bowden, Royce.
2003. Simulation Using ProModel. 2nd Edi- Shannon, Robert E., Systems Simulation: The
tion; McGraw-Hill, Inc. Art and Science, Prentice-Hall, 1975.
Harrell, Charles R. and Kerim Tumay, Simulation Thesen, Arne and Laurel E. Travis, Simulation
Made Easy, Industrial Engineering Press, For Decision Making, West Publishing Com-
1995. pany, 1992.
Hoover, Stewart V. and Ronald F. Perry, Simula- Tumay, Kerim, Business Process Reengineering
tion: A Problem Solving Approach, Addi- Using Simulation, Autofact Workshop,
son-Wesley, Reading Massachusetts, 1990.
Index
L draw 316
styles 309
background graphics 214
Labels 76 LN() 498
add to gauge or tank 181 LOAD 109, 177, 221, 226, 279, 283, 375, 396, 414, 449, 453,
text 94 483, 499, 549, 558, 561, 578
Language elements Load
character strings 393, 397 delivery time 270
keywords 393, 395 jumping 272
names 393, 394 overlap 272
conventions 394 rate capacity 270
numbers 393, 396 spacing 272
converting between numeric types 397 LOC() 90, 151, 396, 397, 402, 457, 461, 474, 501, 517, 544,
integers 396 560, 577
name-index 396 Local find and replace 303
real numbers 396 Local variable 578
operators 393, 398 declaration statements
comparison 398 int 492
mathematical 398 real 529
precedence 398 Local variables 225
relational 398 Location
types of 393 attributes 577
Last in, first out location-specific system functions 577
LAST() 497, 577 location() 503
Layout LOCATION() 296, 298, 445, 503, 577
printing a layout 67 Locations 47, 90
settings 80, 88 accessing 90
background color 80, 81 add mode 94
grid settings 80, 81 adding symbol to existing location 94
routing path color 80, 82 attributes 218
window 49 capacity 91, 100
Leading bridge 265 maximum 91
Length conveyor/queue 94
conveyor 99 cost 175, 178
Less than 398, 400 costing
or equal to 398, 400 general statistics report 374
Level counter 94, 95
of detail 28 create 90
tank 181 define 49, 90
Library multiple locations 92
new 314 multi-unit locations 101
Library graphic 95 new location graphically 92
see glossary 592 delete
License key location 93
transfering 23 location graphic 93
LIFO 558 destination
see locations, rules processing 151
Line display
change line or border style 309 information during run time 86, 354
color 310 location name 95
background graphics 214 downtimes 91, 101
define 323 called 105
612
records Queue-up
edit 71 bridge 266
routing conditions 265
adding additional blocks 155 situations 265
block number 149 unrealistic 265
edit table 145, 149 Queuing 270
entity to exit 155
path editing 154
rules 151 R
view routing button 155
tools window 145
RAND() 55, 526
using all entity type 147
RANDOM 418
Processing time
Random
using entity attributes 276
numbers 258
ProClare 329
streams 43
Product support 4
Rate of flow 182
Program defaults 584
Rate, tank flow 182, 193, 195
default values table 584
RDB files 257
Progressive refinement 35
RDT files 257
Promodel Player
RDW files 257
promodel player 334
READ 448, 527, 578
promodel player gold 335
Read data 254
PROMPT 524, 578
REAL 223, 225, 529, 578
ProSetter 330
Real number
Protect model data 68
see glossary 593
Pull systems
Real numbers 396
creating 282
REAL() 530
send statement
Recharging strategies 274
pull systems 282
Reclaim trigger events 264, 267
steps to build 282
Record
types of 282
append
to table 71
copy 71
Q information 71
between records 71
Quantity 152 delete
Queue 94, 97 from a table 70
by type 110 insert in a table 71
define 97 move in a table 71
color 97 paste 71
drawing 97 Rectangle
entity preemption 97 draw 318
first in, first out (fifo) Reference
highest attribute value 110 see glossary 593
last in, last out (lifo) view 79
lowest attribute value 110 Refinement, progressive 35
move 97 Refresh layout 83, 88
no queuing 110 Region
run-time visibility 97 see glossary 593
style 97 Registration
width 97 network installation 23
ProModel 619
User Guide
Snap basic 91
lines to border 155 cost 591
to grid 76, 77, 87 displaying on screen 281
Snap to grid system throughput 281
off 272 total system time for entities 281
on 272 none 91
SOUND 548, 578 observation-based 224
Spacing resource 269
load 272 time 595
Speed time series 91
and distance 118 time-weighted 224
bridge 261 view 59
control bar 57 Status
conveyor 100, 270 light 94, 354
crane bridge 265 place on icon 321
factor 120 see glossary 594
hoist 261 Steady-state 37, 40, 41
horizontal 275 simulation 39, 40, 42
simulation Step
run-time control 359 back 322
traveling empty/full 138 front 322
vertical 275 trace 58
SPLIT AS 97, 98, 112, 149, 150, 151, 178, 218, 373, 449, 453, STOP 552, 578
483, 499, 549, 561, 578 Stream, distributions 427
Spreadsheet Streams 258
external file 578 accessing 258
SQRT() 551 definition 258
Square edit table 258
draw 318 example 259
Square root 551 multiple 44
Stage one random number 43, 258
pre-analysis 361 usage 258
Stand-alone PC String
setup and installation 15 see glossary 594
Start new block 152 Strings
Stat::Fit 299 character 393
State expressions 399, 402, 578
initial 38 char() 402
terminating 38 character strings 402
State Chart 382 concatenation operators 402
Statements 426 ent() 402
and expression groups 577 format() 402
blocks 426 loc() 402
control 426 numeric expressions 402
cost related 489, 490, 491 res() 402
entity-related operation 426 functions
general action 426 char() 446
nested 289 format() 471
new 357 Submodel
resource-related 426 merge 64
Static resources 129 tank 180
Statistics 91 import 180
624
reference
in model logic 79
X
remove 78
rename 79 XSUB() 238, 573, 577
routing 155 external subroutine calls 573
select 77 XWRITE 255, 448, 471, 571, 575, 578
view 78
with shortcut key 78
set view 79 Z
text 66
file 57 Zero units 127
Views Zone
defining 77 active operation 268
selecting 78 blocking 273
claim examples 263
claims 263
W extended movement 263
Zoom 57, 58, 77, 79, 86, 88
WAIT 134, 149, 166, 167, 175, 291, 293, 296, 297, 348, 375, animation 353
431, 476, 554, 567, 578 custom 79
WAIT UNTIL 109, 140, 166, 182, 226, 232, 296, 297, 342, to fit layout 77, 86, 88
374, 375
WAIT...UNTIL 431, 568, 578
WARMUP 342, 569, 578
Warm-up period 40
determine 40
initial 41
Weeks 401, 447, 462
Weibull distribution 427
What’s new
features
activex objects 586
statements and functions 357
WHILE...DO 229, 234, 289, 431, 437, 492, 570, 578
Window menu 84
description 62
during run-time 358
WIP 281, 350, 544
WK 401, 447, 462
WMF
importing a background graphic 213
Work search 128, 138
and park search 268
edit table 139
exclusive 268
non-exclusive 268
see glossary 595
WRITE 255, 448, 571, 575, 578
Write data 254
WRITELINE 255, 448, 572, 575, 578
WWW.PROMODEL.COM 61
628