Modelling and Simulation_ Lecture 03
Modelling and Simulation_ Lecture 03
MPW331
Lecture 03
Simulation Tools and Techniques
Email: [email protected]
Course Content
10. Parameter
9. Model
Estimation and 11. Introduction to
Verification and
System Optimization
Validation
Identification
Modelling and Simulation MPW327
(Bylaw Breakdown)
Lecture Outline
1- Introduction to Modelling
2- Examples of models
3- Modeling of Dynamic Systems
4- Introduction to Simulation
5- MATLAB as a Simulation tool
4- Introduction to Simulation Introduction
❑ Mathematical models of dynamic physical systems have been developed since the invention of
differential equations.
❑ However, these equations could not be analyzed due to the lack of computational devices.
❑ The prediction of dynamic behavior was limited to low-order linear models, and even these
❑ Simulation refers to the procedure of solving the equations that form a model.
❑ For example, it involves numerically solving a set of differential equations with different initial or
boundary conditions, such as:
❑ For a given mathematical model, it is sometimes possible to derive information about the system using
analytical methods.
❑ When analytical methods are not possible, numerical computation methods are used to solve the
equations.
❑ Analytical solutions are general, while numerical methods produce solutions in steps.
❑ Each step gives a solution for one set of conditions, and calculations must be repeated to expand the solution
range.
❑ Dynamic models can sometimes be solved analytically.
❑ When solving numerically, a simulation must be done by solving the model's equations step by step with
increasing time values.
❑ The current values at any step of computation represent the system's state at that specific point in time.
4- Introduction to Simulation System Simulation
❑ System Simulation is the technique of solving problems by observing the performance of a dynamic model
❑ This definition also includes dynamic physical models, where results are obtained from actual
❑ Multiple simulation runs are conducted to understand the relationships within the system.
❑ The use of simulation in a study should be planned as a series of experiments to effectively grasp the
system's behavior.
4- Introduction to Simulation Simulation Types
4- Introduction to Simulation Simulation Process
Description of the Problem
• Develop a detailed plan for how the simulation study will be conducted.
Write a Program
Run Simulations
• Execute the simulation. If results are not satisfactory, increase the number of runs or adjust parameters.
Verify Results
Modeling Approaches
❑ Event-Scheduling Approach:
• Focuses on the timing of events and the state changes they trigger in the system.
❑ Process Approach:
• Emphasizes the flow of processes and their interactions over time.
4- Introduction to Simulation Simulation Software
Desirable Software Features
❑ Modeling Flexibility and Ease of Use:
• Ability to easily modify and adapt the model to different scenarios, along with a user-friendly interface.
❑ Hardware and Software Constraints:
• Consideration of system requirements and compatibility with existing infrastructure.
❑ Animation:
• Visual representation of the simulation to enhance understanding and communication of results.
❑ Statistical Features:
• Tools for analyzing data and generating statistical reports from simulation outcomes.
❑ Customer Support and Documentation:
• Availability of user guides, tutorials, and technical support to assist users.
❑ Output Reports and Plots:
• Capabilities for generating comprehensive reports and graphical representations of simulation results.
4- Introduction to Simulation Simulation Advantages and
Disadvantages