Docsity

Systems and Models-Modeling and Simulation-Lecture Slides, Slides of Mathematical Modeling and Simulation

Toggle sidebar
bg1
3/18/2011
1
&
MODELING
http://www.pieas.edu.pk/umarfaiz/cis308http://www.pieas.edu.pk/umarfaiz/cis308
&
SIMULATION
Lecture๎˜ƒ2๎˜ƒ
http://www.pieas.edu.pk/umarfaiz/cis308
Systems๎˜ƒand๎˜ƒModels
System๎˜ƒand๎˜ƒSystem๎˜ƒEnvironment
๎šƒWhat๎˜ƒis๎˜ƒa๎˜ƒSystem?๎˜ƒ
โ€“People๎˜ƒfrom๎˜ƒdifferent๎˜ƒengineering๎˜ƒdisciplines๎˜ƒhave๎˜ƒ
different๎˜ƒperspectives๎˜ƒof๎˜ƒwhat๎˜ƒa๎˜ƒ"system"๎˜ƒis.๎˜ƒ
โ€ขSoftware๎˜ƒengineers๎˜ƒoften๎˜ƒrefer๎˜ƒto๎˜ƒan๎˜ƒintegrated๎˜ƒset๎˜ƒof๎˜ƒcomputer๎˜ƒ
programs๎˜ƒas๎˜ƒa๎˜ƒ"system."
โ€ขElectrical๎˜ƒengineers๎˜ƒmight๎˜ƒrefer๎˜ƒto๎˜ƒcomplex๎˜ƒintegrated๎˜ƒcircuits๎˜ƒor๎˜ƒ
System๎˜ƒand๎˜ƒSystem๎˜ƒEnvironment
๎šƒDefinition๎˜ƒof๎˜ƒa๎˜ƒSystem?๎˜ƒ
โ€“A๎˜ƒsystem๎˜ƒcan๎˜ƒbe๎˜ƒbroadly๎˜ƒdefined๎˜ƒas๎˜ƒan๎˜ƒintegrated๎˜ƒset๎˜ƒof๎˜ƒ
elements๎˜ƒthat๎˜ƒaccomplish๎˜ƒa๎˜ƒdefined๎˜ƒobjective.
โ€“The๎˜ƒdefinition๎˜ƒgives๎˜ƒtwo๎˜ƒfundamental๎˜ƒaspects๎˜ƒof๎˜ƒsystems:๎˜ƒ
unitarity and๎˜ƒrecursive๎˜ƒdecomposability๎˜ƒ(into๎˜ƒsubsystems)
System๎˜ƒand๎˜ƒSystem๎˜ƒEnvironment
๎šƒUnitarity and๎˜ƒInvariance
โ€“The๎˜ƒunitarity nature๎˜ƒof๎˜ƒsystems๎˜ƒcan๎˜ƒbe๎˜ƒclarified๎˜ƒin๎˜ƒterms๎˜ƒof๎˜ƒ
invariance,๎˜ƒwhich๎˜ƒis๎˜ƒa๎˜ƒrelation.๎˜ƒA๎˜ƒphenomenon๎˜ƒis๎˜ƒsaid๎˜ƒto๎˜ƒbe๎˜ƒ
invariant relative๎˜ƒto๎˜ƒanother๎˜ƒof๎˜ƒit๎˜ƒremains ๎˜ƒunchanged๎˜ƒwhile๎˜ƒ
the๎˜ƒother๎˜ƒchanges.
Changing๎˜ƒPhenomenon Invariant๎˜ƒ๎˜ƒ(unchanged)๎˜ƒPhenomenon๎˜ƒ
Time The๎˜ƒmass๎˜ƒof๎˜ƒa๎˜ƒproton๎˜ƒwhich๎˜ƒremains๎˜ƒthe๎˜ƒsame๎˜ƒas๎˜ƒ
time๎˜ƒchanges
Spatial๎˜ƒPosition The๎˜ƒhomogeneous density๎˜ƒof๎˜ƒmatter ๎˜ƒin๎˜ƒuniverse
Spatial๎˜ƒDirection The๎˜ƒ๎˜ƒisotropic๎˜ƒflux๎˜ƒof๎˜ƒa๎˜ƒradiation from๎˜ƒa๎˜ƒ
radioactive๎˜ƒsource.
Time๎˜ƒand๎˜ƒexternal๎˜ƒ
Influences
The๎˜ƒstructure๎˜ƒof๎˜ƒan๎˜ƒatom,๎˜ƒThe๎˜ƒfunctioning๎˜ƒof๎˜ƒan๎˜ƒ
automobile๎˜ƒfactory๎˜ƒwhich๎˜ƒproduces๎˜ƒcars๎˜ƒ
irrespective๎˜ƒof๎˜ƒmarket๎˜ƒconditions,๎˜ƒpersonnel๎˜ƒ
turnover,๎˜ƒetc.
System๎˜ƒand๎˜ƒSystem๎˜ƒEnvironment
๎šƒUnitarity and๎˜ƒInvariance
โ€“Valu es ๎˜ƒand๎˜ƒVari ab le s
โ€ขSystem๎˜ƒproperties๎˜ƒand๎˜ƒbehavioral๎˜ƒpatterns๎˜ƒare๎˜ƒobservable.๎˜ƒ
Observation๎˜ƒmade๎˜ƒby๎˜ƒan๎˜ƒโ€œobserve rโ€๎˜ƒpermits๎˜ƒvalues๎˜ƒto๎˜ƒbe๎˜ƒ
associated๎˜ƒwith๎˜ƒthe๎˜ƒsystem.๎˜ƒ
โ€“A๎˜ƒreading๎˜ƒfrom๎˜ƒa๎˜ƒscale๎˜ƒplaced๎˜ƒclosed๎˜ƒto๎˜ƒan๎˜ƒobject๎˜ƒ๎˜ƒcan๎˜ƒbe๎˜ƒassociated๎˜ƒ
with that object
with
๎˜ƒ
that
๎˜ƒ
object
.
โ€ขThe๎˜ƒrepeated๎˜ƒapplication๎˜ƒof๎˜ƒthe๎˜ƒsame๎˜ƒmeasurement๎˜ƒoperation๎˜ƒto๎˜ƒ
the๎˜ƒsame๎˜ƒsystem๎˜ƒunder๎˜ƒdifferent๎˜ƒconditions๎˜ƒwill๎˜ƒyield๎˜ƒdifferent๎˜ƒ
values.
โ€“We๎˜ƒcan๎˜ƒsay๎˜ƒthat๎˜ƒthe๎˜ƒsystem๎˜ƒhas๎˜ƒa๎˜ƒproperty๎˜ƒcalled๎˜ƒa๎˜ƒvariable๎˜ƒwhich๎˜ƒ
causes๎˜ƒthe๎˜ƒmeasurement๎˜ƒoperation๎˜ƒto๎˜ƒyield๎˜ƒthe๎˜ƒobserved๎˜ƒvalues๎˜ƒ
under๎˜ƒthe๎˜ƒvarious๎˜ƒconditions.
docsity.com
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Systems and Models-Modeling and Simulation-Lecture Slides and more Slides Mathematical Modeling and Simulation in PDF only on Docsity!

MODELING

http://www.pieas.edu.pk/umarfaiz/cis308http://www.pieas.edu.pk/umarfaiz/cis

SIMULATION

Lecture 2

http://www.pieas.edu.pk/umarfaiz/cis

Systems and Models

System and System Environment

ยƒ What is a System?
  • People from different engineering disciplines have different perspectives of what a "system" is. - Software engineers often refer to an integrated set of computer programs as a "system." - Electrical engineers might refer to complex integrated circuits or

System and System Environment

ยƒ Definition of a System?
  • A system can be broadly defined as an integrated set of elements that accomplish a defined objective.
  • The definition gives two fundamental aspects of systems: unitarity and recursive decomposability (into subsystems)

System and System Environment

ยƒ Unitarity and Invariance
  • The unitarity nature of systems can be clarified in terms of invariance, which is a relation. A phenomenon is said to be invariant relative to another of it remains unchanged while the other changes. Changing Phenomenon Invariant (unchanged) Phenomenon Time The mass of a proton which remains the same as time changes Spatial Position The homogeneous density of matter in universe Spatial Direction The isotropic flux of a radiation from a radioactive source. Time and external Influences

The structure of an atom, The functioning of an automobile factory which produces cars irrespective of market conditions, personnel turnover, etc.

System and System Environment

ยƒ Unitarity and Invariance
  • Values and Variables
    • System properties and behavioral patterns are observable. Observation made by an โ€œobserverโ€ permits values to be associated with the system. - A reading from a scale placed closed to an object can be associated with that objectwith that object.
    • The repeated application of the same measurement operation to the same system under different conditions will yield different values. - We can say that the system has a property called a variable which causes the measurement operation to yield the observed values under the various conditions.

docsity.com

System and System Environment

ยƒ Unitarity and Invariance
  • System Environment
    • A system is often affected by changes occurring outside the system: system environment. - Factory : Arrival orders ยป Effect of supply on demand : relationship between factory output and arrival (activity of system)output and arrival (activity of system) - Banks : Arrival of customers

System and System Environment

ยƒ Unitarity and Invariance
  • System Environment
    • The relation of the system to its environment exemplifies an interaction. - A stimulus or influence (causal factor) called an input (variable) is exerted on the system. - The system reacts to the inputThe system reacts to the input , assuming a new state in a wayassuming a new state in a way depending on its nature and on its previous state. Each state corresponds to a set of values for internal system variables called the state variables. - The state change produces an externally perceivable result or response called an output (variable).

System and System Environment

ยƒ Decomposibility
  • The subsystems within systems are themselves systems, which makes the definition a recursive one. - A system is a hierarchy of subsystems. The term component is frequently used as a synonym for subsystem.

Systems and System Environment

System

Experiment with actual system

Experiment with a model of actual system

Physical Model

Mathematical Model

Analytical Solution Simulation

Identification of a System

ยƒ A system is broadly described in two ways:
  • Static representation
    • We identify all possible subโ€systems to be included in the model without bringing about any change to the system. Here we eliminate the effect of time.
  • Dynamic representation

Identification of a System

ยƒ These changes are possible through system elements
and their environment as the time progresses.
ยƒ A system element is a component, a part and/or a
subโ€system that performs one particular function or
a process. All elements are linked through
ll ationship.h
ยƒ The overall behavior of the system can be obtained
by studying the manner in which they interact with
each other.

docsity.com

Models

ยƒ Model
  • It is a simplified, abstracted construct of a system used to predict the behavior of the system. - It can be a small (finite) description of a very complex reality. - It is typically constructed to answer particular questions. - If question changes, does the model change?

Models

ยƒ A model can be used to investigate a wide variety of
โ€œwhat ifโ€ questions about realโ€world system.
  • Potential changes to the system can be simulated and their impact on the system can be predicted.
  • Adequate modeling parameters can be determined before implementationimplementation.

Models

ยƒ What is Modelโ€based Reasoning?
  • It is a methodology for analyzing, understanding, and predicting behavior of a system, process, or phenomena using a model. - For what kind of Systems: - Engineering process (continuous) โ€“ chemical plants, aircraft, traffic

Models

ยƒ Model Performance Criteria
  • Accuracy
    • How perfectly the model represents reality?
  • Precision
    • Level of detail and nonโ€ambiguity of the model
  • โ€“ CompletenessCompleteness
    • Extent to which a model contains qll the elements necessary for satisfying a study purpose.
  • Usefulness
    • Comparing a modelโ€™s performance compared to the study objectives

Modeling Paradigms

ยƒ Modeling of Systems
  • There are three different modeling paradigms:
    • Discreteโ€event Modeling
    • Continuous system Modeling
      • Quantitative
      • Qualitative

Modeling Project Flowchart

Define System BackgroundResearch Math^ Model

Visualization Computer Model

Goals

Algorithm

Communicate Results

Analyze and Interpret Results Test

Paper Presentation Display

docsity.com

Steps for Developing a Model

ยƒ Identify problem area
ยƒ Conduct background research
ยƒ State project goal (or goals)
ยƒ Define relationships
ยƒ Develop a modelDevelop a model

Steps after Developing a Model

ยƒ Develop a computational algorithm
ยƒ Perform tests
ยƒ Visualize results
ยƒ Interpret results and compare with experiments
ยƒ Communicate results and associated issuesCommunicate results and associated issues.

Model of a System

ยƒ Three Model Levels
  • Conceptual
    • Very high level
    • How comprehensive should the model be?
    • What are the state variables, which are dynamic, and which are important?

Hierarchy of the Model Structure

ยƒ Models are classified in number of ways and none of
the way is completely satisfactory.
ยƒ In the broadest sense, models can take any of the
following two forms:
  • Physical (iconic or replica) models.
  • Abstract (notional or mathematical) models.

Hierarchy of the Model Structure

System model

deterministic stochastic

static (^) dynamic static (^) dynamic

continuous discrete continuous discrete

Monte Carlo simulation

Discrete-event simulation

Continuous simulation

Discrete-event simulation

Continuous simulation

Hierarchy of the Model Structure

ยƒ Abstract model is suitable for generalโ€purpose
simulation.
  • Simulation from which it is expected to obtain much more than a narrow range of information about the system.
ยƒ However, it is useful in the wider context for us to
idid er andd contrastt t b th b both b asici ff orms ( h(physical i l andd
abstract)to see why this should be so.

docsity.com

2. Abstract or Mathematical Models

ยƒ A mathematical model has a central role in most of
the computational scientific research.
  • Mathematical models are used particularly in the natural sciences and engineering disciplines (such as physics, biology, and electrical engineering).
  • They are also used in the social sciences (such as economics, sociology and political science)sociology and political science).
  • Physicists, engineers, computer scientists, and economists use mathematical models most extensively.
ยƒ Other terms often used in connection with
mathematical modeling are
  • Computer Modeling
  • Computer Simulation
  • Computational Mathematics

2. Abstract or Mathematical Models

ยƒ Mathematical Modeling & Scientific Method
  • Scientific Method
    • It provides individuals and teams a way to solve problems and improve processes. - Observation โ€โ€ Notice what's going on in the world and raise questions about it. - HypothesisHypothesis โ€โ€ Pose a tentative answer to the question raised inPose a tentative answer to the question raised in observation. - Prediction โ€โ€ Use deductive reasoning to formulate a test of the hypothesis. - Experiment โ€โ€ Perform experiment to see if predicted results are obtained.

2. Abstract or Mathematical Models

ยƒ Mathematical Modeling & Scientific Method
  • How do we incorporate mathematical modeling/computational science in the scientific method as applied to various disciplines? - We do this by Computational Methods.We do this by Computational Methods. - Then what are Computational Methods??

2. Abstract or Mathematical Models

ยƒ Mathematical Modeling & Scientific Method
  • Computational Methods
    • These methods cut across the disciplines of mathematics, sciences/technology, and computer science.
    • It is now accepted as a third methodology in scientific research, complementing, not replacing, the traditional loop of observation, thth eory, andd experimenti t
    • It provides insights into phenomena that are too complex to be dealt with by analytical methods or too expensive or dangerous to study by experiments.

2. Abstract or Mathematical Models

ยƒ Mathematical modeling problems are often classified
into black box or white box models.
  • A blackโ€box model is a system of which there is no a priori information available.
  • A whiteโ€box model (also called glass box or clear box) is a system where all necessary information is availablesystem where all necessary information is available.

2. Abstract or Mathematical Models

ยƒ Continuous Mathematical Model
  • If the systemโ€™s behavior could be studied continuously with the help of a model, then it is a Continuous Mathematical Model.
ยƒ Discrete Mathematical Model
  • If thIf th e changesh ii n statest t are observedb d att regularl i tintervals l off time, then it is called a Discrete Mathematical Model.

docsity.com

Characterizing a Simulation Model

ยƒ Discrete vs. Continuous
  • In discrete systems, 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. e.g., Bank

Characterizing a Simulation Model

ยƒ Discrete vs. Continuous
  • In continuous systems, state of the system is viewed as changing continuously across time. System typically described by a set of differential equations. e.g. Head of water in a dam.

Characterizing a Simulation Model

ยƒ Stochastic vs. Deterministic
  • A stochastic simulation contains random (probabilistic) elements, e.g.,
  • Examples
    • Interโ€arrival time or service time of customers at a restaurant or store
    • โ€ข Amount of time required to service a customerAmount of time required to service a customer
  • Output is a random quantity (multiple runs required to analyze output)

Characterizing a Simulation Model

ยƒ Stochastic vs. Deterministic
  • We apply Stochastic (or Probabilistic Mathematical) Modeling for systems having inherent randomness in them, or where random processes are important and uncertainties can not be ignored.
  • In such cases,, random variables and random pprobability y density functions are used to model the system.
  • The outputs are the average values over many times repeated runs with known statistical errors. - Monte Carlo methods and Genetic Algorithms are based on probabilistic or stochastic models.

Characterizing a Simulation Model

ยƒ Stochastic vs. Deterministic
  • When modeling, there may exists uncertainties in various aspects of the model of the system. When these uncertainties in the data and model are ignorable than it is treated as a Deterministic Model.
  • Examples

Characterizing a Simulation Model

ยƒ Stochastic vs. Deterministic
  • Deterministic Model can have mathematical form of following types: - Ordinary Differential equations + Algebraic relations (Quantitative models) - Partial Differential equations + Algebraic relations (Quantitative models)models)
  • These models can also give Qualitative Descriptions, especially if our knowledge of domain and situation is incomplete.

docsity.com

2. Develop Conceptual Model

ยƒ An abstract representation of the system
ยƒ What should be included in model? What can be left
out?
ยƒ What abstractions should be used
  • Level of detail

3. Develop 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
ยƒ Development of algorithms necessary to include in
the model
  • Example: Path planning for vehicles

4. Develop Computational Model

ยƒ Executable simulation model
ยƒ Software approach
  • General purpose programming language
  • Special purpose simulation language
  • Simulation package

5. Verification

ยƒ Did I build the 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)!

6. Validation

ยƒ Did I build the right model?
ยƒ Does the computational model match the actual (or
envisioned) system?
ยƒ Typically, compare against
  • Measurements of actual system

Summary

ยƒ Modeling and simulation is an important, widely
used technique with a wide range of applications
  • Computation power increases (Mooreโ€™s law) have made it more pervasive.
  • In some cases, it has become essential (e.g., to be economically competitive)economically competitive)
  • Rich variety of types of models, applications, uses
ยƒ The modeling may yield wrong or misleading
answers and it is as important to get useful results
ยƒ Appropriate methodologies required to protect
against major mistakes.

docsity.com

Suggested Reading

ยƒ B.S. Bennett, โ€œSimulation Fundamentalsโ€
  • Chapter 1, 2
ยƒ Averill Law, โ€œSimulation Modeling and Analysisโ€
  • Chapter 1 (Selected Sections)

docsity.com