Modelling & Simulation Final - Fall 2022 - UOG HH - Solved
Modelling & Simulation Final - Fall 2022 - UOG HH - Solved
• To produce a model that represents true behavior closely enough for decision-making
purposes
• To increase the model’s credibility to an acceptable level
Validation is an integral part of model development
• Verification – building the model correctly (correctly implemented with the software)
• Validation – building the correct model (an accurate representation of the real system.
Question : 2 Explain how to design simulation experiment and how to perform analysis on
simulation.
How to Develop a Simulation Model :
Simulation models consist of the following components: system entities, input variables, performance
measures, and functional relationships. For instance in a simulation model of an M/M/1 queue, the
server and the queue are system entities, arrival rate and service rate are input variables, mean wait
time and maximum queue length are performance measures, and 'time in system = wait time + service
time' is an example of a functional relationship. Almost all simulation software packages provide
constructs to model each of the above components.
• Identify the problem: This involves clearly defining the problem that needs to be solved or the
system that needs to be analyzed.
• Formulate the problem: Once the problem has been defined, the next step is to formulate a
mathematical or conceptual model that represents the system and its behavior.
• Collect and process real system data: Data is needed to parameterize the model and validate its
accuracy. This involves collecting and analyzing data on the key variables and factors that affect the
system's behavior.
• Formulate and develop a model: This involves translating the model equations or algorithms into
code that can be executed on a computer.
• Validate the model: The model should be thoroughly tested and validated to ensure that it
accurately represents the system's behavior and meets the objectives of the analysis.
• Document the model for future use: This involves documenting the model and its assumptions,
equations, and input parameters for future reference.
• Select an appropriate experimental design: This involves selecting an experimental design that is
appropriate for the problem and the type of simulation being performed.
• Establish experimental conditions for runs: This involves setting up the simulation runs with
appropriate input parameters and initial conditions.
• Perform simulation runs: This involves executing the simulation runs and collecting output data.
• Interpret and present results: This involves analyzing the simulation output data and presenting the
results in a clear and concise manner.
• Recommend further course of action: Based on the simulation results, recommendations can be
made for further analysis, system design, or operational changes
Question 3 : Explain why modeler give priority to use agent based modeling instead of
discrete event modeling.
Ans :
The choice between agent-based modeling (ABM) and discrete event modeling (DEM) depends
on the nature of the problem being studied and the research question being asked. However,
there are several reasons why a modeler may give priority to using ABM over DEM:
• Flexibility: ABM allows for the modeling of complex systems with diverse and
heterogeneous agents that interact with each other and the environment, which may be
difficult to model with DEM.
• Realism: ABM can model the behavior of individual agents and their interactions,
making it more realistic and reflective of real-world scenarios.
• Emergent phenomena: ABM can capture emergent phenomena that arise from the
interactions of agents, which may not be possible with DEM.
• Dynamic environments: ABM is well-suited to modeling systems in which the
environment changes dynamically over time, such as in ecological or social systems.
• Uncertainty: ABM can be used to explore the effects of uncertainty and randomness in
systems, which is often difficult to model with DEM.
• Integration: ABM can be integrated with other modeling approaches, such as system
dynamics or network analysis, to provide a more comprehensive understanding of
complex systems.
• More versatile: ABM can be applied to a wide range of fields, from ecology to
economics to social science, whereas DEM is typically limited to more structured and
predictable systems.
Overall, ABM provides a more flexible and realistic approach to modeling complex systems with
diverse agents and dynamic environments, making it a useful tool for a wide range of
applications.
Question 4 : Explain the reasons for the classifications of the model. Also explain different
classifications of the model with appropriate examples .
Ans :
• Model Classifications Several classification categories for models exist. A system we are modeling
exhibits probabilistic or stochastic behavior if an element of chance exists. For example, the path of
a hurricane is probabilistic.
• In contrast, a behavior can be deterministic, such as the position of a falling object in a vacuum.
Similarly, models can be deterministic or probabilistic.
• A probabilistic or stochastic model exhibits random effects, while a deterministic model does not.
• The results of a deterministic model depend on the initial conditions; and in the case of computer
implementation with particular input, the output is the same for each program execution..
1.Discrete-Event Simulation Model Sufficient modeling concepts have been defined so that a
discrete event simulation model can be defined as one in which the state variables change only at
those discrete points in time at which events occur. Events occur as a consequence of activity times
and delays. Entities may compete for system resources, possibly joining queues while waiting for an
available resource. Activity and delay times may "hold" entities for durations of time. A discrete-
event simulation model is conducted over time ("run") by a mechanism that moves simulated time
forward. The system state is updated at each event along with capturing and freeing of resources
that may occur at that time.
2. Stochastic and Deterministic Systems Definitions A system exhibits probabilistic or stochastic
behavior if an element of chance exists. Otherwise, it exhibits deterministic behavior. A probabilistic
or stochastic model exhibits random effects, while a deterministic model does not.
Deterministic: Randomness does not affect the behaviour of the system. The output of the system is
not a random variable. Stochastic: Randomness affects the behaviour of the system. The output of
the system is a random variable.
3. Static and Dynamic Simulations We can also classify models as static or dynamic. In a static
model, we do not consider time, so that the model is comparable to a snapshot or a map. For
example, a model of the weight of a salamander as being proportional to the cube of its length has
variables for weight and length, but not for time.
By contrast, in a dynamic model, time changes, so that such a model is comparable to an animated
cartoon or a movie. For example, the number of salamanders in an area undergoing development
changes with time; and, hence, a model of such a population is dynamic. Many of the models we
consider in this text are dynamic and employ a static component as part of the dynamic model.
Definitions A static model does not consider time, while a dynamic model changes with time.
Static: A simulation of a system at one specific time, or a simulation in which time is not a relevant
parameter for example, Monte Carlo & steady-state simulations.
Dynamic: A simulation representing a system evolving over time for examples, the majority of
simulation problems.
Continuous: State variables change continuously as a function of time and generally analytical
method like deductive mathematical reasoning is used to define and solve the system. State
Variable (S.V.) = f (t)
Discrete: State variables change at discrete points in time and generally numerical method like
computational procedures is used to solve mathematical models.
• Ensure a high degree of realism: Potential users should be involved in model construction
(from its conceptualization to its implementation).
• Sensitivity analysis can also be used to check a model’s face validity.
Example: In most queueing systems, if the arrival rate of customers were to increase, it would
be expected that server utilization, queue length and delays would tend to increase.
Validate Model Assumptions :
General classes of model assumptions:
• Structural assumptions: how the system operates.
• Data assumptions: reliability of data and its statistical analysis.
• Bank example: customer queueing and service facility in a bank.
• Structural assumptions, e.g., customer waiting in one line versus many lines, served FCFS
versus priority.
• Input data assumptions, e.g., interarrival time of customers, service times for commercial
accounts.
• Verify data reliability with bank managers.
• Test correlation and goodness of fit for data.
Validate Input-Output Transformation :
Goal: Validate the model’s ability to predict future behavior