Modeling, Simulation and Optimization
Modeling, Simulation and Optimization
ammar.mushtaq@rcms.nust.edu.pk
Ammar Mushtaq
Course Outline
Introduction to Simulations
Simulation Examples
Monte-Carlo Simulations
Comparison of System Designs
Analysis of Variance
Design of Experiments
BEST SOLUTION
EVALUATION OF DESIGN
Unconstrained Optimization
Constrained Optimization
Ammar Mushtaq
Evaluation
ATTENDANCE
>75%
MARKS DISTRIBUTION
Quizzes
(06)
10-15%
Assignments
(03)
05-10%
OHTs
(02)
30-40%
End Term
40-50%
Ammar Mushtaq
M & S?
THIRD METHODOLOGY
of exploring the truth
Ammar Mushtaq
Ammar Mushtaq
Ways to Study?
System
Experiment with
Actual System
Experiment with
Model of the System
Mathematical
Model
Analytical Solution
Physical
Model
Simulation
Ammar Mushtaq
Models Types
System model
Deterministic
Dynamic
Stochastic
Static
Static
Dynamic
Monte Carlo
simulation
Discrete
Continuous
Discrete-event
simulation
Continuous
simulation
Continuous
Continuous
simulation
Discrete
Discrete-event
simulation
Models Types
Stochastic
Model that contains random (probabilistic) elements,
Examples
Inter-arrival time or service time of customers at a restaurant or store
Amount of time required to service a customer
Deterministic
Model containing no random elements
Examples
Simulation of a digital circuit
Simulation of a chemical reaction
Output is deterministic for a given set of inputs
Ammar Mushtaq
Models Types
Static
Model where time is not a significant variable
Examples
Determine the probability of a winning solitaire hand
Dynamic
Model focusing on the evolution of the system under
investigation over time
Ammar Mushtaq
Models Types
Discrete
State of the system is viewed as changing at discrete points
in time
An event is associated with each state transition
Events contain time stamp
Continuous
State of the system is viewed as changing continuously
across time
Velocity of fluid in pipe flows
Temperatures and stresses in a solid
Ammar Mushtaq
Verify model
Validate model
Ammar Mushtaq
Ammar Mushtaq
Conceptual Model
An abstract (i.e., not directly executable) representation of the
system
What are state variables?
How are they interrelated?
Which variables should be included in model?
What can be left out?
Level of detail
Appropriate choice depends on the purpose of the model
Ammar Mushtaq
Specification Model
A more detailed specification of the model including more
specifics
Collect data to populate model
Traffic example: Road geometry, signal timing, expected traffic demand,
driver behavior
Empirical data or probability distributions often used
Ammar Mushtaq
Computational Model
Executable simulation model
Software approach
General purpose programming language
Special purpose simulation language
Simulation package
Approach often depends on need for customization and economics
Where do you make your money?
Defense vs. commercial industry
Ammar Mushtaq
Verification
Did I build the computational model right?
Does the computational model match the specification model?
Largely a software engineering activity (debugging)
Not to be confused with correctness (see model validation)!
Ammar Mushtaq
Validation
Did I build the right model?
Ammar Mushtaq
Ammar Mushtaq
Summary
Ammar Mushtaq