Académique Documents
Professionnel Documents
Culture Documents
Organization
The syllabus states:
Class attendance is mandatory. As per academic
regulations, students who do not attend 80% of the
class will not be allowed to write the final
examinations (one lecture represents 8% of the total).
Adjust teams.
Time sheets.
2
Chapter 1
Opening Perspectives
Challenges to M&S
3
Chapter 2
Some reflections on models
Exploring the foundations
The observation interval
Entities and interaction
Constants and parameters
Variables, input and output
Model M
Behaviour
Inputs
Behaviour
Generation
Rules
Input
Variables
Modelling
with
parameters
and
variables
Parameters
State Variables
F()
Output
Variables
and Values
Observation
Behaviour rules:
horizontal
dx1 (t )
dy1 (t )
x2 (t )
y2 (t )
dt
dt
dx2 (t )
dy2 (t )
w(t ) / m
g
dt
dt
horizontal
vertical position
vertical velocity
V0 = Initial velocity
Newtons law: F = ma
V0
0
w(t)
y0
mg
x
x=0
x=H
6
C C
VC VC
x1 (TC ) x1 (TC )
x 2 (TC ) x 2 (TC )
y1 (TC ) 0
y 2 (TC ) y 2 (TC )
7
Bouncing Ball
Simulation Model (1)
%-------------------------------% DYNAMIC
%------------------------------function dsvdt = ballDyn(t, sv)
global G W M
dsvdt = [
sv(2)
% dx1/dt = x2
-W/M
% dx2/dt = -W/M
sv(4)
% dy1/dt = y2
-G
% dy2/dt = -G
];
Bouncing Ball
Simulation Model (2)
%---Events for discontinuities
function [value, isterminal, direction] =
events(t, sv)
value = sv(3);
% the height
isterminal = 1; % stop the integration
direction = -1; % negative direction only
Bouncing Ball
Simulation Model (3)
for i=1:3 % three bounces
[t, sv, te, sve, ie] = ode23(@ballDyn,
[tstart tfinal], sv0, options);
% Accumulate data
Bouncing Ball
Simulation Results
11
Problem
Description
Refinement/Verification
Project
Goals
Clarification
Conceptual
Model
Modification
Transformation/Verification
Modelling
and
Simulation
Process
Simulation
Model
Elaboration/Verification
Simulation
Program
Y
N
Flawed Model
Detected
12
Credibility
Established
Experimentation
for Goal
Resolution
Flawed Model
Detected
Experimentation for
Validation
Validation
database
Analysis
Goal
Resolution
Database
Analysis
Database
Sufficiently
Comprehensive
Y
Conclusions
Final
Analysis
13
Project Methodology
Proposed methodology based on discussed M&S
process.
Reporting to the CEO:
Deliverables
Meetings
E-mail
Time Sheets weekly
Give progress
14
15
Warm-up Exercise
For each of the cases on the next 2 slides
Draw schematic, concept graph, notes for the
system described.
16
Coffee Shop
The coffee shop contains some 15 tables.
It is Saturday morning and the tables are
almost full. At the back of the shop is a
counter with one cash register and two
coffee machines. Behind the counter are
two women serving customers. In the
background, music from a local radio
station can be heard. At the counter, there
is a long line of customers waiting for
service.
17
Barber Shop
The barber shop has 5 chairs around a small
table with magazines. There are two barber
chairs with customers being serviced by 2
barbers. A counter and cash register is by the
door. There is a small coffee machine in a
corner where customers can help themselves.
The chairs are full. The owner (one of the
barbers) noticed that on Saturday mornings,
many drop in customers do not enter when they
see that the chairs are full. He is wondering how
much business he is losing.
18
19
20
10
Next Week
Read Chapter 3 up to Section 3.6
Section 3.6 will interest CM teams that need to
develop data models from raw data.
11