MPEN 584 Lesson 3
MPEN 584 Lesson 3
Alternatively:
1
Bellman-Ford algorithm. A single-source shortest path algorithm that finds the
shortest path from a given source vertex to all other vertices in a graph. It starts
with an assumption that the shortest distance to all vertices from the source vertex
is infinity. Through a series of iterations, it updates these distances by relaxing the
edges—finding shorter paths whenever possible, in what is known as relaxation.
2
Greedy algorithms
Make short-sighted, ―best guess‖ decisions
Required less time/work
Provide approximate solutions
Dynamic planning
Examines all possible solutions
Requires more time/work
Guarantees optimal solution
3
SIMULATION
A discrete system is one for which the state variables change instantaneously at
separated points in time.
A continuous system is one for which the state variables change continuously with
4
respect to time.
If the relationships that compose the model are simple enough, it
may be possible to use mathematical methods (such as algebra,
calculus, or probability theory) to obtain exact information on
questions of interest; this is called an analytic solution.
5
How to study a System
6
7
Applications of Simulation
Application areas for simulation are numerous and diverse. Below is a list
of some particular kinds of problems for which simulation has been found
to be a useful and powerful tool:
• Hypotheses about how or why a phenomenon occurs can be tested for feasibility
• Simulation can help to understand how the system operates rather than how
people think the system operates
10
Static vs. Dynamic Simulation Models. A static simulation model is a
representation of a system at a particular time, or one that may be used to represent
a system in which time simply plays no role; examples of static simulations are
certain Monte Carlo models. On the other hand, a dynamic simulation model
represents a system as it evolves over time, such as a conveyor system in a factory.
12
13
Steps in a simulation study
14
1. Formulate the problem and plan the study.
a. Problem of interest is stated by manager.
• Problem may not be stated correctly or in quantitative terms.
• An iterative process is often necessary.
b. One or more kickoff meetings for the study are conducted, with the project
manager, the simulation analysts, and subject-matter experts (SMEs) in
attendance.
16
3. Is the assumptions document valid?
a. Perform a structured walk-through of the assumptions document before an
audience of managers, analysts, and SMEs. This will
• Help ensure that the model’s assumptions are correct and complete
• Promote interaction among the project members
• Promote ownership of the model
• Take place before programming begins, to avoid significant reprogramming
Later
7. Design experiments.
a. Specify the following for each system configuration of interest:
• Length of each simulation run
• Length of the warm-up period, if one is appropriate
• Number of independent simulation runs using different random numbers —
facilitates construction of confidence intervals
18
9. Analyze output data.
a. Document assumptions (see step 2), computer program, and study’s results
for use in the current and future projects.
b. Present study’s results.
• Use animation to communicate model to managers and other people who are
not familiar with all the model details.
• Discuss model building and validation process to promote credibility.
• Results are used in decision-making process if they are both valid and
credible.
19