ProModel User Guide PDF
ProModel User Guide PDF
1/06
ProModel iii
User Guide
Table of Contents
Introduction ...................................................................... 1
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 ele-
Welcomes you to ProModel and provides infor- ments
mation on getting started with the model building Brings you face to face with basic modeling com-
process. ponents. Discussion revolves around the nuances
of creating and working with locations, entities,
Chapter 2 path networks, resources, processing records,
Installation and Registration arrivals, shifts, costs, background graphics, and
more.
Provides step-by-step instructions on how to
install ProModel.
Chapter 6
Building the Model: advanced
Chapter 3 elements
Planning the Model
Advanced elements ensure that the models you
Introduces you to the theory behind simulation create reflect the exact behavior of your system.
modeling and gives an overview of model build- Contributing elements include attributes, vari-
ing procedure. This chapter outlines six steps to ables, arrays, spreadsheets, macros, run-time
help you plan and create a successful, valid interfaces, subroutines, arrival cycles, table func-
2
About the User Guide
Chapter 8 Chapter 12
Using Auxiliary Tools Routing Rules
Auxiliary tools allow you to work with many Provides syntax and examples for the rules you
aspects of your model. You may create and mod- will use to route between locations in the model.
ify graphics, search for expressions, or examine
which statistical distributions best suit your mod- Chapter 13
eling needs.
Logic Elements
Chapter 9 Introduces the different types of functions and
statements available to use in building logic for
Running the Model your model and identifies where you may use
Running the model is the most exciting part of them.
the modeling process. This chapter discusses the
various conditions under which you may run a Chapter 14
model and how to ensure that the model contains
Statements and Functions
no logical errors.
Provides syntax and examples for the statements
Chapter 10 and functions you will use to apply intelligence
and decision-making capabilities to your model.
Reports and Graphs
With the simulation complete, you are ready to Appendix A
examine the results from the model. Options
available include reports, graphs, spreadsheets, Presents a categorized list of all expressions,
and customized output templates. statements, and functions with a table identifying
which fields evaluate at translation and which
evaluate continuously.
Appendix B
Gives instructions for the Classic Output Viewer
ProModel 3
User Guide
Bibliography Keyboard
Referenced materials and suggested readings. 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
letters “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:
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 347.
model. The example below shows a brief portion simulation, see “Reports and Graphs” on
of a trace window. page 373.
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:
Pentium 4 or better
1 GB RAM
1. Start Windows.
1 GB Free Disk Space
SVGA Monitor (1280 x 1024 x 32 bit color) 2. Insert the CD-ROM.
CD ROM
Sound card
Internet access
Mouse
Windows 2000 or Windows XP
16 Chapter 2:
Installation Procedure for a Stand-alone PC
3. The ProModel Setup program will open and choose a new directory. When you have
automatically, and display the following win- chosen the destination directory, click Next.
dow.
9. The next dialog allows you to have the
Setup program create backups of any files
that might be replaced during the installa-
tion. This is helpful if you are installing this ver-
sion of the ProModel software on a computer
that already has ProModel installed on it. If
hard drive space permits, it is recommended
that you allow the Setup program to backup
previous files. When you are ready to con-
tinue with the installation, click Next.
10. The Setup program will add a new Win-
dows Program group containing ProModel
program icons to the Program Manager.
When you have selected where you want the
Program icons to appear, click Next.
Please note 11. The Setup program is now ready to install
ProModel on your computer. If you wish to
If the Setup Program did not open automatically, make changes to the options you have previ-
select Run... from the Windows Start menu. Type ously selected, click the Back button to return
to any point in the installation you wish. Other-
x:\install.exe (where x is the CD-ROM drive let-
wise, click Next to allow the Setup program to
ter) and press ENTER. The proper dialog will the install ProModel.
appear
1. Start Windows.
2. Insert the CD-ROM.
3. The ProModel Setup program will open
automatically, and display the following win-
dow.
8. Select the type of hardware key you are When you have selected where you want the
using on the network server, and click Next. Program icons to appear, click Next.
13. The Setup program is now ready to install
ProModel on your computer. If you wish to
make changes to the options you have previ-
ously selected, click the Back button to return
to any point in the installation you wish. Other-
wise, click Next to allow the Setup program to
install ProModel.
Install Program Files on File Server: 6. From the dialog that appears, select Net-
work Package. The dialog will then appear as
below:
1. Start Windows.
2. Insert the CD-ROM.
3. The ProModel Setup program will open
automatically, and display the following win-
dow.
Please note
ing network protocols: IPX, TCP/IP, and Net- ter) and press ENTER. The proper dialog will the
BEUI. If the security server is not functioning, appear
ProModel will start as a limited run-time version.
Please note
4. Click Next to proceed with the installation
If you are running a network version of Pro- 5. Review the License Agreement. If you wish
Model on a routed network and your license key to accept the agreement and continue with
the installation, click Next.
server and workstations are located on different
sub-nets, see “Find a License Key Server on a 6. From the dialog that appears, select Net-
Routed Network” on page 23. work Package. The dialog will then appear as
below:
1. Start Windows.
2. Insert the CD-ROM.
3. The ProModel Setup program will open
automatically, and display the following win-
dow.
Please note
9. The Install Wizard for the NetHASP License Start the License Manager Soft-
Manager will appear. Click Yes, and follow
ware:
the on-screen directions to install the man-
ager. If you click No, you will have to set up
the license server manually, which is 1. From the directory to which you installed
described in the next section. the license server, run NHSRVW32.EXE. A win-
dow will appear and show the network proto-
cols to which the license manager will listen
for license requests.
The Setup program may require you to reboot
your computer during the setup. If you do so, the
Setup program will automatically launch after the
reboot, and the installation will continue.
You need to install the device driver only once. You need to install the device driver only once.
However, you must launch the license manager However, you must launch the license manager
program each time you reboot the key server program each time you reboot the key server. To
machine. To automatically start the license man- automatically start the license manager each
ager each time you reboot the system, create and time you reboot the system, create and place an
place an icon for NHSRVW32.EXE in the work- icon for NHSRVW32.EXE in the workstation’s
station’s startup folder. 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. Find a License Key Server on a
Routed Network
Set Up License Server Manually In order for a workstation to run the network ver-
After successfully running the setup for the sion of ProModel properly, the workstation must
license server, if you chose to manually install check out a license from a license server. To
the device driver for the security key and launch make a license request, the workstation sends a
the license manager software, follow the steps broadcast message out on the network and awaits
below. a response from the license server. If the license
server and the workstation running ProModel are
on the same sub net of a routed network (or on
Install the Device Driver:
the same network of a non-routed network), the
license server receives the request and responds.
1. Open a DOS box and run HINSTALL -i from
Due to the nature of routed networks, if the
the directory to which you installed the
license server and workstation running ProModel
license server.
are not on the same sub net of a routed network,
2. After you receive a confirmation that the the key server will not receive the license request
driver installed successfully, reboot the work- broadcast.
station
To resolve this problem, the workstation must
send a license request directly to the computer on
24 Chapter 2:
Registering ProModel
When you have entered your information and See “How to Register without a Serial Num-
clicked next, you will be prompted to enter your ber” on page 25.
Serial Number. 3. When the serial number has been success-
fully sent to the ProModel Corporation server,
you will be given a ProModel username and
password. Record this information, since you
will use it to obtain updates to ProModel in
the future.
4. Check the “I have recorded this informa-
tion for future use” box, and then click Exit to
finish the registration.
An email message will be composed using another. Since you may only have one installa-
your computer’s default email application, tion of ProModel for every software key, or
and you can then choose to send it. license, you have purchase, PROMODEL pro-
While waiting for a response from ProModel vides you with a utility program, LicenseMan-
Support, you may leave the Registration dia- ager, to move your license, while keeping your
log open, or close it until you receive your software key valid.
response.
The LicenseManager is a stand alone program,
The reply you receive from ProModel Support which can be accessed through the Windows
will contain a License Key code. If you have
Start menu.
closed ProModel, relaunch it, and return to
the Phone or Email Registration window. In
the “Step 2: Enter License Key” area, enter Moving a License
the License Key code that is in the email reply A license may be moved from one computer to
from ProModel Support. another by moving its software key. When a soft-
You may then click “Register” to complete ware key is moved using the LicenseManager,
the registration process. the original computer will no longer run the full
3. If you would like to register over the phone, version of ProModel.
call ProModel Support at (888) PROMODEL. A In preparation of moving a license to another
ProModel Support representative will guide computer, be sure to install ProModel on the
you through the rest of registration process.
computer to which you want to move the license.
3. If you have multiple licenses, click on the When you terminate a license, the LicenseMan-
name of the license you want to move. Click ager will give you a termination code, which is
Move. The following dialog will appear. your proof to PROMODEL that you have perma-
nently removed the software key from you com-
puter. Only then can PROMODEL issue you a
new software key for any current license you may
have.
Terminating a License
Terminating a license permanently removes the
valid software key from a machine running Pro-
4. Click Yes.
Model. Terminating a license may be necessary
to receive a new software key from PRO-
MODEL.
28 Chapter 2:
Registering ProModel
5. WARNING: Completing the next step will •Upon completion of the main ProModel 6.0
permanently remove your software key from professional install, you will have the option
your computer. to check for updates by selecting the "Check
6. You will once again be prompted to con- for updates to ProModel" option on the final
tinue with the termination. Click OK. Your soft- installation screen.
ware key will be terminated, and the •Or, you may launch the Update client by
following dialog will appear. selecting "Check for ProModel Update"
from the Start Menu’s PROMODEL Icon
group.
It is recommend that you check regularly for
updates to 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:
ProModel 33
User Guide
•Performance Analysis How well does the models need only provide a quantitative answer.
system perform under a given set of circum- Others require realistic animation to convince a
stances in all measures of significance (utili- skeptical customer. Some models are intended
zation, throughput, waiting times, etc.)? for use by only the analyst. Other models are
•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 sequence. Other models are relied upon to make
of meeting specific performance require- major financial decisions.
ments (throughput, waiting times, etc.), and, Realizing the objectives of a simulation should
if not, what changes (added resources or consider both the purpose as well as the intended
improved methods) are recommended for use of the model, the following questions should
making it capable? be asked when defining the objectives of the
•Comparison Study How well does one study:
system 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
performance measures, and how influential be 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
must be conducted. It does little good if simula-
•Constraint Analysis Where are the con-
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
solution, or if the cost to find the solution exceeds
ing or eliminating those constraints?
the benefit derived. Objectives need to be tem-
•Communication Effectiveness What vari-
pered by the constraints under which the project
ables and graphic representations can be
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
impediment. If no deadlines or other constraints
34 Chapter 3:
Steps for Doing Simulation
are established, there is a danger of getting too Scope The scope refers to the breadth of the
involved and detailed in the simulation study and model or how much of the system the model will
run the risk of “paralysis from analysis.” The encompass. Determining the scope of the model
scope of any project has a tendency to shrink or should be based on how much bearing or impact
expand to fill the time allotted. a particular activity has on achieving the objec-
tives of the simulation. A common tendency is to
In identifying constraints, anything that could
model the entire system, even when the problem
have a limiting effect on achieving the desired
area and all relevant variables are actually iso-
objectives should be considered. Specific ques-
lated within a smaller subsystem. If, for example,
tions to ask when identifying constraints for a
the objective is to find the number of operators
simulation study include the following:
required to meet a required production level for a
•What is the budget for doing the study? machining cell, it is probably not necessary to
•What is the deadline for making the deci- model what happens to parts after leaving the
sion? cell.
•What are the skills of those doing the study? The following figure illustrates how the scope of
•How accessible is the input data? the model should be confined to only those activ-
•What computer(s) will be used for the study? ities whose interactions have a direct bearing on
the problem being studied. Upstream and down-
Preparing a Simulation stream activities that do not impact the perfor-
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.
ProModel 35
User Guide
Unlike the model scope which affects only the sometimes has to be sacrificed if reliable infor-
size of the model, the level of detail affects model mation is simply unavailable such as when mod-
complexity as well as model size. Determining eling a completely new system.
the appropriate level of detail is an important
The required degree of accuracy can have a sig-
decision. Too much detail makes it difficult and
nificant impact on the time and effort required to
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
One to One
Correspondence nature of the alternative solutions to be evaluated
should be planned from the outset in order to
Minimum
Required
ensure that adequate time is allotted. This deci-
sion is often influenced by the deadline con-
Level of straints of the study. Where alternatives with only
Detail
slight differences are to be evaluated, a base
model can be developed requiring only minor
modifications to model each alternative. If alter-
Model Development Time
native configurations are significantly different,
Effect of Level of Detail on Model Develop- it may require nearly as much effort modeling
ment Time each configuration as it does developing the ini-
tial model.
For studies in which improvements to an existing
The level of detail is determined largely by the system are being considered, it is often helpful
degree of precision required in the output. If only and effective to model the current system as well
a rough estimate is being sought, it may be suffi- as the proposed system. The basic premise is that
cient to model each activity by its time, rather you are not ready to make improvements to a sys-
than specific details making up the activity. If, on tem until you understand how the current system
the other hand, details such as downtimes or operates. Information on the current system is
move times have an appreciable effect on the out- easier to obtain than information on areas of
come of the model, they should be included. change. Once a model of the current system is
built, it is often easier to visualize what changes
Degree of Accuracy The degree of accuracy need to be made for the modified system. Both
pertains to the correctness of the data being used. systems may even be modeled together in the
For some models or activities, the information same simulation and made to run side by side.
need not be as accurate or exact as it does for oth- During the final presentation of the results, being
ers. The required degree of accuracy is deter- able to show both “as is” and “to be” versions of
mined by the objectives of the study. If the the system effectively demonstrates the impact
decision is important or a comparison is close, changes can have on system performance.
greater accuracy may be required. Accuracy
36 Chapter 3:
Steps for Doing Simulation
Form of Results The form in which the results the cost of doing the project outweighs the antici-
are to be presented can significantly affect the pated benefits, either an alternative solution may
time and effort involved in the simulation study. need to be explored or the objectives may need to
If detailed animation or an extensive report is be modified to cut down on the level of effort
expected, the project can easily stretch on for required.
several weeks after the experimental phase has
been completed. Many times the only result
required is a simple verification of whether a sys- Step 2: Defining the System
tem is capable of meeting a production require- With clearly defined objectives and a well orga-
ment. In such cases, a simple answer will suffice. nized plan for the study, the system that will be
simulated can begin to be defined in detail. This
Developing a Budget and can be viewed as the development of a concep-
Schedule tual model on which the simulation model will be
based. The process of gathering and validating
With objectives and constraints clearly defined system information can be overwhelming when
and a specification prepared identifying the work faced with the stacks of uncorrelated data to sort
to be performed, a budget and schedule should be through. Data is seldom available in a form that
developed projecting the expected cost and time defines exactly how the system works. Many data
for completing the simulation project. Obviously, gathering efforts end up with lots of data but very
the time to perform a simulation project will vary little useful information.
depending on the size and difficulty of the
project. If data is not readily available, it may be Data gathering should never be performed with-
necessary to add several additional weeks to the out a purpose. Rather than being haphazard, data
project. A small project can take two to four gathering should be goal oriented with a focus on
weeks while large projects can take two to four information that will achieve the objectives of the
months. A simulation schedule should be based study. There are several guidelines to keep in
on realistic projections of the time requirements mind when gathering data.
keeping in mind the following: •Identify cause-and-effect relationships
•Defining the system to be modeled can take It is important to correctly identify the
up to 50% of the project time. causes or conditions under which activities
•Model building usually takes the least are performed. In gathering downtime data,
amount of time (10 to 20%). for example, it is helpful to distinguish
•Once a base model is built, it can take sev- between downtimes due to equipment failure
eral weeks to conduct all of the desired or personal emergencies and planned down-
experiments, especially if alternative designs times for break. Once the causes have been
are being compared. established and analyzed, activities can be
properly categorized.
While it may have initially been determined that
simulation is a suitable tool for achieving the •Look for key impact factors Discrimina-
objective, the decision to use simulation may tion should be used when gathering data to
need to be reconsidered in light of projected cost avoid wasting time examining factors that
and time estimates. Simulation may be a good have little or no impact on system perfor-
solution to the problem at hand, but if the time or mance. If, for example, an operator is dedi-
ProModel 37
User Guide
cated to a particular task and, therefore, is about the nature of the activity being per-
never a cause of delays in service, there is no formed, but only the impact that the activity
need to include the operator in the model. has on the use of resources and the delay of
Likewise, extremely rare downtimes, negli- entity flow. For example, the actual opera-
gible move times and other insignificant or tion performed on a machine is not impor-
irrelevant activities that have no appreciable tant, but only how long the operation takes
effect on routine system performance may be and what resources, if any, are tied up during
safely ignored. the operation. It is important for the modeler
to be constantly thinking abstractly about the
•Distinguish between time and condition system operation in order to avoid getting
dependent activities Time-dependent too caught up in the incidental details.
activities are those that take a predictable
amount of time to complete, such as cus- •Separate input variables from response
tomer service. Condition-dependent activi- variables Input variables in a model define
ties can only be completed when certain how the system works (e.g., activity times,
defined conditions within the system are sat- routing sequences, etc.). Response variables
isfied. Because condition-dependent activi- describe how the system responds to a given
ties are uncontrollable, they are set of input variables (e.g., work-in-process,
unpredictable. An example of a condition- idle times, resource utilization, etc.). Input
dependent activity might be the approval of a variables should be the focus of data gather-
loan application contingent upon a favorable ing since they are used to define the model.
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.
•Focus on essence rather than sub- •Convert data into a useful form.
stance A system definition for modeling •Document and approve the data.
purposes should capture the key cause-and- Each of these steps is explained on the following
effect relationships and ignore incidental pages.
details. Using this “black box” approach to
system definition, we are not concerned
38 Chapter 3:
Steps for Doing Simulation
Determining Data Requirements guish the way in which entities of the same
type are processed or routed?
The first step in gathering system data is to deter- 2. What are the route locations in the system
mine what data is required for building the (include all places where processing or queu-
model. This should be dictated primarily by the
ing occurs, or where routing decisions are
scope and level of detail required to achieve the
made) and what are their capacities (i.e., how
model objectives as described earlier. It is best to
many entities can each location accommo-
go from general to specific in gathering system
date or hold at one time)?
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
In defining the basic flow of entities through the logic that takes place)?
system, a flow diagram can be useful as a way of 6. Where, when and in what quantities do enti-
documenting and visualizing the physical flow of ties enter the system (define the schedule,
entities from location to location. Once a flow interarrival time, cyclic arrival pattern, or
diagram is made, a structured walk-through can condition which initiates each arrival)?
be conducted with those familiar with the opera- 7. In what order do multiple entities depart
tion to ensure that the flow is correct and that from each location (First in, First out; Last
nothing has been overlooked. The next step in, First out)?
might be to define the detail of how entities move 8. In situations where an output entity could be
between locations and what resources are used routed to one of several alternative locations,
for performing operations at each location. At how is the routing decision made (e.g., most
this point it is appropriate to identify location available capacity, first available location,
capacities, move times, processing times, etc. probabilistic selection)?
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)?
1. What types of entities are processed in the 11. How do resources move from location to
system and what attributes, if any, distin- location to perform tasks (define either in
terms of speed and distance, or time)?
ProModel 39
User Guide
assumptions where complete or accurate infor- dard theoretical distribution is to summarize the
mation is lacking. data in the form of a frequency distribution that
can be used directly in the model. A frequency
Many assumptions are only temporary until cor-
distribution is sometimes referred to as an empir-
rect information can be obtained or it is deter-
ical or user-defined distribution.
mined that more accurate information is
necessary. Often, sensitivity analysis, in which a Whether fitting data to a theoretical distribution,
range of values is tested for potential impact, can or using an empirical distribution, it is often use-
give an indication of just how accurate the data ful to organize the data into a frequency distribu-
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
Time Number of Cumulative
“most-likely-case” using a best-estimate value. (days) Observations Percentage Percentage
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
phenomena must be fitted to some standard, theo- 7-8 5 3.3 96.1
retical distribution such as a normal or exponen- 8-9 4 2.6 98.7
tial distribution (Law and Kelton, 1991), or be 9 - 10 2 1.3 100.0
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
Distribution Fitting To define a distribution using determining the interval or cell size, the best
a theoretical distribution requires that the data, if approach is to make sure that enough cells are
available, be fit to an appropriate distribution that defined to show a gradual transition in values, yet
best describes the variable. ProModel includes not so many cells that groupings become
the Stat::Fit distribution fitting package which obscured.
assists in fitting sample data to a suitable theoret-
ical distribution. An alternative to using a stan-
ProModel 41
User Guide
Note in the last column of the frequency table others who are in a position to evaluate the valid-
that the percentage for each interval may be ity of the data and approve the assumptions
expressed optionally as a cumulative percentage. made. This document will be helpful later if you
This helps verify that all 100% of the possibilities need to make modifications to the model or look
are included. at why the actual system ends up working differ-
ently than what was modeled.
When gathering samples from a static population,
one can apply descriptive statistics and draw rea- In addition to including those factors to be used
sonable inferences about the population. When in the model, the data document should also
gathering data from a dynamic and possibly time include those factors deliberately excluded from
varying system, however, one must be sensitive the model because they are deemed to be either
to trends, patterns, and cycles that may occur insignificant or irrelevant. If, for example, break
with time. The samples drawn may not actually times are not identified in the system description,
be homogenous samples and, therefore, unsuit- a statement of explanation should be made
able for applying simple descriptive techniques. explaining why. Stating why certain factors are
being excluded from the system description will
Activity Grouping Another consideration in
help resolve later concerns that may question
converting data to a useful form is the way in
why the factors were omitted.
which activities are grouped for modeling pur-
poses. Often it is helpful to group activities Validating system data can be a time-consuming
together so long as important detail is not sacri- and difficult task, especially when many assump-
ficed. This makes models easier to define and tions are made. In practice, data validation ends
more manageable to analyze. In grouping multi- up being more of a consensus or agreement that is
ple activities into a single activity time for simpli- obtained confirming that the information is good
fication, consideration needs to be given as to enough for the purposes of the model. While this
whether activities are performed in parallel or in approved data document provides the basis for
series. If activities are done in parallel or with building the model, it often changes as model
any overlap, the time during which overlapping building and experimentation get under way.
occurs should not be additive.
Serial activities are always additive. For example, Step 3: Building the Model
if a series of activities is performed on an entity at
a location, rather than specifying the time for Once sufficient information has been compiled to
each activity, it may be possible to sum activity define the basic system operation, the model
times and enter a single time or time distribution. building activity can begin. While starting to
build a model too early can be a wasted exercise,
waiting until all of the information is completely
Documenting and Approving the gathered and validated may unnecessarily post-
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, ered may even help identify missing information
it 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
42 Chapter 3:
Steps for Doing Simulation
Additionally, the model must be able to provide model with excessive detail may be too expensive
any other statistical or graphical representation to program and to execute.
needed to satisfy the objectives of the study. A
model is neither true nor false, but rather useful Incremental Expansion
or not useful. Once validated, a model is useful
when it provides the needed information to meet In addition to adding complexity to a model in
the objectives of the simulation. stages, models that have a broad scope are some-
times easier to build in phases where additional
sections are added incrementally to the model.
Progressive Refinement This method of "eating the elephant one bite at a
One nice feature of simulation is that models do time" allows a portion of the model to be built,
not have to include all of the final detail before tested and debugged before adding new sections
they will run. This allows a progressive refine- and makes a large task more manageable.
ment strategy to be used in which detail is added
For unusually large models, it may be useful to
to the model in stages rather than all at once. Not
identify definable boundaries within a model to
only do models get built and running quicker this
permit model partitioning. Model partitioning is
way, but it also makes models easier to debug. In
the process of subdividing a model into two or
the initial stages of a model, for example, attrac-
more modules that represent physically separate
tive graphics are not very useful and, since they
sections within the system. The purpose of model
are likely to be changed anyway, should not be
partitioning is to allow model sections to be built
added until later when preparing for the final
and debugged, possibly even by separate individ-
model presentation.
uals, independently of each other. Once sections
The complexity of model building should never are finished, they can be merged together to cre-
be underestimated and it is always better to begin ate the overall model. This “divide-and-conquer”
simple and add complexity rather than create an method of model building can greatly reduce the
entire complex model at once. It is also easier to time and difficulty in building and debugging
add detail to a model than it is to remove it from a large models.
model. Building a model in stages enables bugs
to be more readily identified and corrected. Model Verification
Emphasizing the importance of applying progres-
sive refinement to model building, Law and Kel- Once a model is defined using a selected software
ton (1991) have advised: tool, the model must generally be debugged to
ensure that it works correctly. The process of
Although there are few firm rules on how one demonstrating that a model works as intended is
should go about the modeling process, one point referred to in simulation literature as model veri-
on which most authors agree is that it is always a fication. It is much easier to debug a model built
good idea to start with a simple model which can in stages and with minimal detail than to debug a
later be made more sophisticated if necessary. A large and complex model. Eliminating bugs in a
model should contain only enough detail to cap- program model can take a considerable amount
ture the essence of the system for the purposes for of time, especially if a general purpose program-
which the model is intended: it is not necessary to ming language (e.g., C++) in which frequent cod-
have a one-to-one correspondence between ele- ing errors occur is used. Most simulation
ments of the model and elements of the system. A languages provide a trace capability in the form
ProModel 43
User Guide
of audit trails, screen messages, graphic anima- results appear reasonable. If circumstances per-
tion, or a combination of all three. A trace mit, the model may even be compared to that
enables the user to look inside of the simulation actual system to see how they correspond. If
to see if the simulation is performing the way it these procedures are performed without encoun-
should. Good simulation products provide inter- tering a discrepancy between the real system and
active debugging capability which further facili- the model, the model is said to have face validity.
tates the debugging process. A thorough “walk-
through” of the model input is always advisable.
Step 4: Conducting Experi-
Model Validation ments
During the process of model building, the mod- The fourth step in a simulation study is to con-
eler must be constantly concerned with how duct simulation experiments with the model.
closely the model reflects the system definition. Simulation is basically an application of the sci-
The process of determining the degree to which entific method. In simulation, one begins with a
the model corresponds to the real system, or at theory of why certain design rules or manage-
least accurately represents the model specifica- ment strategies are better than others. Based on
tion document, is referred to as model validation. these theories the designer develops a hypothesis
Proving absolute validity is a non attainable goal. which he tests through simulation. Based on the
As Neelamkavil (1987) explains, “True valida- results of the simulation the designer draws con-
tion is a philosophical impossibility and all we clusions about the validity of his hypothesis. In a
can do is either invalidate or fail to invalidate.” simulation experiment there are input variables
For this reason, what we actually seek to estab- defining the model which are independent and
lish is a high degree of face validity. Face validity may be manipulated or varied. The effects of this
means that, from all outward indications, the manipulation on other dependent or response
model appears to be an accurate representation of variables are measured and correlated.
the system. From this standpoint, validating a
In some simulation experiments we are interested
model is the process of substantiating that the
in the steady-state behavior of the model. Steady-
model, within its domain of applicability, is suffi-
state behavior does not mean that the simulation
ciently accurate for the intended application
produces a steady outcome, but rather the distri-
(Schlesinger, 1979).
bution or statistical variation in outcome does not
There is no simple test to establish the validity of change over time. For example, a distribution
a model. Validation is an inductive process warehouse may ship between 200 and 220 parts
through which the modeler draws conclusions per hour under normal operating conditions. For
about the accuracy of the model based on the evi- many simulations we may only be interested in a
dence available. Gathering evidence to determine particular time period, such as a specific day of
model validity is largely accomplished by exam- the week. For these studies, the simulation may
ining the model structure (i.e., the algorithms and never reach a steady state.
relationships) to see how closely it corresponds to
As with any experiment involving a system with
the actual system definition. For models having
random characteristics, the results of the simula-
complex control logic, graphic animation can be
tion will also be random in nature. The results of
used effectively as a validation tool. Finally, the
a single simulation run represent only one of sev-
output results should be analyzed to see if the
eral possible outcomes. This requires that multi-
44 Chapter 3:
Steps for Doing Simulation
ple replications be run to test the reproducibility •What is an appropriate run length for the
of the results. Otherwise, a decision might be simulation?
made based on a fluke outcome, or at least an •How many replications should be made?
outcome not representative of what would nor- •How many different random streams should
mally be expected. Since simulation utilizes a be used?
pseudo-random number generator for generating •How should initial seed values be controlled
random numbers, running the simulation multiple from replication to replication?
times simply reproduces the same sample. In
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,
one must decide what type of simulation to run.
mined to be between 75.5 and 80.8%. We would
Simulations are usually distinguished as being
then be able to say that there is a .90 probability
one of two types: terminating or non-terminating.
that the true mean utilization of the modeled
The difference between the two has to do with
resource (not of the actual resource) lies between
whether we are interested in the behavior of the
75.5 and 80.8%.
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
ProModel 45
User Guide
might be interested in knowing how long it will before the break or end of shift. The length of the
take to produce the aircraft along with existing simulation is determined by how long it takes to
workloads. The simulation run starts with the get a representative steady-state reading of the
system empty and is terminated when the 200th model behavior.
plane is completed since that covers the period of
interest. A point in time which would bring a ter- Running Terminating Simulations
minating simulation to an end might be the clos-
ing of shop at the end of a business day, or the Experiments involving terminating simulations
completion of a weekly or monthly production are usually conducted by making several simula-
period. It may be known, for example, that a pro- tion runs, or replications, of the period of interest
duction schedule for a particular item changes using a different random seed for each run. This
weekly. At the end of each 40 hour cycle, the sys- procedure enables statistically independent and
tem is “emptied” and a new production cycle unbiased observations to be made on the system
begins. In this situation, a terminating simulation response over the period simulated. Statistics are
would be run in which the simulation run length often gathered on performance measures for suc-
would be 40 hours. cessive intervals of time during the period.
Terminating simulations are not intended to mea- For terminating simulations, we are usually inter-
sure the steady-state behavior of a system. In a ested in final production counts and changing
terminating simulation, average measures are of patterns of behavior over time rather than the
little meaning. Since a terminating simulation overall average behavior. It would be absurd, for
always contains transient periods that are part of example, to conclude that because two techni-
the analysis, utilization figures have the most cians are busy only an average of 40% during the
meaning if reported for successive time intervals day that only one technician is needed. This aver-
during the simulation. age measure reveals nothing about the utilization
of the technicians during peak periods of the day.
A non-terminating or steady-state simulation is A more detailed report of waiting times during
one in which the steady-state behavior of the sys- the entire work day may reveal that three techni-
tem is being analyzed. A non-terminating simula- cians are needed to handle peak periods, whereas
tion does not mean that the simulation never only one technician is necessary during off-peak
ends, nor does it mean that the system being sim- hours. In this regard, Hoover and Perry (1990)
ulated has no eventual termination. It only means note:
that the simulation could theoretically go on
indefinitely with no statistical change in behav- It is often suggested in the simulation literature
ior. For non-terminating simulations, the modeler that an overall performance be accumulated over
must determine a suitable length of time to run the course of each replication of the simulation,
the model. An example of a non-terminating sim- ignoring the behavior of the systems at intermedi-
ulation is a model of a manufacturing operation ate points in the simulation. We believe this is too
in which oil filters are produced on a continual simple an approach to collecting statistics when
basis at the same pace. The operation runs two simulating a terminating system. It reminds us of
shifts with an hour break during each shift in the statistician who had his head in the refrigera-
which everything momentarily stops. Break and tor and feet in the oven, commenting that on the
third shift times are excluded from the model average he was quite comfortable.
since work always continues exactly as it left off
46 Chapter 3:
Steps for Doing Simulation
For terminating simulations, the three important cessing rates, utilization, etc.) exhibit statistical
questions to answer in running the experiment regularity (i.e., the distribution of these variables
are: are approximately the same from one time period
to the next). The following figure illustrates the
1. What should be the initial state of the model?
typical behavior of a response variable, Y, as the
2. What is the terminating event or time?
simulation progresses through N periods of a
3. How many replications will you make?
simulation.
Many systems operate on a daily cycle, or, if a
pattern occurs over a weeks time, the cycle is Period Y
weekly. Some cycles may vary monthly or even
1
annually. Cycles need not be repeating to be con-
sidered a cycle. Airlines, for example, may be 2 Transient State
interested in the start-up period of production
3
during the introduction of a new airport which is
a one-time occurrence. 4
The number of replications should be determined 5
by the precision required for the output. If only a Steady State
6
rough estimate of performance is being sought,
three to five replications are sufficient. For 7
greater precision, more replications should be
made until a confidence interval with which you 8
feel comfortable is achieved. Behavior of Response Variable Y for Succes-
sive Periods During Simulation
Running Non-terminating
Simulations The time that it takes to reach steady-state is a
The issues associated with generating meaningful function of the activity times and the amount of
output statistics for terminating simulations are activity taking place. For some models, steady-
somewhat different that those associated with state might be reached in a matter of a few hours
generating statistics for non-terminating sys- of simulation time. For other models it may take
tems. In steady-state simulations, we must deal several hundred hours to reach steady-state. In
with the following issues: modeling steady-state behavior we have the prob-
lem of determining when a model reaches steady-
1. Determining the initial warm-up period. state. This start-up period is usually referred to as
2. Selecting among several alternative ways for the warm-up period. We want to wait until after
obtaining sample observations. the warm-up period before we start gathering any
3. Determining run length. statistics. This way we eliminate any bias due to
Determining the Warm-up Period In a steady- observations taken during the transient state of
state simulation, we are interested in the steady- the model.
state behavior of the model. Since a model starts
While several methods have been presented for
out empty, it usually takes some time before it
determining warm-up time (Law and Kelton,
reaches steady-state. In a steady-state condition,
1991), the easiest and most straightforward
the response variables in the system (e.g., pro-
approach, although not necessarily the most reli-
ProModel 47
User Guide
able, is to run a preliminary simulation of the sys- hours, 12 to 15 hours is probably a safe warm-up
tem, preferably with several (3 to 5) replications, period to use for the simulation.
and observe at what time the system reaches sta- End of Warm-up Period
tistical stability. The length of each replication
100
should be relatively long and allow even rarely 90
occurring events, such as infrequent downtimes, 80
to occur at least two or three times. To determine 70
Interval batching (also referred to as the batch 1000 occurrences of each type of event (Thesen
means technique) is a method in which a single, and Travis, 1992).
long run is made with statistics being reset at
specified time intervals. This allows statistics to Comparing Alternative Systems
be gathered for each time interval with a mean
calculated for each interval batch. Since each Simulations are often performed to compare two
interval is correlated to both the previous and the or more alternative designs. This comparison
next intervals (called serial correlation or auto- may be based on one or more decision variables
correlation), the batches are not completely inde- such as buffer capacity, work schedule, resource
pendent. The way to gain greater independence is availability, etc. Comparing alternative designs
to use large batch sizes and to use the mean val- requires careful analysis to ensure that differ-
ues for each batch. When using interval batching, ences being observed are attributable to actual
confidence interval calculations can be per- differences in performance and not to statistical
formed. The number of batch intervals to create variation. This is where running multiple replica-
should be at least 5 to 10 and possibly more tions may again be helpful. Suppose, for exam-
depending on the desired confidence interval. ple, that method A for deploying resources yields
a throughput of 100 entities for a given time
Determining Run Length Determining run period while method B results in 110 entities for
length for terminating simulations is quite simple the same time period. Is it valid to conclude that
since there is a natural event or time point that method B is better than method A, or might addi-
defines it for us. Determining the run length for a tional replications actually lead the opposite con-
steady-state simulation is more difficult since the clusion?
simulation can be run indefinitely. The benefit of
this, however, is that we can produce good repre- Evaluating alternative configurations or operat-
sentative samples. Obviously, running extremely ing policies can sometimes be performed by com-
long simulations is impractical, so the issue is to paring the average result of several replications.
determine an appropriate run length that ensures Where outcomes are close or where the decision
a sufficiently representative sample of the steady- requires greater precision, a method referred to as
state response of the system is taken. hypothesis testing should be used. In hypothesis
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.
Remember, the longer the model is run, the more Sometimes there may be insufficient evidence to
confident you can become that the results repre- reject the stated hypothesis and thus the analysis
sent a steady-state behavior. If collecting batch proves to be inconclusive. This failure to obtain
mean observations, it is recommended that run sufficient evidence to reject the hypothesis may
times be as large as possible to include at least be due to the fact that there really is no difference
ProModel 49
User Guide
in performance, or it may be a result of the vari- rial design. In this type of experiment, we simply
ance in the observed outcomes being too high define a high and low level setting for each factor
given the number of replications to be conclu- and, since it is a full-factorial experiment, we try
sive. At this point, either additional (perhaps time every combination of factor settings. This means
consuming) replications may be run or one of that if there are five factors and we are testing
several variance reduction techniques might be two different levels for each factor, we would test
employed (see Law and Kelton, 1991). each of the 25 = 32 possible combinations of high
and low factor levels. For factors that have no
Factorial Design range of values from which a high and low can be
chosen, the high and low levels are arbitrarily
In simulation experiments we are often interested
selected. For example, if one of the factors being
in finding out how different input variable set-
investigated is an operating policy for doing work
tings impact the response of the system. Rather
(e.g., first come, first served; or last come, last
than run hundreds of experiments for every possi-
served), we arbitrarily select one of the alterna-
ble variable setting, experimental design tech-
tive policies as the high level setting and a differ-
niques can be used as a “short-cut” to finding
ent one as the low level setting.
those input variables of greatest significance.
Using experimental-design terminology, input For experiments in which a large number of fac-
variables are referred to as factors, and the output tors are being considered, a two-level full-facto-
measures are referred to as responses. Once the rial design would result in an extremely large
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-
50 Chapter 3:
Steps for Doing Simulation
Use of Random Streams used in a simulation has its own independent seed
and tracks its own values for subsequent input to
One of the most valuable characteristics of simu- the generator. Where the sequence begins in the
lation is the ability to reproduce and randomize cycle depends on the initial seed value used by
replications of a particular model. Simulation the generator.
allows probabilistic phenomena within a system
to be controlled or randomized as desired for con- Any time a particular number seeds a stream, the
ducting controlled experiments. This control is same sequence of values will be repeated every
made available through the use of random time the same seed is used to initialize the stream.
streams. This means that various elements within a model
can be held constant with respect to their perfor-
A stream is a sequence of independently cycling, mance while other elements vary freely. Simply
unique random numbers uniformly distributed specify one random number stream for one set of
between 0 and 1 (see the figure on next page). activities and another random number stream for
Random number streams are used to generate all other activities.
additional random numbers from other probabil-
ity distributions (Normal, Beta, Gamma). After Because the same seed produces the same
sequencing through all of the random numbers in sequence of values every time it is used, com-
the cycle, the cycle starts over again with the pletely independent functions within a model
same sequence. The length of the cycle before it must have their own streams from the start. For
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-
quency or time between failures is defined by a
.60
.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
same stream will be used to generate sample val-
Very 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
ProModel 51
User Guide
Suppose, however, that the resource servicing the about getting too pedantic about the precision of
machines must service them both at the same simulation output. With more than 60 combined
time, so we would like to have the machines go years of experience in doing simulation model-
down at the same time. Using the same stream to ing, Conway, Maxwell and Worona (1986) cau-
determine both downtimes will not bring them tion that attaching a statistical significance to
down at the same time, because a different ran- simulation output can create a delusion that the
dom number will be returned from the stream output results are either more or less significant
with each call to generate a random normal vari- than they really are. They emphasize the practi-
ate. Using two different streams, each dedicated cal, intuitive reading of simulation results. Their
to a machine's downtime and each having the guideline is "If you can't see it with the naked
same initial seed, will ensure that both machines eye, forget it."
go down at the same time every time. The two
The goal of conducting experiments is not just to
streams have the same starting seed value so they
find out how well a particular system operates,
will produce exactly the same sequence of ran-
but hopefully to gain enough insight to be able to
dom numbers.
improve the system. Unfortunately, simulation
output rarely identifies causes of problems, but
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
52 Chapter 3:
Steps for Doing Simulation
A simulation has failed if it produces evidence to for trying this or that with the model), the model
support a particular change which is not imple- recommendations, if approved, are ready to be
mented; especially if it is economically justified. implemented. If the simulation has been ade-
The process of selling simulation results is quately documented, it should provide a good
largely a process of establishing the credibility of functional specification for the implementation
the model. It is not enough for the model to be team.
valid, the client or management must also be con-
vinced of its validity if it is to be used as an aid in
decision making. Finally, the results must be pre- Pitfalls in Simulation
sented in terms that are easy to understand and If the steps that have been outlined are followed,
evaluate. Reducing the results to economic fac- the chances of performing a successful simula-
tors always produces a compelling case for mak- tion project are very good. Typical reasons why
ing changes to a system. simulation projects fail include the following:
In presenting results it is important to be sensitive •Failure to state clear objectives at the outset.
to the way in which recommendations are made. •Failure to involve individuals affected by
It helps to find out whether recommendations are outcome.
being sought or whether a simple summary of the
•Overrunning budget and time constraints.
results is wanted. It is generally wise to present
•Failure to document and get a consensus on
alternative solutions and their implications for
input data.
system performance without suggesting one
•Including more detail than is needed.
alternative over another, particularly when per-
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 observa-
the system and that it does not take into account tion.
the potential reactions or potential difficulties •Basing decisions on average statistics when
employees may have in accepting a particular the output is actually cyclical.
solution. •Being too technical and detailed in present-
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-
ate the right effect in visualizing the model being A simulation project has distinct phases that must
simulated. In preparing the results, it is often nec- be understood and followed in order to be suc-
essary to add a few touch-ups to the model (like a cessful. Simulation requires careful planning
full dress-rehearsal) so the presentation effec- with realistic goals and expectations. Steps to
tively and convincingly presents the results of the performing a simulation study include planning
simulation study. the study, defining the system, building the
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
ProModel 53
User Guide
Modeling Scenario
Before we actually begin building a model, let's
look at a fictitious scenario for our model build-
ing session.
Cogswell Cogs has just secured a contract to pro-
duce a new cog for production of the X-95C
Family Space Cruiser. The current capacity of the
Cogswell facility is not adequate to handle any
additional work load while continuing to fill
existing orders. Therefore, Mr. Cogswell has
ordered the I.E. department to simulate the design
of a new workcell dedicated to the production of
the new cog.
The process consists of loading a cast blank onto
an NC mill for milling of the outside splines.
Once the splines have been cut, the cog must be
degreased, inspected and loaded with an inner
bearing. All operations, including inspection, are
to be performed by a single operator.
Model Elements
In building this model we must define all of the
basic modeling elements and a few of the
optional elements.
54 Chapter 3:
Building a Model
Locations Resources
We need some type of receiving location to hold A single operator, CellOp, performs all manual
incoming entities. We also need processing loca- operations.
tions where entities have value added to them.
For the given production rate, Cogswell's engi- Path Networks
neers have determined that the workcell will
In order to make CellOp a mobile resource, we
require two NC_300 series numerically con-
must define a path network. We'll call it CellNet.
trolled mills, a degreasing machine, and an
inspection/assembly station.
Attributes
Entities (Parts) An attribute is simply a “numeric tag” attached to
either an entity (entity attribute) or a location
The entity types in this system include Pallets, (location attribute). Since each Cog is inspected
each carrying six cast Blanks. Blanks become for proper spline depth, we attach an attribute
Cogs after processing, and Bearings are loaded at called Test to each Cog, specifying the Pass/Fail
the Inspect station. If a Cog fails the inspection it status of the Cog.
will be called a Reject.
User Distributions
Arrivals
We will sample from a user defined distribution
Cogswell's engineers have determined that Pal- and set the Test attribute to either 1 (for pass) or 0
lets should arrive at the rate of 1 Pallet every 45 (for fail). Ninety six percent of the Cogs pass
minutes. inspection and have their Test attribute set to one.
Four percent fail the inspection and have their
Processing Test attribute set to zero.
The operation at each mill requires an operator to
load the Blank, which takes a normally distrib-
uted amount of time with a mean of 3 minutes Phased Modeling Approach
and standard deviation of .2 minutes (i.e., Instead of trying to build a model all at once, you
N(3,.2)). After a blank has been loaded, the may want to implement a phased modeling
machining time is a constant 5.7 minutes. approach where you build the model in stages.
Cogs are then removed from the mill and placed This will help you understand the basic modeling
in the degreasing machine. The degreasing elements before moving on to more complex
machine has capacity for 2 Cogs, and has a cycle ones like attributes and IF-THEN logic. The fol-
time of 5 minutes. lowing elements are those components normally
entered during each phase of the model building
Once the Cogs have been degreased, they are process.
inspected for proper spline depth, and a bearing is
installed in the center hole. This process requires Phase 1: Basic Model Elements
the cell operator, and takes U(3.2,.3) minutes for
the inspection and U(1.5,.2) minutes for the Bear- In the first phase you input all of the basic model
ing to be installed. If the Cog fails inspection, no elements: General Information, Locations, Enti-
Bearing is installed. ties, Arrivals, and Processing. You also import a
background graphic to help in placing the loca-
ProModel 55
User Guide
tions in the layout window. Upon completion of name of the graphics library to use. By default it
this phase you have a fully working model, ready will be PROMOD5.GLB.
to animate and collect output.
General Information
The General Information dialog box, accessed
through the Build menu, allows you to name your
model and specify default information such as
time and distance units. You also specify the Often, importing a background graphic makes the
process of placing locations easier, or altogether
eliminates the need to create graphic icons for
locations.
56 Chapter 3:
Building a Model
Defining Arrivals
Of the four entity types, only one needs to be
scheduled to arrive in the system. Every 45 min-
utes one Pallet arrives at the Receiving location.
The word “INFINITE” in the Occurrences col-
umn means that one pallet continues to arrive
every 30 minutes as long as the simulation runs.
For more information on defining arrivals, see
Location Edit Table “Arrivals” on page 163.
information on defining process logic, see “Pro- Process and Routing Logic
cessing” on page 149, and “Operation Logic” on The entire process and routing tables for the
page 299. Phase 1 model are shown next. The table reads as
Once the basic entity flow has been defined using follows:
the point and click method, operation statements
1.When an entity called Pallet arrives at location
are added to the processing logic. The processing
Receive there is no operation time or processing
logic can be as simple as a constant operation
logic (it's just a storage location). The resulting
time or as complex as a nested IF...THEN...ELSE
output is six entities called Blank that are routed
statement.
to the FIRST available destination of either
Process editing actually involves two edit tables NC_301L or NC_302L.
that normally appear side by side. The Process
2.When Blanks arrive at NC_301L or NC_302L,
edit table specifies what happens to an entity
the processing time is a normal distribution with
when it arrives at a location, and the Routing edit
a mean of 3 and a standard deviation of .2 min-
table specifies where an entity is to be sent once
utes. The name of the entity is now changed to
processing is complete.
Cog, and the Cog is sent to the Degrease location
(FIRST is the default routing rule).
Process Edit Table
3.Two Cogs are accumulated at Degrease and
processed for 5 minutes. When the degrease
cycle is complete, Cogs are routed to location
Inspect.
4.The inspection time is a uniform distribution
with a mean of 3.2 and a half range of .3 minutes.
Ninety six percent of the Cogs pass inspection
and exit the system, while four percent of the
Cogs fail inspection and become Rejects.
Routing Edit Table
The Resource edit table shown below contains Process Edit Table and corresponding
fields for specifying the name and number of operation 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.
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
Cog Inspect WAIT U(3.2,.3) 1 Cog EXIT 0.960 1
FREE CellOp Reject EXIT 0.040
With the new processing now defined, we have
specified all of the necessary modeling elements.
We are now ready for the model execution phase.
Once again, we shall defer discussion of model
execution until we have finished the final phase
of the model.
ProModel 61
User Guide
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 225. the DT... button in the Location edit table shown
below. This brings up another edit table for spec-
ifying a downtime based on machine usage. For
more information about defining location down-
times, see “Location Downtimes” on page 107.
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
62 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.
Viewing Model Statistics & Graphs” on page 373 for detailed examples of the
output generated by the Output Viewer 3DR.
Reports
The purpose of any simulation model is to gain a
deeper understanding of the system under study.
ProModel's Output Viewer 3DR helps you to see
the interactions between various system elements
through tabular and graphical representation of
system parameters such as resource utilization,
throughput history, cycle time, and work-in-pro-
cess levels.
After each simulation run, you are prompted to
view the model output. You can select yes to
view the results immediately, or select no to con-
tinue with some other task. Selecting yes opens
the Output Viewer 3DR and automatically loads
the output of the most recent model run.
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 70.
1. Select New from the File menu.
Save Saves an open model under the current file
2. Define model elements using their corre-
name. If no file name has been given, the user is sponding 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.
How to save a model: ment. After all segments are ready, they can be
merged together to form a single model.
• Select Save from the File menu. If the The Merge feature consists of two options:
model does not already have a name, the Merge Model and Merge Submodel.
Save As dialog box will appear.
Please note
Each menu selection is covered in detail in the
You may leave the View Text window open for
following pages.
reference while editing the model. However, any
•View Text Displays the text of the current updates will not appear until you close the win-
model data in a window. dow and select View Text again.
•Print Text Prints the text of the current
model to either a file or the printer.
•Print Layout Prints the model layout to a
printer. Print Text
•Printer Setup Opens a dialog box to allow The Print and Print Layout options allow you to
printers to be selected and controlled. print a model to any printer configured for use
ProModel 73
User Guide
with Windows. You may also save a text copy of Please note
the file to disk.
The entire layout may also be copied to the clip-
How to save a text copy of the board for editing and printing in another appli-
current model: cation.
1. Select Print Text... from the File menu. How to print a model layout:
2. Select To Printer from the submenu.
1. Select Print Layout from the File menu.
3. Select the desired options from the Print
dialog box and click OK. 2. Select the desired options from the Print
dialog box and click OK.
74 Chapter 4:
File Menu
Printer Setup
ProModel allows you to print to any printer con- Create Model Package Copies the current
figured for use with Windows. At times you may model and its associated files to a specific direc-
need to switch from the default printer to another tory or disk as <model name>.pkg.
printer or plotter. This can be done easily Install Model Package Copies the files in a
through the Setup option on the print dialog box. *.pkg file to the destination directory you wish to
use.
How to change the printer set-
tings: Creating a Model Package
The Create Model Package option allows you to
1. Select Printer Setup... from the File menu to
copy the current model and its associated files to
access the Print Setup dialog box.
a specific directory as a single file entitled
2. Select the desired options and click OK. <model name>.PKG. This file includes the model
file (*.MOD), the graphic library (unless you
check the Exclude Graphic Library option), and
any external files you defined (e.g., read files,
arrivals files, and shift files)—the model package
automatically includes bitmaps imported into the
background graphics.
When you create a model package, two options
are available:
•Exclude Graphic Library Excludes the
graphics library file from the model pack-
age—if not required—and creates a smaller
package file.
ProModel 75
User Guide
•Protect Model Data Prevents those who 4. Check the Protect Model Data box if you
install the model package from viewing or want to protect your model data and pre-
editing the model data. When you load a vent other users from changing or viewing the
model package, ProModel disables the View model data.
Text, Print Text, and Expression Search fea- 5. Click OK.
tures, plus the Build menu and portions of
the run-time Options and Information
menus.
Installing a Model Package
Please note Install Model Package copies all files in a model
package to a specified destination directory and
You may NOT use dynamic plots with protected gives you the option to load the model.
models.
How to install a model package:
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.
Please note
How to move a record to a new
position in a table:
Notes on editing process records:
1. Select the record to be moved by placing 1. A process record consists of all fields in the
the cursor in any field of the desired record. Process edit table, as well as all corresponding
2. Select Move from the Table Edit menu. routing records defined in the Routing edit table
for the given process.
3. Position the cursor in the record that is
below the final destination of the selected 2. From a Routing edit table, you may only use
record and select Move to from the Table Edit the Copy Record and Paste Record options to
menu. copy routing information to another routing
record.
3. These options cannot be used to copy process-
Editing Process Records ing or routing records from one model to
another.
When editing the records in the Processing edit
table, two additional options for copying and
78 Chapter 4:
Edit Menu
How to copy information from 2. Click on the Notes button at the right of
the table.
another record:
Please note
Alternately, you may copy information between The selections available from the Notes Edit
records using the right-click menu. menu are defined as follows.
Cut Removes the selected text and places it in
the clipboard.
Editing Notes Windows Copy Copies the current text and places it in the
clipboard.
You may annotate individual records of the loca-
Paste Inserts the contents of the clipboard at the
tions, resources and entities tables through Notes
windows. When editing the text of a notes win- cursor.
dow, the Edit menu changes to the following Clear Deletes the selected text without placing a
form. copy in the clipboard.
In addition to the options in the edit menu, the
How to annotate a record: notes window itself contains four buttons. There
are three edit buttons, Cut, Copy, and Paste
1. Click inside the record to be annotated. which work exactly the same as the correspond-
ing options in the Edit menu, and a Print button.
The print button prints the text in the notes win-
dow. A status bar appearing at the bottom of the
Notes edit window shows the current line posi-
tion of the cursor (e.g., Line: 2).
following example. These buttons include cut, is a result of the incorrectly spelled statement
copy, paste, undo, local find and replace, build, “Acum 2.”
compile, print, and help. Using the Cut, Copy, or
Paste button works exactly the same as using the
corresponding option from the Edit menu.
Editing & Moving Graphics dow. You may also scroll the layout first and then
move the selected graphics.
ProModel allows easy adjustment and fine tuning
of the graphics in one window rather than open-
Please note
ing individual modules to move each object. This
makes it possible to move or rearrange a whole
submodel or model after it has been merged. To Multiple graphics can also be selected by drag-
move any or all graphics in a model, ProModel ging a bounding box around the graphics. Hold-
must be in common mode (all modules must be ing the left mouse button down, drag the mouse
closed, leaving only the layout window open). from one corner of the graphics to the opposite
corner. The bounding box must completely
While in common mode, graphics that can be enclose the graphics you wish to select.
moved and arranged in the layout window
include locations, path networks, static and
dynamic resources, variables, and background
graphics. Multiple graphics can be selected and Special Considerations for Moving
moved simultaneously. When graphics are Graphics
selected, the layout can be scrolled and the graph-
ics will remain selected. Locations When you click on a location with
multiple graphics defined for it (i.e., counter, sta-
tus light, label) in common mode, it is selected as
How to move graphics:
one graphic. Multiple units of a location can be
moved individually. Adjusting the position of an
1. Close all build modules leaving only the
individual graphic in a multiple graphic location
layout window open.
must be done in the locations module.
2. Left click and drag the selected graphic to
the desired position. Routing Paths Routing paths defined in the Pro-
cessing module cannot be selected for movement
3. To move multiple graphics, hold down the
but will move when a location to which they are
Shift key while left clicking the desired graph-
connected is moved. If a routing path has multi-
ics to select them and then drag them to the
desired position. Using the shift key with a left ple segments, only the segment connected to the
click deselects a selected graphic. location being moved gets readjusted. However,
when both locations on the routing path are
4. Fine tune the position of the selected
graphic(s) by using the arrow keys on the key-
board to move one pixel at a time.
moved simultaneously, the whole routing path is Sizing Graphics cannot be sized in common
moved. mode.
Snap-to-Grid Graphics will not snap to the grid
in common mode, but their position can be fine-
tuned using the arrow keys on the keyboard to
move the selected graphic(s) one pixel at a time.
Labels To view the label or edit a location, path
network, resource, or variable graphic, right click
on the item. If you double left click on an item,
ProModel opens the build module and highlights
the record where you defined the element.
menu. These selections and their submenus are the submenu shown here. If the Views dialog
discussed in more detail on the following pages. appears, skip step 3.
Views
The Views feature allows you to define, then
quickly and easily access specific areas of the
model layout. Selecting a view scrolls the layout
window and adjusts the zoom so you see a spe- 4. With the Views dialog open, select the
cific region of the layout regardless of the layout area in the layout window you want to define
as a view using the scroll bars and zoom fea-
window’s size. Once a view is defined, you can
ture in the View menu. Or size the layout win-
select it while editing or running the simulation
dow to the desired view.
by selecting the view from the View menu or by
using the keyboard shortcut. 5. With the layout window set, type a name
for your view in the View Name field at the
bottom of the Views dialog, and then click
Defining & Selecting Views the Add button to define the view you have
selected in the current layout window.
How to define a view: 6. The name you have entered will appear in
your list of views.
1. At edit time, select the View menu.
2. Select the Views item. If no defined views
exist, the Views dialog is displayed and not
Please note
How to select a view from the Move Up Moves the currently highlighted
menu: view up one position in the list creating a corre-
sponding change to the menu and CTRL+ n
order.
1. At edit time or run time, select the View
menu. Move Down Moves the currently highlighted
2. Select the Views menu item to display the view down one position in the list creating a cor-
submenu list. responding change to the menu and CTRL+ n
order.
Rename Renames the currently selected view
to the name you have typed into the View Name
field.
Set View Sets the highlighted name in the View
3. Click on the desired view from the sub- list to the portion of the model currently visible in
menu. the Layout window.
View Name This is the field where you type
the name of the view you wish to add.
How to select a view with shortcut Show View Checking this box will cause your
key CTRL + n: views to be displayed in the Layout window as
you select them in the list.
• Press CTRL + n to select the desired view
where n is the number (1-9) of its position in Using Views at Run-time
the view list (e.g., pressing CTRL + 1 would
access Single Screen Zoom from the view list When the simulation is running, you may choose
above and CTRL + 3 would access the Wait- the active view by picking its name from the
ing Time Zoom view). Views beyond nine will Views menu or the Views Panel.
not have a CTRL + n shortcut key.
The Views menu is accessible during run-time
from either the Menu Bar’s Option menu or the
Right-Click menu.
Managing Your Views The Views menu will display a list of your
When you click on Define from the Views menu, defined views. There is also an option to open the
the Views dialog is displayed. It lists the defined Views Panel.
views in the Views List and provides buttons for
adding views, removing views, and managing the
list. The function of each button is described
next.
Add Adds the view, which you have named in
the View Name field, to the list of views.
Remove Deletes the currently highlighted
view from the View List.
86 Chapter 4:
View Menu
The Views Panel is a dialog window with a list of 2. Choose any preset zoom level, or the Cus-
your defined views. tom Zoom option.
Zoom Feature
The Layout Settings submenu contains selections
The Zoom feature allows you to shrink or enlarge for changing the grid characteristics, color of the
the layout by the percentage selected. layout window background, and the routing
arrow colors. These, as well as default setting
How to zoom in or out on the lay- changes, apply to any currently loaded model. To
out: change any of these items for the current model
only, use the options provided in the General
1. Select Zoom from the View menu. Information dialog. The routing path color can be
changed for the current model only by selecting
the Path Options button in the Processing mod-
ule.
ProModel 87
User Guide
Please note
Grid Size
By using the grid dialog box, you may set the res-
olution of the grid lines to your preference.
To change the color of the grid lines, select the The “Recalculate path lengths when adjusted”
Ones button and choose a color. To change the option applies to path networks, conveyors, and
color of every tenth grid line, select the Tens but- queues. For details regarding recalculation of
ton and choose a color. times and distances when editing path segments,
see “Path Networks” on page 123.
Grid Scale
In addition to setting the resolution of the grid
Background Color
lines, you may also associate a time and distance The Background Color option allows the user to
value to each grid unit. This is extremely useful change the background color in the layout win-
when you are creating conveyors, queues, or path dow.
networks to scale and you want the time or dis-
tance between nodes to be based on the number How to set the background color
of grid units between the nodes.
of the layout:
as background graphics, can use any custom How to specify the routing colors:
color defined in the colors menu.
When creating a custom color, the nearest solid 1. Select Routing Path Color from the View
color is shown next to the dithered color for refer- menu.
ence.
Please note
Layout
The options in this toolbar open the respective
build modules. Mouse over a toolbar button to
Show Grid Check this switch to show the grid see its function and then refer to Chapter 6 for
in the layout window. information of that build module.
Show Hidden Networks Check this switch to
show the invisible path networks during editing.
A path network can be made to be invisible by
ProModel 93
User Guide
Right-Click Menu Views From this option, you may select from
the views defined in the model.
To simplify many of the steps required to per-
Zoom to Fit Layout This option resizes the
form common modeling operations, ProModel
model to fit the entire image in the layout win-
includes a variety of right-click menus. From
dow.
these menus, you can access context-sensitive
options and settings for variables, locations, pro- Zoom Allows you to select the zoom percent-
cessing, path networks, resources, and other com- age.
ponents. The following menu appears when you
Layout Settings From here, you may select and
right-click on the layout.
define the grid settings, background color, and
routing color.
Refresh Layout This option refreshes the image
to reflect recent changes.
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
graphically:
New Box
1. Check the New Box in the Location Graph-
Counter
ics window.
Gauge/Tank
2. Select a location symbol or icon from the
Conveyor/Queue
Location 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.
• Drag the graphic to the desired spot on the How to erase a location graphic:
layout.
1. Click outside of any graphic and drag to 2. Select Delete Graphic. The location
create a rectangle encompassing all of the graphic disappears, but the location record
graphics to be moved. still exists in the Location edit table.
2. Drag the rectangle to the desired position
on the layout.
How to bring a location graphic
into view that is off the layout:
How to delete a location:
1. Highlight the record of the desired location
1. Select the location record to be deleted in in the Location edit table.
the Location edit table. 2. Select the View button in the Location
2. Select Delete from the Edit menu. Graphics window or click on the icon head-
ing button.
or...
1. Right-click on the location graphic in the
layout window.
100 Chapter 5:
Locations
1. Uncheck the New Box in the Location Label Any text used to describe a location. The
Graphics window. label is initially synchronized with the name of
the location and changes whenever the location
2. Select a location symbol or icon from the
Location Graphics window. name is changed. The name, size, and color of the
text may be edited by double clicking on the label
3. Click on the Layout window where you or selecting it and clicking on the edit button (see
want the additional icon to appear.
“Text Tool” on page 324). Once the name on a
4. The graphic or symbol is added to the label is edited, it will no longer be automatically
location. changed when the location name is changed.
Status Light A circle that changes color during
the simulation to show the location’s status. For a
Location Graphics single capacity location, the states displayed are
idle/empty, in operation, blocked, down, and in
A location may have any one or more of the fol- setup. For multi-capacity locations, the displayed
lowing graphics selected from the Location states are up (operational) and down (off-shift, on
Graphics window. break, disabled).
Counter A counter representing the current Entity Spot An assignable spot on the layout
number of entities at a location. The options where the entity or entities will appear while at
available with counters are explained next. the location. While an entity is at a location, the
entity’s alignment spot (defined in the Graphic
Gauge A vertical or horizontal sliding bar
editor) will appear exactly on top of the location's
showing the location's current contents during the
entity spot, allowing the two graphics to align
simulation (shown as a percentage of the capac-
exactly as desired. A multi-capacity location will
ity). This graph will be updated constantly as a
use as many entity spots as defined (in the order
simulation runs. The options available with
defined) up to the capacity of the location. Enti-
gauges are explained below.
ties in excess of entity spots will continue to pile
Tank A vertical or horizontal sliding bar show- up on the last entity spot defined.
ing the continuous flow of liquids and other sub-
Region A boundary used to represent a loca-
stances into and out of tanks or similar vessels.
tion's area. A region may be placed in the layout
This continuous modeling capability can be com-
over an imported background such as an
ProModel 101
User Guide
Please note
or tank on the layout, double click on the gauge currently chosen options is shown in the lower-
or tank to display the gauge/tank dialog box, left corner.
select the gauge/tank and click on the Edit button,
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 105
User Guide
cally be recalculated based on the graphic scale 4. Move the mouse in the desired direction
unless you uncheck the “Recalculate path lengths and click on the right mouse button to end
when adjusted” option. You can access this the conveyor.
option from the Tools menu under Options.
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:
Turn, Fewest Entries, Longest Empty, including the icon, can be changed as if the unit
etc.). were an independent location.
•It is important, for visual effect, to have a
status light assigned to each unit.
In some situations, it may even be desirable to
model multi-unit locations as totally separate
locations. Multiple locations should be used
instead of multi-unit locations when: If the number of units is changed, the individual
unit location records are automatically created or
•A path network is defined but each location destroyed accordingly.
must interface with a different node on the
network. Individual units of a multi-unit location can be
•Different units have different processing selected to process an entity according to the
times. Selecting Incoming Entities option in the Rules
•The input for each unit comes from different dialog box. (See the discussion regarding the
sources. Rules dialog box later in this section.)
•The routing is different for each unit. In the output report, scheduled hours for the par-
ent location will be the sum of the scheduled
Defining a Multi-Unit Location hours for the individual units.
To create a multi-unit location, enter a number
greater than one as the number of units for a loca- Please note
tion. A corresponding number of locations will
be copied below the multi-unit location record in Multi-Unit notes:
the Location edit table, each with a numeric
extension designating the unit number of that 1. It is not possible to create a path network to
location. Successive graphics, representing indi- interface with each unit of a multi-unit location.
vidual units will be drawn to the right of the orig- You must define the locations individually and
inal location, but may be moved normally. use multiple locations as discussed above.
The original location record becomes the proto- 2. It is not possible to route an entity to a spe-
type for the unit records. Each unit will have the cific unit of a multi-unit location. For example,
prototype's characteristics unless the individual typing Loc2.3 in the destination field of the Rout-
unit's characteristics are changed. In the table ing edit table is not allowed.
below, each unit of the location has a clock-based
downtime defined because the parent location,
Loc2, was assigned a clock-based downtime.
However, Loc2.1 has an additional entry-based Location Downtimes
downtime and Loc2.2 has an additional usage-
A downtime stops a location or resource from
based downtime. Any other characteristic,
operating. A down resource or location no longer
functions and is not available for use. Downtimes
may represent scheduled interruptions such as
shifts, breaks, or scheduled maintenance. Or, they
108 Chapter 5:
Locations
3. Each selection opens an edit table for First Time The time of the first downtime occur-
specifying the required elements of the rence. If this field is left blank, the first clock
downtime. downtime will occur according to the frequency
field. This time is evaluated after any initializa-
tion logic.
Please note
Priority The priority (0-999) of the downtime
An alternative and more straightforward method occurrence. The default priority is 99, the highest
for defining downtimes due to breaks or shifts is non-preemptive priority.
to use the Shift Editor. The Shift Editor also has Scheduled... Select YES if the downtime is to
be counted as a scheduled downtime. Select NO
ProModel 109
User Guide
if the downtime is to be counted as a non-sched- included in the Frequency and First Occurrence
uled downtime. fields. (See the “Appendix A” on page 587 to see
if the specific statement or function is valid in a
All scheduled downtimes will be deducted from
particular field.)
the total scheduled hours reported in the output
statistics and, therefore, will not be considered in
computing utilization, percent down, and so on.
Logic Enter any logic statements to be pro-
cessed when the downtime occurs. When the
logic has completed, the location becomes avail- Frequency The number of entities to be pro-
able. In the most simple case, the logic is simply cessed between downtime occurrences. This may
a WAIT statement with a time value or expres- be a constant value or a numeric expression and
sion which represents the duration of the down- is evaluated as the simulation progresses.
time. Click on the heading button to open a larger First Occurrence The number of entities to be
edit window. processed before the first downtime. This may be
Disable Select YES to temporarily disable the a value or a numeric expression. If left blank, the
downtime without deleting it from the table. first downtime will be based on the frequency
entered.
The example above shows a simple clock-based
downtime where the location is down for 10 min- Logic Any logic statements to execute when the
utes every 2 hours (120 min). Because this time downtime occurs. Normally, this logic is simply a
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
until M1 becomes available.
The Entry Downtime Editor consists of the edit
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
110 Chapter 5:
Locations
downtime, only the first downtime resumes after Logic Any logic statements to be processed
processing the entities. All others are ignored. when the downtime occurs. Typically, this field
contains a time expression representing the
length of the downtime. Click on the heading but-
ton to open a larger edit window.
Usage Downtime Editor Disable Select YES to temporarily disable the
Usage downtimes are used to model downtimes downtime without deleting it from the table.
that occur after a location has been operating for
In this example, Robot2 will experience break-
a certain amount of time, such as if a machine
downs according to a Gamma distribution with
fails due to wear after so many hours of opera-
shape and scale parameters 1.7 and 2.3. Mainte-
tion. Usage downtimes are different from clock
nance resource M1 will be used to service the
downtimes because usage downtimes are based
robot. The repair time is normally distributed
on location operation time, which does not
with a mean of 2.4 minutes and a standard devia-
include blocked time. Clock downtimes are based
tion of .3 minutes.
on total elapsed simulation time (operation time,
blocked time, idle time). Usage downtimes are
available only for single-capacity locations. Please note
The Usage Downtime Editor consists of the edit
Usage-based downtimes do not accumulate. For
table shown below. It contains fields for defining
example, if a downtime cannot occur because the
location downtimes based on the actual time in
priorities of the entities being processed are at
use. Most functions, including distributions can
least 2 levels higher than the priority of the
be included in the Frequency, First Time, and Pri-
downtime, only the first downtime resumes after
ority fields. (See the “Appendix A” on page 587
processing the entities. All others are ignored.
to see if a specific function is valid in a particular
field.)
Priority The priority, between 0 and 999 of the Note that a setup downtime is assumed to occur
downtime. The default priority is 99, which is the only when an entity arrives at a location and is
highest non-preemptive priority. Generally, different from the previous entity to arrive at the
usage downtimes tend to be preemptive and location. Consequently, the word ALL in the
should have priority values greater than 100. prior entity field means all except the same entity
type.
ProModel 111
User Guide
The Setup Downtime Editor consists of the edit statement, the called downtime will execute its
table shown below. It contains fields for defining logic.
location downtimes based on the arrival of a new
entity type.
99. Priorities greater than 99 are used for pre- Assigning Priorities
empting (bumping or displacing) entities or An entity or downtime accesses a location based
downtimes currently occupying a location. on its priority. An entity is assigned a priority for
Priority values are divided into ten levels (0 to accessing a location in the Destination column of
99, 100 to 199, ..., 900 to 999), with values the Routing edit table. A downtime is assigned a
beyond 99 used for preempting entities or down- priority in the appropriate Downtime edit table.
times of a lower priority level. Multiple preemp- The first of the following examples shows a pri-
tive levels make it possible to preempt entities or ority of 100 assigned to EntA as it tries to claim
downtimes that are themselves preemptive. This Loc2. This priority is high enough to preempt any
means that an entity, EntA, with a priority of 99 entity at the location having a priority less than
can be preempted by another entity, EntB, with a 100. It is not high enough, however, to preempt
higher priority level of 199. In turn, another any downtimes at the location.
entity, EntC, with a priority of 299 can preempt
EntB at the same location. Process Table
To preempt an entity currently using a location, a Entity Location Operation (min)
preempting entity or downtime must have a prior- EntA Loc1 USE Res1 FOR N(3,.1)
ity at least ONE level higher than the entity cur-
rently at the location. To preempt a downtime in Routing Table
effect at a location, a preempting entity must
Blk Output Destination Rule Move Logic
have a priority at least TWO levels higher than
1 EntA Loc2, 100 First 1 MOVE FOR 1
the current downtime. Since all overlapping loca-
tion downtimes are processed concurrently This example shows a priority of 200 assigned to
(except setup downtimes), a downtime cannot, in a usage-based downtime at Loc4. This priority
effect, preempt another downtime. can preempt any entity at the location with a pri-
ority less than 200.
A preempted entity will resume processing where
it left off unless the location was in the middle of
a setup downtime. If the entity initiated a setup
downtime before being preempted, it will begin
processing the setup logic from the beginning
when it resumes.
The following table shows the minimum priority
level requirements for an incoming entity or an
upcoming downtime to preempt the current entity
or downtime at the location.
ProModel 113
User Guide
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 115
User Guide
By Turn Rotates the selection among the avail- which has an “Oldest by Priority” rule for select-
able units. ing incoming entities.
Most Available Capacity Selects the unit hav-
ing the most available capacity. This rule has no
effect with single capacity units.
Fewest Entries Selects an available unit with the
fewest entries.
Random Selects an available unit randomly.
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 119
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
Icon This is the graphic icon used to represent Graphic Editor to create new icons.)
the entity during the animation. Entity graphics 4. Edit the name and other default entries for
are defined or modified using the Entity Graphics the entity in the Entity edit table.
window. This icon can vary during the simula-
tion. See “Defining Multiple Entity Graphics” on
page 120.
Name The entity name. See “Names” on
page 404 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.
Defining Entities
Entity Graphic Dimensions
Entities are typically defined graphically by
clicking on a desired library graphic in the Entity An entity has two sets of dimensions, a logical
Graphics window. Alternatively, you may define (length and width) dimension, and a graphical
entities by simply entering their names and char- (horizontal and vertical) dimension. An entity's
acteristics in the Entity edit table. Entity graphics length and width are used to determine the num-
are optional. ber of entities that can fit on a conveyor, and do
not affect the size of the graphic on the screen
120 Chapter 5:
Entities
during a simulation. They are changed in the changes automatically to maintain proportional-
fields labeled Length and Width in the Entity ity.
Graphics window. If multiple graphics are
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 Defining Multiple Entity Graph-
as long as the proper side is referenced when
defining a conveyor. If no conveyors are defined
ics
in the model, no specifications of a length and Entity types can be assigned more than one
width are necessary. graphic to represent the entity at various stages of
An entity's horizontal and vertical dimensions are production or traveling in different directions. An
used to determine the size of the graphic on the entity representing a loan application could be
screen. These dimensions can be changed in two assigned three graphics: the first representing the
ways. The scroll bar to the right of the graphic application before a credit check has been
will scale the graphic. In addition, the horizontal received, the second representing the application
and vertical dimensions can be changed by click- after receiving the credit check but before the
ing on the Edit button, then clicking on the loan is approved, and the third representing the
Dimensions... button from the resulting dialog application after the loan is approved. During the
box. The default dimensions are determined simulation, the application’s status could be
when an icon is created to scale in the Graphic shown by adding additional graphics to represent
Editor. If the size is changed using the scroll bar, each state of the loan process using the
the change will be reflected in the dimensions GRAPHIC statement (see “Graphic” on page 492
listed. If you change either the horizontal or verti- for information).
cal dimension from the dialog box, the size of the
icon will change accordingly.
Please note
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 123
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 404. 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 132). 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 269. How to create a path network
T/S Set to either Time or Speed and Distance graphically:
as the basis for measuring movement along the
network. See the discussion on Automatic Time 1. Set the default time and distance values
and Distance Calculation later in this section for per grid unit from the Grid dialog box.
more information. 2. Choose Path Networks... from the Build
Paths The number of path segments in the net- menu.
work. Clicking on the heading button opens the 3. Enter the name of the network in the Path
Path Segment edit table where the user may Networks edit table.
define the network's node to node connections.
ProModel 125
User Guide
from node N7 to node N6, or they can have any Time If travel along the network is to be mea-
number of joints, such as the segment from node sured in time rather than in speed and distance,
N2 to node N5. 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
speed of the resource or entity.
Path Segment Edit Table
The value entered may be any numeric expres-
This table is used to define the Path Segments sion except for attributes, arrays, and system
that make up a path network. When specifying functions. This expression is evaluated only
travel according to time between nodes, the head- when the simulation begins.
ing “Distance” changes automatically to “Time.”
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.
Path segment editing notes:
To The ending node of the path segment.
1. If no path segments have been defined for a
BI Set to Uni-directional or Bi-directional network, resources and entities will move from
depending on whether traffic can travel in only node to node in zero time. See “Processing” on
one or either direction.
ProModel 127
User Guide
page 149 for more information about the Routing 4. Enter the time and distance values as
Move dialog box. shown below.
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.
4. Click on the Destination heading button In this example, we wish to force resources and
and select the desired node(s). entities enroute from Loc1 to Loc4, Loc5, or
Loc6 to take the branch directly connecting node
N2 and node N5 to avoid traffic congestion at the
intersection of the two main branches at node N3.
How to create mappings graphi- Since there are multiple ways to go from N2 to
cally: N5, a decision as to which alternative will be
used has to be made at N2.
1. Click on the Mapping... heading button in In addition, we want resources and entities to fol-
the Path Network edit table. This will open the low the same path in the opposite direction when
Mapping edit table. enroute from Loc4, Loc5, or Loc6 to Loc1. In
2. Click on the from node in the Layout Win- this case, the decision must be made at N5.
dow. This places the selected node in the
From field. Because the combined length of segments con-
necting N2 to N3 and N3 to N5 is shorter than the
3. Click on the to node in the Layout Win- length of the single segment from N2 to N5,
dow. Note that the to node must be directly
resources and entities based on speed and dis-
connected to the from node with a single
branch.
tance will normally take the former path to travel.
130 Chapter 5:
Path Networks
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 132).
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.
individually for each unit of a resource. The box is checked in the window, selecting a graphic
options are as follows: creates a new resource. Multiple graphics are
defined for a given resource by selecting the
•None: No statistics are gathered.
desired resource and unchecking New. This pro-
•Summary: Average utilization and activity
cedure causes a scrollable row of graphic cells to
times are recorded collectively for all units appear which are automatically and sequentially
of the resource. numbered beginning with 1. Graphics may be
•By Unit: Statistics are gathered for each added or replaced for a given resource by click-
unit individually as well as collectively. ing on the desired cell and selecting a library
Specs... Select this field to open the Resource graphic from the graphics menu.
Specifications dialog box. From here you can
By using the GRAPHIC statement in resource
assign a path network, set the resource speed, and
downtime logic, or in the case of a dynamic
define pickup and deposit times. For more infor-
resource, node logic, any of the multiple graphics
mation on the Specification dialog, see assigned to a resource may be activated during
“Resource Specifications Dialog Box” on simulation. For static resources, you may define a
page 143. second or third graphic to be used automatically
Search... If a path network has been assigned, when the resource is busy or down, respectively.
select this field to access the Work Search and
Resource graphics may be sized using the scroll
Park Search edit tables, used to define optional
bar or edited by clicking the edit button. Edit
work and park searches.
options include rotating, flipping horizontally or
Logic... If a path network has been assigned, vertically, and changing the color of the graphic.
select this field to define any optional logic to be In addition, you can specify the dimensions of the
executed whenever a resource enters or leaves a
particular path node. If you have defined a node
entry and exit logic, the logic field will show the
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.
resource graphic. For more information, see it may be used at more than one location or to
“Dimension” on page 318. move entities between locations.
changes color to green when in use and red when 7. Supply any optional information about the
down. resource including number of units, down-
times, work and/or park searches, and node
logic in the Resources edit table.
Dynamic Resources
Dynamic resources are resources that move along Please note
an assigned path network and may transport enti-
ties between locations as a forklift would. They Dynamic resources notes:
may also need to process entities at several loca-
tions, such as an operator performing tasks at 1. When defining the resource specifications, the
more than one location. For these reasons, it is default Resource Search for dynamic resources is
usually preferable to model the resource's move- Closest Resource. The default for Entity Search is
ment using a path network. Defined properly, the Closest Entity.
resource will travel along the path network dur- 2. More than one resource can use the same path
ing the simulation run. network.
you did not use multi-unit resources, you would 2. Select the resource for which the down-
need to specify “USE Technician1 OR time is to be defined.
Technician2 OR Technician3,” although this can 3. Click the DTs... button from the Resources
easily be abbreviated by using a macro to repre- edit table.
sent the resource expression. When you define
4. Select the downtime basis: Clock or
three units for a single resource, Res1, you can Usage.
simply state “USE Res1” and one resource unit
will be used based on its availability. 5. Enter the required information in either the
Clock Downtime or Usage Downtime edit
table. Each of these tables is described in the
Multiple Single-Unit Resources following pages.
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
Please note
specifications and travel the same path network
but can only do work or interface with specific Unlike location downtimes, multiple resource
locations, they must be defined as multiple sin- downtimes occurring within the same time frame
gle-unit resources. This is because a unit of a are processed sequentially, not concurrently.
multi-unit resource must be able to interface with However, through the use of the DTDelay func-
all locations where it is called to work. tion, concurrent downtimes can be achieved for
resources.
Resource Downtimes
Resource downtimes refer to the times when a
resource is unavailable due to scheduled events
Clock-Based Downtime
like breaks and shift changes, or unscheduled Clock-based downtimes for resources are speci-
events like illness and random failures. For fied through the Clock Downtimes edit table
scheduled events, it is much easier and more shown below. The fields of this table are defined
straightforward to define these downtimes using as follows:
the shift editor (see “Shifts & Breaks” on
page 168). Unscheduled downtimes, based on the
elapsed time of the simulation clock or resource
usage time, are defined in the Resources edit
table by clicking on the downtime heading but-
ton. Frequency The time between downtimes. This
may be a constant time as shown above, a distri-
How to define resource down- bution, or an expression.
times: First Time The time of the first downtime occur-
rence. Leave this field blank if the first occur-
1. Select Resources from the Build menu. rence is to be determined from the frequency
field.
ProModel 139
User Guide
Priority The priority of the downtime (0-999). Disable Select YES to disable a downtime
The default priority is 99, which is the highest without removing it from the table.
non-preemptive priority.
Scheduled... Select YES if the downtime is to Usage-Based Downtime
be counted as a scheduled downtime. Select NO A usage-based downtime is a downtime based on
if the downtime is to be counted as a non-sched- how long a resources has been used, such as how
uled downtime. (All scheduled downtimes are often a forklift needs to be refueled. Usage-based
deducted from the total hours scheduled in the downtimes for resources are specified through
statistical calculations.) the Usage Downtimes edit table shown below.
List A list of the individual units of the resource Actual time in use includes any time that a
to be affected by the downtime. You may list resource is moving with an entity or is being used
individual units of the resource, specify ALL, or by an entity at a location. It also includes any
leave blank to affect all units. time a resource is being used in downtime logic
as a maintenance resource. The fields of this table
•1,2 Units 1 and 2 only are defined as follows:
•1-3,5 Units 1 through 3 and 5 only
•none You may use none to indicate that no
unit will adopt this downtime. This is use-
ful in creating a run-time interface. By
using a macro to represent the number of
Frequency The time between downtimes,
units, the user may select none as an
based on the usage time of a resource. This may
option.
be a time distribution as shown above, or an
•Macro The name of a run-time interface
expression.
macro that allows the user to define the
units to be affected by the downtime. First Time The time of the first downtime occur-
rence. Leave this field blank if the first occur-
Node This field applies only to dynamic
rence is to be determined from the frequency
resources and defines the node to which the
field.
resource will travel to go down. If no node is
entered, the resource stays at the current node. Priority The priority of the downtime (0-999).
The actual downtime will not begin until the The default priority is 99, the highest non-pre-
resource arrives at this node. Traveling to the emptive priority.
downtime node is counted statistically as time
List A list of the individual units of the resource
traveling to park.
to be affected by the downtime. You may list
Logic... Specific logic to be performed when the individual units of the resource, specify ALL, or
downtime begins, typically a WAIT statement. leave blank to affect all units.
Resources may be used to service resources that
•1,2 Units 1 and 2 only
are down if the servicing resource is static, or if
•1-3,5 Units 1 through 3 and 5 only
the servicing resource is dynamic and uses the
same network. (See the “Appendix A” on •none You may use none to indicate that no
page 587 for a list of statements valid in unit will adopt this downtime. This is use-
Resource Downtime logic.) ful in creating a run-time interface. By
using a macro to represent the number of
140 Chapter 5:
Resources
units, the user may select none as an logic (or the subroutines called from these log-
option. ics). Priorities for resource downtimes are
•Macro The name of a run-time interface assigned in the Priority field of the Clock and
macro that allows the user to define the Usage downtime edit tables. The following
units to be affected by the downtime. examples illustrate these points.
Node This field applies only to dynamic
Process Table
resources and defines the node to which the
resource will travel to go down. If no node is Entity Location Operation (min)
entered, the resource stays at the current node. EntA Loc1 Use Res 1,200 For N(3,.1)
The actual downtime does not begin until the
resource arrives at this node. Traveling to the Routing Table
downtime node is counted statistically as time
traveling to park. Blk Output Destination Rule Move Logic
1 EntA Loc2 First 1 MOVE FOR 5
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
same network. (For a list of statements valid in When an entity using a resource is preempted by
Resource downtime logic, see the “Appendix A” either a downtime or another entity, any process-
on page 587). ing time for the preempted entity due to a WAIT
or USE statement is interrupted until the pre-
Disable Select YES to disable a downtime
empting entity or downtime releases the resource.
without removing it from the table.
If an entity is using other resources in addition to
the one preempted, the other resources remain in
Please note possession of the entity.
In the case of a resource downtime preempting
Usage-based downtimes do not accumulate. For
another resource downtime, any remaining time
example, if a downtime is preempted by an entity
delay, as well as any other downtime logic
and another downtime is scheduled to occur
remaining to be processed by the preempted
while processing the entity, only the first down-
downtime, is immediately discontinued without
time resumes after processing the entity. All oth-
resuming and the preempting downtime takes
ers are ignored.
over.
Please note
Resource Priorities and Pre-
Resource priorities and preemption notes:
emption
1. If a resource is transporting an entity, it can-
Priorities for resource requests may be assigned not be preempted by another entity or by a down-
through a GET, JOINTLY GET, or USE state- time until it drops off the current entity at the
ment in operation logic, downtime logic, or move destination location. Therefore, the resource will
ProModel 141
User Guide
deliver the current entity and then immediately the resource when the requesting entity or down-
come under control of the preempting entity or time attempts to capture it. Downtimes below
downtime. refer to clock and usage-based downtimes only.
2. If a resource is moving but does not possess Priority values are divided into ten levels (0 to
an entity, the resource can be preempted by a 99, 100 to 199,..., 900-999), with values beyond
downtime or entity. The resource will stop at the 99 used for preempting entities or downtimes of a
next node in the path network and travel to the lower priority level.
downtime node after which the resource will go
down. To Preempt To Preempt
The Current The Current
Owner Downtime
Requesting
1 priority level 2 priority levels
Resource Shift Downtime Priori- Entity or
Another higher higher
ties Resource or
Location’s
In ProModel, you define the shift downtime pri- Downtime
orities in the Shift Assignments module. The pri-
ority for a resource to start a shift downtime and Requesting 1 priority level 1 priority level
the priority required for some other task to pre- Downtime higher higher
empt the downtime must be set in the Shift
Assignments module.
•The upper-left quadrant shows that if an
Although a resource may be in use during a shift entity tries to seize a resource currently
downtime, the scheduled hours in the statistics owned by another entity (or another
will still reflect the hours scheduled to be on resource’s or a location’s downtime), the
shift. For example, a resource goes off shift after entity must have a priority at least one
eight hours. Due to an emergency, the resource is level higher than the current entity to pre-
called back two hours later to work on a machine empt the resource.
that has gone down. The statistics will still indi- •The lower-left quadrant shows that a down-
cate that the scheduled hours for the resource are time must have a priority at least one level
eight when the resource actually spent more than higher than the entity currently owning a
eight hours in use, because the resource was resource if the resource is to be preempted.
scheduled to work only eight hours. The
•The upper-right quadrant shows that an
resource's total usage time, however, will still
entity must have a priority at least 2 levels
indicate the additional time spent working on the
higher than the current downtime priority
downed machine.
to preempt a downed resource.
•The lower-right quadrant shows that a pre-
Resource Preemption Matrix empting downtime must have a priority at
least one level higher than the current
The following Preemption Matrix shows the pos- downtime to preempt it.
sibilities of entities and downtimes preempting
each other in the use of a resource. “Current” The following graphics demonstrate basic pre-
refers to the entity or downtime in possession of emption concepts.
142 Chapter 5:
Resources
Preemptive DT vs DT Total
Non-preemptive DT vs. Entity
Downtime:
T1 to T3
DT 1 Entity
Discontinue
Scheduled DT
DT 2
Actual
Time
Time
T1 T2 T3 T4
T1 T2 T3 T4
Non-preemptive DT vs. DT
Preemptive DT vs. Entity
DT 1
Entity
Scheduled DT 2
Actual DT 2
DT
Time
Time
T1 T2 T3 T4
T1 T2 T3 T4
DT 2 priority NOT at least 1 level higher than
DT 1 priority
DT priority at least 1 level higher than
entity priority
ProModel 143
User Guide
Ent 2
Time
T1 T2 T3 T4
Please note
processing location. This helps to keep the pro- Node Logic Editor
cessing locations busy at all times.
The Node Logic edit table is used to define spe-
cial logic for a dynamic resource to perform upon
Park Search Edit Table
entering or exiting a node. Node logic may be
Park searches are defined for dynamic resources defined for any dynamic resource at any node.
through the Park Search edit table shown next. If Typical uses of node logic are:
several resources share the same path network,
•Changing a resource graphic using the
each resource must have its own park search
defined (i.e., resources cannot share park GRAPHIC statement
searches). •Controlling traffic using WAIT UNTIL
statements
•Gathering special statistics on resource
movement
Node Logic Example zone. The node logic for node N5 is identical to
that for node N2.
Please note
Suppose that for safety considerations we desire This example follows the rule that allows the
to keep track of the number of times both forklifts LAST() function to be used only in Node Entry
simultaneously enter a particular zone of the net- Logic, while the NEXT() function may be used
work consisting of branches N2 to N3, N3 to N4, only in Node Exit Logic. (See “Resource-Specific
and N3 to N5. (It is thought that this zone may be System Functions” on page 435).
particularly susceptible to accidents due to heavy
traffic.) We could accomplish this using node
logic at the entry and exit points of the zone.
Resource Points
The only way to enter or exit the zone is through
nodes N2 and N5. To track the number of fork- For a static resource, resource points are the lay-
lifts currently in the zone, we increment and dec- out coordinates of the resource graphics. For
rement a variable called Current. Each time a dynamic resources, resource points are auxiliary
forklift leaves node N2 or N5 en-route to node points where multiple resources may appear
N3 we increment variable Current. Each time a graphically when in use or parked at a multi-
forklift enters node N2 or N5 enroute from N3 we capacity node. When a resource arrives at a node,
decrement variable Current. Finally, each time it will appear on that node unless a resource point
we increment the variable Current, we check to is defined for that resource at that node. The
see if Current > 1. If so, we increment a second resource will appear on the resource point when it
variable called Total to record an occurrence of arrives to park or perform a task at a particular
both forklifts in the zone at the same time. node. Resource points prevent resources from
appearing on top of each other. In the case of
The following windows show the entry and exit
dynamic resources, resource points are defined in
logic for node N2, representing one entry to the
terms of an offset from the node to which they are
connected. Resource points are defined in terms
of an offset from the upper left corner of the lay-
out for static resources.
The following Resource Points edit table shows
that node N8 has two resource points attached to
148 Chapter 5:
Resources
it. The horizontal offset is 0 units for each point. Please note
The vertical offset is 13 units both up and down
from the node position. (For resource points posi- Resource points are automatically added to the
tive distances are up and to the right.) home node for each resource graphic placed on
the layout.
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 at the end of this section.
routings: 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 •Layout Window
and select Edit.
150 Chapter 5:
Processing
Before discussing the procedures for using these in the edit field at the top of the list—this entity
windows interactively, let us look briefly at a will come into the location, it is not the entity
process flowchart of a simple model. that results from the process.
2. Select the desired editing mode: New Pro-
Example Model cess or Add Routing.
3. Click on the first location where the entity
Two entity types, EntA and EntB, arrive at Loca-
will process. A rubber-banding routing line
tions 1A and 1B, respectively, according to some
appears. If you select Add Routing, the rub-
specified arrival logic. After a short preparation ber-banding routing arrow automatically
time, both entities are routed to Location 2 where appears from the current location.
1 EntB is joined to 1 EntA. At this point the
4. To choose a different entity as the output
resulting entity, EntC, is sent to Location 3 for
entity, select the desired output entity in the
consolidation. Twelve EntC's are accumulated at
tools window.
Location 3 and processed together for 3.0 min-
utes. Then they exit the system. 5. Click the destination location.
EntB @ Loc1B
EntB
EntB 1.0 min 1 Exit
Arrival Processing
Logic Logic
7. From the final processing location route an shown in their default arrangement, you may
entity to Exit by clicking on the “Route to Exit” arrange them as desired.
button in the Tools window.
8. Once all routings have been defined,
enter the processing logic in the operation
field of the Process edit 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
nations for the entity. Because there is no routing, operations performed on other entities at the
after the entity finishes that process, ProModel same location.
will search ahead in the Process edit table for a
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 typ-
ically 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- For more information see “Operation Logic” on
ties, that would be specified here as well. In fact, page 299.
anything that needs to happen to the entity at the
location should be specified here, except for any Using the “ALL” Entity Type
information specified in the entity's routing.
The reserved word ALL may be entered as the
Statements can be typed directly into the opera- processing entity if all entity types at that location
tion field, or inside a larger logic window after have the same operation. ALL may also be used
double clicking in the field or clicking on the in the output field of the routing if all entity types
Operation button. Alternatively, the Logic at that location have the same routing. If a pro-
Builder can help build logic and is accessed by cess record for a location using ALL as the entity
clicking the right mouse button inside the opera- follows several process records for the same loca-
tion field or logic window. All of the statements, tion using specific entity names, and each process
functions, and distributions available in the oper- record has a defined routing, the ALL process is
ation field are discussed in detail, including interpreted to mean ALL of the rest of the enti-
examples, in “Statements and Functions” on ties. The following examples show how ALL
page 439. may be used in different situations.
Each entity performs the operation steps defined
1.All entities have a common operation
for it at a particular location, independent of other
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-
154 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
EntB Loc1 WAIT .5
records need to have a corresponding routing. If
EntC Loc1 WAIT .6
the routing is omitted, ProModel will search for-
ALL Loc1
ward in the Process edit table for another process
for that entity at that location. So an entity's com-
Routing Table
plete processing at a location could be broken
Blk Output Destination Rule Move Logic into several 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 541).
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
156 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 552).
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 defaults first to the current field entity, then to the
2 EntC Loc3 FIRST 1 MOVE FOR 2 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 The example below shows how an incoming
entered here. This name may be the same as the entity, EntA, changes identity and becomes an
entity that entered, or it may be another name, or EntB upon exiting location Loc1. This is done by
even several names, each on a different line. 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 157
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 159.
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 415. 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
Any delay occurring as a result of move logic is to represent all entity types. The entity in Pro-
reported as part of the entity’s move time. For cessing Tools applies to either the process or
160 Chapter 5:
Processing
New Process Mode 1. Click inside the desired record in the Pro-
cess 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 create or delete a joint.
using the 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 processed in the layout window. A new Add Routing Mode is used to create multiple
process record is created in the edit table. routings for a single process record. Suppose an
The mode is automatically switched to Add entity, EntA, can travel to one of three locations
Routing mode and a rubber banding line depending on which is available first. Selecting
appears that connects the mouse pointer to the New Process mode and then defining the
the location. entity process causes the entity to travel from one
4. If a different entity is to be output from the location to another location. Selecting Add Rout-
process, select it from the Tools window. ing mode afterwards allows you to define a dif-
ferent destination location within the same
5. Click on the destination location. A new
routing record appears in the edit table and routing block.
the mode switches back to New Process
mode. How to add additional routings to
an existing routing block:
line (you may use the Find Process button to 5. Click the Route to Exit button in the tools
locate the process record). dialog.
2. If you wish to insert the routing record
rather than simply append the record to the
current routing list, highlight the routing
record where the routing is to be inserted and Find Process Mode
choose Insert from the Edit menu. To find a previously created process for an entity
3. Select the Add Routing button from the type at a certain location, use Find Process mode.
Tools window. A rubber-banding line is cre-
ated.
How to find a process for an entity
4. Select the entity in the Tools window to be at a location:
output in this routing.
5. Click on the desired destination location. 1. Click on the Find Process button.
This creates a new routing record in the Rout-
ing edit table. 2. Click on the desired entity type.
3. Click on the desired location. The first pro-
cess found for that entity type at the location
will be highlighted in the Edit window.
Please note
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 dynamically uled to arrive at a location simultaneously, they
vary the time of the first arrival to your model. will arrive in the order they are listed in the
You may define scheduled arrivals to occur at Arrivals table. To have them alternate their
given intervals (e.g., appointments) or use an arrivals, enter a 1 in the “Qty each” field and the
arrival cycle to define random arrivals over a total entry quantity in the “Occurrences” field.
period of time (this value is the start time for the 2. Arrivals defined through an external arrival
first cycle). ProModel evaluates this field only at file will be appended to the arrival list. There-
the beginning of the simulation. fore, if an external arrival file is the only source
Occurrences The number of times per simula- of arrivals, the Arrival edit table may be left
tion run that ProModel will generate arrivals (1 - blank. See the section on External Files for more
999999). Entering the reserved word INFINITE information 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,
Frequency The inter-arrival time or time the arrival location may not have enough capac-
between arrivals. Any valid expression may be ity to 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.
ProModel 165
User Guide
2. Select the desired entity from the Tools win- Independent Arrivals
dow.
An independent arrival is any arrival assigned to
occur at a specific time or at a fixed interval.
Independent arrivals include such things as
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.
3. Click in the layout window at the location
where the entity is to arrive. (You may need When defining independent arrivals, you may:
to scroll through the layout to bring the
•Define them by elapsed time, day and time,
desired location into view.)
or calendar date.
4. Enter the specifications for the arrival •Assign them to occur at fixed intervals (e.g.,
record (e.g., arrival quantity and frequency). interviews scheduled every fifteen min-
utes).
1. Select Arrivals from the Build menu. When you define independent arrivals as inter-
vals, the next arrival time is independent of the
2. Enter the Entity, Location, and Quantity
previous arrival. For example, applicants will
through either the keyboard or by clicking on
the respective heading buttons and choos- arrive for appointments based on the clock
ing the proper information. time—not the time elapsed since the last arrival.
3. Enter the First Time, Occurrences, and Fre-
quency using either the keyboard or the
statement builder (accessed by right clicking
•Allow a positive or negative offset to adjust
inside the desired field).
the scheduled time of arrival (e.g., appli-
4. Enter the time of the first arrival by clicking cants must arrive at least ten minutes prior
on the First Time button. (See “Independent to their interviews).
Arrivals” on page 165 for more information on
•Define a distribution to allow variability
the First Time dialog.)
from the adjusted arrival time.
5. Click on the Logic or Notes heading button •Allow the possibility that an entity will not
to enter desired logic or notes.
arrive at all.
•Define specific appointment types for only
certain resources or resource types.
166 Chapter 5:
Arrivals
How to define independent arriv- and time or calendar date and click the Edit
als: Arrival Time button.
beta distributions provide the most realistic The samples have different processing times
variation. depending on the test performed. To differentiate
between the different types of samples, we assign
Variation an entity attribute called Sample_Type to the
samples. We define a discrete, non-cumulative
Arrival Appointment user distribution called Test1 with the following
Time Time information:
9:50 AM 10:00 AM The arrivals logic for the entity called Test1 is as
follows:
8. In the Occurrences field of the arrivals edit
table, enter the number of times to repeat
this appointment 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.
168 Chapter 5:
Shifts & Breaks
• Select a block and choose the Delete Customizing Shift and Break
option from the Edit menu. Colors
The colors that represent shifts and breaks can be
or... customized.
How to assign locations and also selects or removes it. Click OK when fin-
ished.
resources to shifts:
File Open dialog and select the shift files you resource or location back on line. You can
want to use in the model. also use macros to specify priorities.
Please note
You may want to use the Logic Builder to help
you enter the logic. Just click on the Build button
in the logic window. If the off-shift and break nodes are not specified
in the Resource Specs dialog, the resource will
Pre-Off Shift or Pre-Break Logic Executed stay at the current node. If no resources or loca-
whenever the location or resource is scheduled to tions are assigned to a shift, the shift is ignored.
go off shift or on break. This occurs before the
location or resource is checked for availability, so
it 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.
The logic is executed for each resource and loca- ProModel uses several functions and statements
tion listed as members for this shift assignment specifically for shift and break logic: SKIP, PRI-
record. This allows some members to be taken ORITY, DTLEFT(), FORLOCATION(), and
off line while others may be forced to wait. (Pre- FORRESOURCE(). Following is a brief descrip-
off shift and pre-break logic may be referred to in tion of each. For more details, see “Statements
this manual as pre-logic when speaking of either and Functions” on page 439.
one.) SKIP If used in pre-logic, it causes the off-shift
Off Shift & Break Logic Executed at the instant or break time (including any off-shift or break
the location or resource actually goes off line. logic) to be skipped so a location or resource
never goes off line. If used in the off-shift or
break logic, it causes the off-line time defined in
ProModel 175
User Guide
the shift editor to be skipped. This allows you to Pre-off shift logic
specify a WAIT statement for the off-line time
and SKIP the off-line time defined in the shift IF FORRESOURCE() THEN
editor.
BEGIN
PRIORITY This statement provides an alternative
IF RESOURCE() = Loan_Officer THEN
way to specify off-shift or break priorities. It also
allows the priority to be changed after some time BEGIN
being off-shift or on break. If the priority is WAIT UNTIL Applications = 0
changed to a value lower than the current value,
END
the system will check to see if any preemption
may occur at that time. This statement is not END
allowed in off-shift or break pre-start logic.
DTLEFT() This function returns the remaining
off-shift time based on when the location or In addition to these functions, DTDELAY() may
resource is scheduled to go back on shift as also be called at the beginning of the off-shift or
defined in the shift file. It may be used in off-shift break logic to determine how much time has
and break logic to adjust the actual time the loca- elapsed between the time the shift downtime was
tion or resource is off-line. scheduled to start and when it actually started.
The length of the shift downtime defined in the
FORLOCATION() This function returns TRUE if
shift file would be the sum of DTDELAY() and
the member for which the shift or break logic
DTLEFT().
being executed is a location. This may be fol-
lowed by a test using the LOCATION() function
to determine the precise location. Preemptions to Off-Shift or Break
Logic
FORRESOURCE() This function returns TRUE if
the member for which the shift or break logic If off-shift or break logic is defined using WAIT
being executed is a resource. The RESOURCE() or USE statements and happens to get preempted,
function may then be used to determine the pre- the logic will resume one statement after the
cise resource if multiple resources are listed as WAIT or USE statement where it was preempted.
members.
RESOURCE() This returns the name-index num- Shift Downtime Principles
ber of the resource currently processing the off-
shift or break logic.
Locations Shift Downtime
To illustrate how FORLOCATION() and FOR- Principles
RESOURCE() might be used, consider the fol-
lowing example: Suppose you have locations and It is important to understand that when a location
resources as members in a shift file assignment or resource goes off shift, it is essentially down.
and you want to wait until variable Applications We call this type of downtime a shift downtime
is equal to zero before allowing a particular and it is treated slightly differently from other
resource called Loan_Officer to go off shift. You downtimes. Breaks, which are also part of the
would enter the following pre-off shift logic: shift schedule, are treated exactly like clock-
based downtimes. These downtimes are dis-
176 Chapter 5:
Shifts & Breaks
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 177
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-
178 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 179
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:
Other common uses of termination logic include:
•Displaying messages
•Resetting read/write files
See the following page for a discussion on the
placement of initialization and termination logic
within the sequence of run-time events.
Please note
you select Run from the Simulation menu the fol- into the simulation module. Thus, any variable
lowing things occur in the order listed: figuring into a location's capacity and initialized
in the initialization logic will be initialized too
1. Variables are initialized to the values speci-
late to affect the location's capacity.
fied in the Variables Editor.
2. Macros with a run-time interface are set to Variables which do not figure into a location's
their user-specified value. capacity may be initialized in the Initialization
3. The model is loaded into the simulation Logic without any problem. A variable initialized
module. As the model is loaded, any numeric in the initialization logic could be used as the
expressions used to define such things as “First Time” for an arrival or downtime occur-
location capacities or number of resource rence. This is true because arrivals and downtime
units are evaluated and assigned a numeric occurrences are simulation events, and all initial-
value. ization logic occurs before the first simulation
4. Initialization logic is performed. event.
5. Simulation begins. Initial arrivals and down-
times are scheduled and simulation pro- Graphic Library File
cesses begin.
6. Simulation ends. ProModel allows you to create and store as many
7. Termination logic is performed. graphics libraries as desired. However, only one
8. 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 316.
are:
•Simulation warm-up hours How to select the desired graph-
•Simulation run hours ics library:
•Node capacity
•Length of path segments 1. Select Graphic Library File from the Gen-
•Resource units eral Information dialog box.
•Location capacity
•Time and quantity cycle tables
•Queue length
•Conveyor length
•Conveyor speed
For a complete list of when each field is evalu-
ated, see the “Appendix A” on page 587.
Any variables used in an expression that change
any of these logic elements should be initialized
in the Variables Editor or run-time interface and
not in the initialization logic. The model structure 2. Enter the name of the desired graphics
cannot change after the model has been loaded library.
182 Chapter 5:
General Information
3. Select OK.
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 187. 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 entities add their costs to their base
entities, but not their time statistics.
•Loaded entities do not add their costs or time
statistics to their base entities.
Please note •When an UNLOAD occurs, ProModel
divides all costs accrued by a loaded entity
The following scenarios assume you defined costs among the unloaded entities. ProModel
for all model components. adds all other entity statistics calculated
during the loaded period to each of the
unloaded entities.
•Entities leaving the system loaded onto other
entities do NOT report their individual
Preemption/Downtime costs, but do report all other statistics. To
•If you preempt an entity’s resource, an addi- get the cost of each entity, you must
tional cost per use will apply once you re- unload the entities before they exit.
acquire the resource. While waiting for the
resource to return, the entity does not
record operation or resource costs. Combine/Group
•If an entity preempts another entity, the pre- •Combined entities add their costs to the
empted entity continues to record opera- resultant entity, but not their time statis-
tion time during the entire preemption tics. The resultant entity begins with fresh
period. While the preempting and pre- time statistics.
empted entities are simultaneously at a •Grouped entities do not add their costs or
location, the location records the cost for statistics to the group shell (a temporary
186 Chapter 5:
Cost
•% 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
In the above calculations, the rate defined (per
•Total Cost = Usage Cost + NonUse Cost
day, hour, minute, and second) converts to the
•% Total Cost refers to the resource’s per- default time units specified in the General Infor-
centage of the sum of all resource costs mation dialog.
Entities
Please note
• Explicit Exits The number of entities that
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 or COMBINES to GetCost (e.g., Var1=GetCost), you can gener-
with another entity, it implicitly exits the ate a time series graph to track changing entity
system, and is reported as an exit in the costs. See “GetCost()” on page 488 for more
Entity Acitvity report. However, for information.
costing purposes, the entity did not
explicitly exit, but its costing informa-
tion was added to the entity it was
JOINED or COMBINED with. Enable or Disable Costing
- When an entity LOADS or GROUPS
To enable the costing feature, be sure that the
with another entity, and the entire
Disable Cost option in the Simulation Options
LOADED or GROUPED entity exits the
dialog is not checked.
system, the original entity implicitly
exits the system, and is reported as an
exit in the Entity Acitvity report. How-
ever, for costing purposes, the original
entity did not explicitly exit, but its cost-
ing 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
• % Total Cost % Total Cost refers to the
entity’s percentage of sum of all entity
costs
In the above calculations, the rate defined (per
day, hour, minute, and second) converts to the
188 Chapter 5:
Tanks
Please note
How to change between a tank the Subroutine module. To call these subroutines
and a gauge and 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
contents. To monitor tank levels and initiate
flows, you must define control subroutines using
190 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., mix-
The only adverse effect of using a large time step ing, reacting, heating). Set automatically when
is that any WAIT UNTIL statement or other test the model calls the Tank_DoOperation subrou-
based on the Tank_Level array may be off by as tine.
much as the flow amount for the time step. For
example, if the time step is .5 minutes and the rate Tank_Setup The tank is cleaning or preparing
of flow is 60 gpm, the level will change in 30 gal- for future use. Set automatically whenever you
lon increments. This means that the tank will not call the Tank_Prep subroutine.
satisfy the statement “WAIT UNTIL Tank_Filling The tank is filling. Set automati-
Tank_Level[TankA]>=31” until the level cally whenever you fill the tank.
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
Rate of Flow transfer. Set automatically when the tank fills to
To use flow rates properly, you must define all capacity.
rates in terms of units (i.e., gallons, pounds) per Tank_Down The tank is down. Set automati-
time unit defined in the General Information dia- cally whenever you call Tank_GoDown.
log. Whenever you call one of the empty, fill, or
transfer subroutines, you must specify the rate of
ProModel 191
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 201) 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.
192 Chapter 5:
Tanks
Please note
tines
Tank_Cap .............................................. page 200 Description
Tank_Dec............................................... page 198 Fills a tank using a specific quantity and rate. The
Tank_DoOperation ............................... page 201 default tank state sets to Tank_Filling, then to
Tank_Blocked if the tank becomes full.
Tank_DoPrep ......................................... page 203
Use Tank_Fill when the source of the material is
Tank_Empty ........................................... page 194 not another tank, but an arriving entity or a
Tank_FallTrigger .................................... page 200 source that is not part of the model.
Syntax samples
Example
TANK_FILL (<Tank ID>, <Fill Quantity>, <Fill
Rate>, <Resume Level>)
194 Chapter 5:
Pre-defined Tank Subroutines
A tanker arrives and fills a storage tank by the The tank name or location index number.
quantity stored in the tanker’s attribute,
<Empty Quantity>
Load_Qty. The rate of fill is 80 gpm and, if the
tank fills to capacity before the tanker dis- The number of units (gallons, pounds) to empty. To
charges the entire quantity, the level of the empty a tank completely of its current contents, enter
storage tank must drop to 12,000 gallons Tank_Level [<Tank ID>].
before it resumes filling. To represent this, <Empty Rate>
enter the following statement in the opera-
tion logic for the tanker at the unloading sta- The rate in units (gallons, pounds) per time unit
tion. defined in the General Information dialog. To instantly
decrease the level of a tank, use the Tank_Dec subrou-
Tank_Fill(StorageTank, Load_Qty, 80, 12000) tine. To specify a dynamically calculated rate using the
Tank_Rate subroutine, enter 0.
<Resume level>
See Also If the tank level drops to 0 before you empty the speci-
fied quantity, the tank must rise to the resume level
“Filling from an Entity” on page 210 and “Initial-
before continuing to empty. To terminate emptying if
izing and Replenishing Supply Tanks” on the level ever drops to 0, enter Tank_Stop. A value of 0
page 210. causes an error to occur if the tank becomes empty
before removing the specified quantity.
Tank_Empty
Example
Syntax samples When a chemical tank, ChemTank, is full
(state is Tank_Blocked), workers pump its con-
TANK_EMPTY (<Tank ID>, <Empty Quantity>, tents into a rail car at a rate of 60 gpm for
<Empty Rate>, <Resume Level>) transportation to another facility. Since rail
TANK_EMPTY (TankB, 2000, 40, 0) cars are always available and the delivery
activity is not of interest, it is not necessary to
model the rail cars explicitly. Instead, activate
a subroutine in the initialization logic with the
following statement:
Description
Tank_Loop //logic repeats continuously
Empties a tank by a specified quantity and rate.
The state is set to Tank_Emptying, then to {
Tank_Idle if the tank becomes empty. WAIT UNTIL
Tank_State[ChemTank]=Tank_Blocked
Use Tank_Empty when the destination is not
another tank, but an arriving entity or a source Tank_Fill(ChemTank, Tank_Level[ChemTank],
that is not part of the model. 60, 0)
}
Components
<Tank ID>
ProModel 195
User Guide
See Also The rate in units (gallons, pounds) per time unit
defined out of the FROM tank. To use a dynamically
“Emptying to an Entity” on page 211. calculated rate in the Tank_Rate subroutine, enter 0.
<TO Rate>
Tank_Transfer The rate in units (gallons, pounds) per time unit
defined in the General Information dialog into the TO
Syntax samples tank. Use 0 if same as the FROM rate. (The TO rate is
automatically the same as the FROM rate if you add 0
as the FROM rate.)
TANK_TRANSFER (<FROM Tank ID>, <TO Tank
ID>, <Transfer Quantity>, <FROM Rate>, <TO <Resume level>
Rate>, <Resume Level>) If the TO tank reaches capacity before the specified
TANK_TRANSFER (Tank1, Tank2, 2000, 100, 0, quantity transfers, the TO tank must drop to the resume
0) level before continuing with the transfer. To terminate
transferring when the TO tank reaches capacity, enter
Tank_Stop. A value of 0 causes an error to occur if the
tank becomes empty before transferring the specified
Description quantity.
Components
See Also
<FROM Tank ID>
“Tank Transfers” on page 212.
The name or location index number of the FROM tank.
<TO Tank ID>
The name or location index number of the TO tank.
Tank_TransferUpTo
<Transfer Quantity>
Syntax samples
The number of units (gallons, pounds) to transfer. To
transfer the entire contents of a tank, enter Tank_Level
[<FROM Tank ID>]. TANK_TRANSFERUPTO (<FROM Tank ID>, <TO
Tank ID>, <TO Level >, <FROM Rate>, <TO
<FROM Rate> Rate>)
196 Chapter 5:
Pre-defined Tank Subroutines
you are not certain how much to empty in order Tank_TransferDownTo(TankA, TankB, 200, 50,
to drop to that level (e.g., the tank may fill at the 0)
same time it empties). }
Components
An in-process tank, TankA, supplies TankB at a Use Tank_SetLevel when you want to initialize a
rate of 50 gpm. TankA must maintain a mini- tank to a specific level.
mum level of 200 gallons to insure against
pump cavitation. When TankA’s level drops Components
to 200 gallons, the tank stops pumping to
TankB until the level of TankA rises above 200
<Tank ID>
gallons. To model this scenario, enter the fol-
lowing logic in the subroutine controlling the The tank name or location index number.
flow from TankA to TankB:
<Quantity>
Tank_Loop //logic repeats continuously
The level at which to set the tank (number of gallons,
{ pounds). To completely fill the tank, enter
Tank_Cap(<Tank Name>).
WAIT UNTIL Tank_Level[TankA]>200
198 Chapter 5:
Pre-defined Tank Subroutines
Tank_Inc
Tank_Dec
Syntax samples
Syntax samples
TANK_INC (<Tank ID>, <Quantity>)
TANK_INC (StorageTank, 5000) TANK_DEC (<Tank ID>, <Quantity>)
TANK_DEC (SupplyTankB, 1000)
Description
Instantly increases the level of a tank by a speci- Description
fied quantity. If the tank has insufficient capacity, Instantly decreases the level of a tank by a speci-
the level increases as capacity becomes available. fied quantity. If the tank has insufficient quantity,
ProModel sets the tank state to Tank_Blocked if it empties as material becomes available. Pro-
the level increases to the tank capacity, otherwise Model sets the tank state to Tank_Idle if you
the state remains unchanged. decrease the level to 0. Otherwise the state
Use Tank_Inc to instantly add a specific quantity remains unchanged.
to a tank. Use Tank_Dec to instantly remove a specific
quantity from a tank.
Components
Components
<Tank ID>
The tank name or location index number. <Tank ID>
<Quantity> The tank name or location index number.
ProModel 199
User Guide
<Quantity> Components
The number of units by which to decrement the con-
tents of the tank (gallons, pounds). <Tank ID>
The tank name or location index number.
Example <Level>
A fill tank fills one 10-gallon container every 15 When the tank level rises to this value, ProModel exe-
seconds. After filling, each container moves cutes any subsequent logic.
to a location called FillStation. To model this
activity, define the following activated sub-
routine (this subroutine creates a filled con- Example
tainer every 15 seconds):
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
WAIT 15 SEC point, a signal dispatches the tanker to the
Tank_Dec(FillTank, 10) finished goods tank for loading. Meanwhile,
the finished goods tank continues filling. To
ORDER 1 Container TO FillStation model this situation, define the following pro-
} cess logic for the tanker at the dispatch sta-
tion:
Tank_RiseTrigger (FGTank, 2000)
See Also
“Emptying to an Entity” on page 211.
Please note
See Also
Description
“Defining Trigger Levels” on page 215.
Waits until tank contents falls to a specified level.
Use Tank_FallTrigger to initiate an action when a
tank level falls to a specific level.
Tank_Cap
<Level>
When the tank level falls to this value, any subsequent
logic executes. Description
Returns the capacity defined for the specified
tank.
Example
Use Tank_Cap when you need to know the
defined capacity for a tank.
When an in-process tank, TankX, falls to 1000
gallons, it triggers a mixing tank to begin pro-
ducing more product. To model this, define Components
the following activated subroutine to control
the mixing tank: <Tank ID>
Tank_Loop //logic repeats continuously The tank name or location index number.
{
Tank_FallTrigger(TankX, 1000)
[Insert logic to mix new batch here] Tank_FreeCap
}
Syntax samples
Description
Returns the available capacity of the specified Example
tank.
Use Tank_FreeCap when you need to know the After technicians add all the necessary ingre-
available capacity of a tank. dients to the mixing tank, the tank requires a
20 minute mixing time. To define this opera-
tion, enter the following statement in the sub-
Components routine for the mixing activity:
Tank_DoOperation(MixingTank, 20)
<Tank ID>
The tank name or location index number.
See Also
Tank_DoOperation “Mixing and Reactor Tanks” on page 211.
Description
Sets the state of the tank to Tank_Operation and Description
waits for the specified operation time. ProModel
Sets the state of the tank to Tank_Down, waits
sets the state to Tank_Blocked after the opera-
for the specified downtime, then sets the state
tion.
back to the previous setting. If you defined a
Use Tank_DoOperation when some activity or downtime using the location downtime dialog,
treatment time is necessary for the material in a call the Tank_GoDown subroutine in the down-
tank. time logic rather than use a WAIT statement. If
the downtime is for cleaning, use the
Components Tank_DoPrep subroutine.
Use Tank_GoDown to shut down a tank due to
<Tank ID> equipment failure (e.g., pump failure). If the
The tank name or location index number. downtime occurs periodically, you can define a
202 Chapter 5:
Pre-defined Tank Subroutines
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 <Prep time>
minutes and a standard deviation of 3 minutes. The duration (in time units defined in the General
To define this behavior, define a clock-based, Information dialog) of preparation time.
scheduled downtime for the bin to occur with a
frequency of 4 hours. In the logic defined for the
downtime, enter the following:
Example
Tank_DoPrep
See Also
Syntax samples “Mixing and Reactor Tanks” on page 211.
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
Components
See Also
<First Tank> “Selecting from Multiple Input or Output Tanks”
on page 213.
The name or location index number of the starting tank
in the range.
<Number of Tanks> Tank_UpdateStats
The number of tanks in the selection range (limit 10).
<Selection Rule> Syntax samples
The rule for making the selection may be one of the
TANK_UPDATESTATS (<Tank ID>)
following:
TANK_UPDATESTATS (TankA)
Tank_InOrder (selects the first blocked
tank encountered)
Tank_LongestBlocked (selects the tank
blocked the longest) Description
<Minimum Level>
ProModel calls this subroutine automatically
The minimum level of the input tank before consider- whenever you call any of the predefined subrou-
ing it for selection. If the tank must be full before con- tines that affect the tank level. If you change the
sidering it for an input source, enter 0. value of the Tank_Level directly, call the
<Product Type> Tank_UpdateStats subroutine afterward. This
subroutine updates the current statistics on the
tank and sets the state to Tank_Filling (if filling),
ProModel 207
User Guide
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).
Description
ProModel calls this subroutine automatically if See Also
you pass a 0 value as the From Rate when using “Varying the Transfer Rate” on page 214.
the Tank_Empty or Tank_Transfer subroutine.
To return the desired rate value, enter the neces-
sary logic in the subroutine—ProModel calls the Pre-defined Data Elements
subroutine with each time step. A return value of
The ProModel tank submodel provides the fol-
0 terminates the flow and returns the remaining
lowing data elements for modeling tanks. Unless
amount in the Tank_QtyLeft variable.
otherwise specified, all arrays are single-dimen-
sional and of type integer. Initially, these arrays
Components are 100 elements in size to allow for up to 100
locations. If you define more than 100 locations,
<FROM Tank> you will need to enlarge the array or place tanks
The name or location index number of the FROM tank toward the beginning of the location list (within
(this value should be 0 if there is no FROM tank). the first 100 locations).
<TO Tank> Tank_Level array Stores the level of each tank.
Since the values in this array directly control the
208 Chapter 5:
Pre-defined Tank Subroutines
tank gauge and tank statistics, the array MUST be Location States by Percentage. When reporting
present in every tank model. Location statistics for tanks, note the following:
Tank_State array Tracks the state of the tank. •Total Entries The number of units (e.g.,
gallons, 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 “Mix-
1 Last level NC ing and Reactor Tanks” on page 211 for addi-
2 Last change time Current time in time tional 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 Sched-
reset after any warm-up period. ProModel reports uled Time)
output statistics under Location statistics and
ProModel 209
User Guide
priate resume level. For example, the following Tank_Transfer (Tank2,MixingTank, 300, 20, 4, 0)
statement will continue pumping up to 999999 Tank_DoOperation (MixingTank,15) //Mix time
units into TankA at a rate of 200 units per minute.
Wait Until Tank_State [StorageTank]=
Whenever the tank becomes full, it must drop to
Tank_Idle /* Waits for storage tank availability
400 units before filling resumes.
*/
Tank_Transfer (MixingTank, StorageTank,
Resume fill with trigger level Tank_Level[MixingTank],40, 0, 0)
Tank_Prep (MixingTank, 50) // Clean mixing
Tank_Fill (TankA, 999999, 200, 400)
tank for 50 minutes.
END
can draw from the delivery tank using the Tank Transfers
Tank_Empty subroutine if outflow is gradual and
defined by a flow rate, or the Tank_Dec subrou-
tine if the output occurs in discrete intervals
based on a bottling or packaging time.
To output material from a tank without modeling
the entity to which it outputs, call the
Tank_Empty or Tank_Dec subroutine. To trans-
fer material from a tank to entities arriving at a
filling station (remember, the filling station itself
is NOT a tank), route the entities to the filling sta-
tion using a SEND or other routing rule, then call
the Tank_Empty or Tank_Dec subroutine.
If using the Tank_Dec subroutine, the entity When transferring from one tank to another, you
should wait for the fill time before decreasing the must determine whether the source tank makes
tank level since Tank_Dec happens instantly. For the decision to transfer to the destination tank (a
example, if a bottling operation fills a 2 gallon push approach) or whether the destination tank
container every 6 seconds, define the following makes the decision to draw material from a
processing logic for the container at the fill sta- source tank (a pull approach). You should define
tion: a control subroutine from the perspective of the
tank that makes the decision. If the model
Wait to fill from tank, then con- requires no tank selection, specify a WAIT
tinue UNTIL statement to wait until the FROM or TO
tank satisfies the condition required for transfer.
For example, if a source tank makes the decision
Wait 6 sec
to transfer to a destination tank whenever the des-
Tank_Dec (Filler, 2) tination tank becomes idle, enter the following
statement in the subroutine:
If the delivery tank has insufficient contents to Transfer contents when idle
decrease the level by the specified amount, the
processing will automatically pause until enough Wait Until Tank_State [<destination tank ID>] =
material is available. Once the specified quantity Tank_Idle
empties, the entity can continue processing. To
create an entity as the result of an emptying oper-
ation, define an activated subroutine that empties
If the destination tank makes the decision to
the desired quantity, then execute an ORDER
transfer (a pull approach), you should base the
statement. This will create a new entity at the fill-
WAIT UNTIL statement on a required condition
ing station.
for the source tank as follows:
ProModel 213
User Guide
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 associated 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.
actual tank where sensors report the tank level, Showing Pipes
you directly control how much to pump into a
tank. For instance, an alternative way to model To show pipes connecting the tanks, use paths or
the previous example without using a triggering background graphics. If you desire to show the
subroutine would be to call the material in the pipe, use a long, skinny tank with
Tank_TransferToLevel subroutine to first fill the a capacity of 1 to represent the pipe. You can set
tank to the 2000 unit level, order the Truck entity the level of this tank to 0 or 1 to show product
and then transfer the rest. flow. For example, suppose we define a tank
location called Pipe used to represent the connec-
tion between Tank1 and Tank2. Whenever trans-
Processing Multiple Products ferring from Tank1 to Tank2, you would enter
Where you must track several different products the following:
through one or more tanks, it may be useful to
define macros for naming each product type. For Define pipes
example, setting ProductA equal to 1 and Pro-
ductB equal to 2 will improve the readability of Tank_SetLevel (Pipe,1)
the model. To track which product a particular
Tank_Transfer (Tank1, Tank2, ….)
tank is processing, ProModel uses a pre-defined
integer array called Tank_Product—the user is Tank_SetLevel (Pipe, 0)
responsible for maintaining the array values. If,
for example, ProductA begins pumping into
Tank1, enter the following after you assign an
integer value to ProductA in the Macros module High-Rate Entity Processing
to distinguish it from other products: For systems that process entities at rates higher
than one hundred units per minute, using discrete
Tracking products entities could make the simulation extremely
slow. For this reason, ProModel uses tanks. To
Tank_Product [Tank1] = ProductA use a tank to model high-rate processing, think of
the tank as a buffer where the tank level repre-
sents the number of items in the buffer. For
example, suppose that bottles feed through a fill-
ing station at a rate of 110 per minute. The input
buffer, FillerInput, has a capacity of 1200 bottles
and the output buffer, FillerOutput, has a capacity
of 2000 bottles. If FillerOutput is full, processing
stops until the quantity in the output buffer drops
to 1500 bottles. An arriving container feeds quan-
tities of 200 bottles to the FillerInput location and
it takes 1 minute to unload the container. When
the filling station fills 50 bottles, workers put the
bottles into a box (represented by an entity) and
ship them. Since workers load the boxes as soon
ProModel 217
User Guide
as the bottles complete the filling process, there is Order 1 Box to Shipping
no delay time involved. }
The operation logic for the container at the arriv-
ing location would be as follows:
Please note
High-rate processing
The Tank_Dec statement automatically removes
WAIT 1 min
50 bottles from FillerOutput whenever there are
Tank_Inc (FillerInput, 200) at least 50 bottles available.
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
several 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 221
User Guide
must have previously copied a bitmap file to the How to move an imported back-
Windows clipboard. ground graphic:
Import Graphic Imports a WMF, BMP, PCX,
or GIF file into the Layout window. • Place the cursor on the imported back-
ground graphic and drag it to the desired
Export Graphic Exports all graphic objects in location in the layout.
the current mode to a WMF or BMP file.
Importing a Graphic
How to size an imported back-
Importing a background graphic can bring reality
into the model. For example, if a layout is created
ground graphic:
in a graphic package, it may be desirable to
import the entire layout rather than create it in 1. Place the cursor on one of the four corners
of the imported background graphic. The
ProModel. This is done by saving the file in a
cursor becomes a cross-hair at this point.
graphic package, such as AutoCAD, as a WMF,
BMP, PCX, or GIF file and importing the graphic 2. Drag the cursor to size the background
into ProModel. This can save you an extensive graphic as desired.
amount of time.
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.
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 loads a specified quantity
Group Ungroup of entities to the current entity. The loaded enti-
EntA
EntB Loc4 Loc5
ties retain their identity for future unloading
EntB
EntBEntC through an UNLOAD statement (see “Load” on
page 509 and “Unload” on page 571 for more
EntC EntC information). When the entities are loaded onto
Three entities are grouped the current entity, the resulting entity retains the
together to form a batch
which is later ungrouped. attribute value of the current entity.
For example, entities called Box are loaded onto
The logic for the diagram is as follows: another entity, Pallet. The Boxes are assigned an
attribute value, Att1=1. Pallets are also assigned
Process Table an attribute value, Att1=2. Once the Boxes are
Entity Location Operation (min) loaded onto the Pallet, the loaded pallet is
EntA Loc1 Att1 = 1 renamed Shipment. The Shipment then has an
EntB Loc2 Att1 = 2 attribute, Att1=2, because it inherits the attribute
EntC Loc3 Att1 = 3 value of the Pallet. However, we then assign an
ALL Loc4 GROUP 3 AS Batch attribute value to Shipment, Att1=3. After the
Batch Loc4 WAIT 30 Boxes are unloaded from the Pallet, the Boxes
Batch Loc5 UNGROUP retain their original attribute value, Att1=1. Now
ALL Loc5 ... the Pallet has a different attribute value, Att1=3,
which was assigned to the renamed entity, Ship-
Routing Table ment. Consider the following diagram and logic
in which two Boxes are loaded onto a Pallet and
Blk Output Destination Rule Move Logic renamed Shipment for the output entity:
1 EntA Loc4 FIRST 1 MOVE FOR 1
1 EntB Loc4 FIRST 1 MOVE FOR 1 Box Box
You can assign an attribute value to a grouped The logic for the diagram is as follows:
entity. However, once the entities are ungrouped,
they retain the attribute values they possessed
before they were grouped.
230 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 but- Therefore, a pallet designed to hold 10'' valves
tons to 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 Dock. Each Pallet has a different entity attribute,
from now on 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
234 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
Initializing Arrays tion Logic” on page 180 for a list of logic ele-
ments used to define model parameters.
By default, all cells in an array are initialized to
zero. Initializing cells to some other value should
be done in the initialization logic. A
WHILE...DO loop is useful for initializing array Import Data into Arrays
cell values. The logic below fills a 3 x 5 array (3
rows and 5 columns) with values from an exter- When you import data, from either an external
nal, general read file. Excel spreadsheet or SQL database, into an array,
ProModel loads the data from left to right, top to
bottom. Although there is no limit to the quantity
of values you may use, ProModel supports only
two-dimensional arrays.
into the array—you do not have to define any cell 6. Enter the Import Start Cell location. The
information unless you wish to limit the contents value in this cell will occupy the first position in
of the array to a portion of the data set. the array.
7. Enter the Import End Cell location. The
Array import requires Microsoft Excel 97 or value in this cell will occupy the last position in
later. the array.
8. Click OK.
4. Click on the Database radio button. If you export multiple times to the same spread-
sheet, ProModel will overwrite the spreadsheet
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 scenarios and/or replications,
data from each one will be saved to a sepa-
rate 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 241
User Guide
of a location’s capacity) to complex text (e.g., a combinations to find the combination that works
line of logic). You may create RTI parameters best with 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 352.
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 241 and “Subroutines” on page 246.
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
Subroutine Editor
The Subroutines edit table consists of several
fields which identify the components of a subrou-
tine. Each of these fields is described below.
termination logic. Subroutines of type Interactive fore, independent subroutines can run in parallel
are identical to subroutines of type None, except with the logic that called them.
that interactive subroutines are also accessible for
4. Independent subroutines called with the ACTI-
activation by the user through the run-time menu.
VATE statement cannot contain entity-specific or
Interactive subroutines are displayed in the Inter-
location-specific system functions.
act menu during runtime. For more information
on Interactive subroutines, see the discussion
later in this section.
Parameters Arguments passed to the subrou- Subroutine Format
tine get assigned to local variables called parame-
ters. Items passed to a subroutine as arguments A subroutine may be named any unique, valid
can have different names than the parameters that name. The general format for calling a subrou-
receive them. Parameters can be real or integer. tine is as follows:
The first parameter receives the first argument, SubroutineName(arg1, arg2,....,argn)
the second parameter receives the second argu-
ment, and so on.
Subroutine call
Logic One or more statements to be executed
whenever the subroutine is called. Statements in GetOpTime(3,7)
subroutines must be valid in the logic that calls
DoInitialization()
the subroutine. Subroutine logic may contain a
RETURN statement with a value to be returned
from the subroutine. (See “Return” on page 549
for the correct syntax and an example of this Please note
statement.)
Subroutine format notes:
Please note
1. If no arguments are specified, open and closed
Subroutine editor notes: parentheses are still required.
1. If the subroutine is of type Integer and the 2. Statements in subroutines must be valid in the
return value is a real number, the return value logic that called the subroutine. For example, if a
will be truncated unless the ROUND() function is subroutine is called from the operation logic, the
used (e.g., RETURN ROUND(<numeric expres- subroutine may contain only those statements
sion>)). valid in the operation logic. Subroutines called
2. If you do not want a stand-alone subroutine from an ACTIVATE statement or from the Inter-
referenced in operation logic to be treated as an act Menu at run-time can have any general logic
implicit wait statement, define the subroutine as statements, including WAIT.
type None.
3. A subroutine may be used in any logic field. In
3. When using the ACTIVATE statement to call a addition, a subroutine may be used in any expres-
subroutine, the calling logic continues without sion field, provided that the RETURN statement
waiting for the called subroutine to finish. There- is used to return a value to the expression field.
248 Chapter 6:
Subroutines
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 249
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 583).
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 368).
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 439 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 251
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 163 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 1
editor:
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 257
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-
258 Chapter 6:
Table Functions
User Defined Distributions section). The data is entered into the User Distri-
bution edit table. The User Distribution edit
Occasionally, none of ProModel’s built-in distri- table’s fields are described below.
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 referenc-
ing 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-
How to create and edit user distri- tributions, along with the ability to express either
butions: in cumulative or non-cumulative terms, creates
four possible formats for specifying distributions.
1. Choose More Elements from the Build
The remainder of this section gives examples and
menu. procedures for specifying each of these distribu-
tion types.
2. Choose User Distributions.
Discrete Distributions
User Distribution Edit Table Discrete distributions are characterized by a finite
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
260 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
l .30 5
i .20
t .10 ProModel provides the flexibility to specify dis-
y 0 crete distributions according to a probability
10 20 30
mass function or a cumulative distribution func-
Group size tion. Select Yes or No in the Cumulative field of
the Distribution edit table and fill in the table
One way to represent a discrete distribution is by according to the probability mass function or the
its probability mass function, listing the possible cumulative distribution function. The following
outcomes together with the probability of observ- tables show the discrete distribution example
ing each outcome. A probability mass function defined in both formats.
for the example above could be expressed as fol-
lows (with G representing the group size). Discrete (probability mass
G 10 20 30 function)
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
could be expressed as follows.
Discrete (cumulative distribution
G 10 20 30 function)
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 261
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 263
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 537 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.
B Location name
C Quantity per arrival
Please note
D Time of first arrival
E Number of arrivals If the time of the first arrival is zero and there is
only one arrival of some quantity, you do not
F Frequency of arrivals
need to complete additional cells. Likewise, if
G through... Attribute assignments there is only one arrival at a time other than zero,
you do not need to fill in additional cells after the
Columns A through F may have any heading
Time entry.
desired as long as the data is of the proper type.
If attributes are to be assigned, columns G and
higher should have headings that match the
names of the attributes being assigned. The fol-
lowing example illustrates these points.
Please note
Shift File
A shift file record is automatically created in the
External Files Editor when you assign a shift to a
The values in the spreadsheet cells must be a location or resource. If shifts have been assigned,
numeric expression as opposed to a formula the name(s) of the shift file(s) will be automati-
commonly used in spreadsheets. For exam- cally created in the External Files Editor. If no
ple, if cell E4 in the spreadsheet above was path is listed for the shift file, ProModel will
actually a formula generating the value 100,
search in the default models directory.
the value ProModel generates is zero. Pro-
Model only recognizes expressions for the
ProModel 265
User Guide
When you include a distribution (e.g., Normal, activities will not affect the sample values gener-
Beta, and Gamma) in your model, ProModel uses ated from the arrival distribution).
a random number generator to produce a set
sequence or stream of numbers between 0 and 1 Please note
(0 <= x < 1) to use in the distribution. Before it
can select any numbers, however, ProModel
The random number generator is a prime modu-
requires an initial seed value to identify the point
lus multiplicative linear congruential generator.
in the stream at which to begin. Once you specify
The C code implementation for most of the ran-
a seed value, ProModel “shifts” the random num-
dom variates was written by Stephen Vincent and
ber selection (in increments of 100,000 numbers)
based on the algorithms described by Law and
by that number of positions and starts sampling
Kelton (see the “Bibliography” on page 606).
values. Since there is only one random number
stream, this will ensure that the selected values
do not overlap. ProModel includes 100 seed val-
ues, and each seed produces a unique set of ran-
dom numbers. If you do not specify an initial Stream Example
seed value, ProModel will use the stream number The following example shows one reason why
as the seed value (i.e., stream 3 uses seed 3). multiple streams are useful.
Random Number Stream Two machines, Mach1 and Mach2, are to go
100,000 random numbers down approximately every 4 hours for servicing.
To model this, the frequency or time between
}
ferent numbers. Using two streams (in the Note that if a third machine were to use one of the
example below numbered ten and eleven) with streams, for example if Mach3 were to use stream
the same initial seed will ensure that the eleven, the two machines would no longer go
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 if bridge B tries to move to a node N that lies very
close to the left end of the envelope, and bridge A
The following section provides advanced tech- is to the left of bridge B, a run-time error will
niques to model Material Handling Systems. occur if the space remaining between node N and
bridge A is less than the bridge separation dis-
tance. To avoid such problems, define the crane
Crane Systems envelope wide enough to allow sufficient space
To implement cranes in ProModel, the Path Net- beyond any serviceable nodes.
work module allows three types of networks:
non-passing, passing, and cranes. From this mod- Crane Priorities, Preemption &
ule, you can lay down and orient a crane enve- Bridge Bump-Away
lope, define the bridge separation distance, and
define the graphics for rails and bridges in the ProModel associates two types of priorities with
bay. Additionally, the Resources module allows the operation of crane resources: (1) resource
you to define bridge and hoist speeds, and hoist request priority, and (2) crane move priority.
graphics for one or more cranes operating in the Resource Request Priorities Used to
same bay. resolve any conflicts that arise between multiple
tasks requesting the same resource at the same
time. This priority scale follows the rules that
Creating Multi-Bridge Crane
regular dynamic resource priorities do (i.e., 10
Systems levels of 100). Use this priority to preempt crane
Modeling multiple cranes operating in the same resources from lower priority tasks to serve
bay has never been so easy! higher priority 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.
positions of the center-lines of any bridges oper- Therefore, you can only use priorities for cranes
ating within the envelope. ProModel uses the end that are either moving to respond to a resource
of one of the rails as the envelope origin to serve request or moving to deliver a part. Moving to
as a reference point for all logical distance calcu- downtime, off-shift or break nodes has the
lations within the envelope. default (0) move priority. Moving to park has the
Bridge Separation The minimum distance lowest move priority (the same as an idle crane).
you 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
the extreme endpoints of the envelope. Caution: modeler via parameters passed to resource
270 Chapter 6:
Material Handling Systems
usage statements (GET, MOVE WITH, etc.). •Crane Graphics In the Resources module,
Used as the base move priority for travel to the selected graphic represents the hoist. You
pick up and travel to deposit. may define, edit, and size multiple graphics
•Claim Priority If crane A’s bridge is for the same hoist the same way you create
headed towards its ultimate (task) destina- multiple graphics for other resources.
tion, the claim priority is equal to the task •Units & Multiple Cranes Crane resources
move priority of crane A. Otherwise (if crane limit you to one unit. When you define mul-
A’s bridge is moving under the influence of tiple cranes operating in the same envelope,
crane B), claim priority is equal to the claim define them as separate resources—each
priority of the claim inducer bridge (bridge assigned to the same crane network.
B). •Downtimes In addition to the clock and
•Effective Claim Priority Applies only usage downtimes you may define for cranes,
to envelopes with three or more cranes. If you can assign cranes to shifts in the same
multiple crane bridges are moving in the way you assign other resources. When a
same direction with overlapping claims, the crane goes down, it moves to the downtime
effective claim priority of any bridge in the node specified in the DTs dialog. If you do
overlapping region is the maximum of all the not associate a node with the crane down-
claim priorities of those bridges. time, the crane goes down at its current posi-
tion.
Crane Operations •Specifications Cranes require separate val-
ues for bridge and hoist speed and accelera-
The operation of cranes in ProModel has been
tion. You must enter Speed (Empty), Speed
designed to closely resemble the real-life opera-
(Full), and Accelerate and Decelerate values
tion of cranes. Under most circumstances, you
for bridge movement along the rails and
need not be concerned with how ProModel han-
hoist movement across the bridge. In each
dles crane movements. The following operational
field, the format is Bridge Value, Hoist
specifications are intended as a reference only
Value (e.g., if you enter “150, 20” in the
and are not essential in order to model cranes
speed field, the bridge moves at 150 and the
using ProModel.
hoist at 20 feet per minute). Although you
must enter speed values, acceleration and
Crane Animation deceleration values are optional (if you leave
During a simulation run, entities picked up by a them blank, ProModel assumes the crane to
crane appear graphically on the entity spot for the have an infinite acceleration and deceleration
hoist. The hoist graphic appears above the entity capability. (Hint: this provides better run-
graphic and the bridge of the crane appears on top time computational efficiency).
of the entity and hoist graphics. •Crane Searches Define Work and Park
searches in the same way you define
searches for other resources.
Crane Specifications
•Node Logic Define entry and exit logic for
When you define cranes for your model, consider cranes at nodes in the same way you define
the following: node logic for other resources.
ProModel 271
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