Lecture 09-Basic Simulation Terms and Illustrative Examples

IIT Kanpur July 201
20 followers
1 Video View·Dec 3, 2023
basic terms in simulation, system, model, boundary, entity, attributes, states, event, activity.
Good evening, students, welcome to once again to the course on simulation of business systems.
And we were discussing the topic, how to build simulations.
And we have already seen one part of this lecture.
The lecture that we have already seen is the modulus viewpoint, why it is important to
have the viewpoint and why is it important to understand that what are the key issues
related to simulation, and how different type of users have different user needs and how
depending upon the user needs, the different simulation models are built.
And then lastly, we talked about when to use the simulation, or what are the right scenarios
in which the simulation is to be used.
So these are the what we can think about the major considerations in designing and conducting
a simulation study.
So this we have already seen through.
Now we are going to look into is that some of the new aspects today in this current lecture,
we will look into the some of the major definitions of the terms, then we will look into entities
and attributes, then we will talk about event and activity.
And then we will also see if time permits, we will also see what are some of the simulation
study steps in the process.
But at least we will go through these two in the today's lecture.
So let us talk about the basic terms today.
Some of the terms we have already seen a detailed definition, but we are defining we are just
relooking into these terms once again.
So the first term that we are going to talk about is system, we studied system in many
terms, we keep on repeating the term system, system, system so many times.
So for now from this, so this we will look into the modulus viewpoint, what should be
the mod, these new terms from the modulus viewpoint.
So from a modular, a system is a collection of interacting components, it is a collection
of interacting components that are usually with an identifiable function or purpose.
So it is a collection of interacting components, we are talking about a bunch of components
that are interacting and are usually, they usually have a identifiable function or a
purpose.
So the components, the components have a function or purpose, else may not be relevant.
So for example, is that if you are building a, studying a factory, so if you are looking
into a factory like this, this is a big factory and let us say there is a machine 1, a machine
2 and a machine 3, just machine 1, machine 2, machine 3 and parts come in and they go
to these three machines and get out.
And then this is what you are studying as a simulation and there is a toilet here and
then there is a toilet here, it does not matter whether the toilet is here or here or if that
is called this as T1 and T2, these are toilets, T1 and T2, whether T1 and T2 is here or the
T1 is here and here, it does not matter where it is because that is not part of the study.
So it may not be relevant at this particular case, but this, this distances, these aspects,
they are all, they are all relevant to the, the D1 and D2 are all relevant to what the
studies are more important.
So the collection of interacting components that are usually identifiable, they have a
purpose, then that is what we call as a system.
Then model, we see, we said that the assumptions that are used in studying the system becomes
the model and those kind of things.
So here we say it as a model, it is a representation of a system, representation of a system, of
a system that is used, that is used to replicate some features of the system.
So what is model in this case, it is a representation or it is an abstraction, some people call
it as an abstraction, but let us call it as a representation, a representation of a system
that is used, you are, why do you build a model, because you want to use that model
to replicate some features of the system or you want to use this model, another way to
use is, use the model to study the system, to study the system, that is what we talk
about as a model in this regard.
Then we talk about, so like an example is, only relevant aspects of the system is included
in the model or model is dependent on study objectives.
If you are trying to study about a system, only the relevant aspects of the system, you
are not going to include everything, only the relevant aspects of the system are included
in the model, because why, because the model is dependent on the objectives.
So if you are trying to study a system and it is a Boeing 747 and you are interested
in studying the impact of two engine failure, then obviously you will probably be looking
into studying that aspect of it, rather than you might not be interested in studying what
is the paint of the aircraft at that point, okay.
So only those relevant, only whatever is relevant to the study objectives are included in the
model.
Then comes the last, the third term called as boundary, we heard about system and boundary.
So we say each system must have some boundary, boundary between and its environment, okay.
So one way to think about it is, if you think about this as a system, let us call this as
a system and let us call this as the environment, okay.
So then this component becomes the system boundary and obviously the system interacts
with the environment, system interacts with the environment or with its environment through
the boundary.
So the boundary is the point at which the system interacts with its environment, okay.
So these are the interactions with the, and obviously the interactions can be this way
also, with the environment to the system and the system to the environment.
So in a manufacturing system, an example of it would be electricity will be from the environment
to the system, whereas the manufacturing waste or the used coolant will be from the system
to the environment, that would be an example of the boundary of the system or how interactions
happen between system and said boundary.
Now let us look into some more of the basic terms, we have already seen these basic terms,
but we would like to enhance this further and look it from again as I said, it is from
a modulus viewpoint.
So entities, we talked about entities and from the, this modulus viewpoint, entities,
they are the objects, objects of interest, they are the object of interest in the system,
okay.
So for example, if you are talking about a example, you are talking about a bank, then
the entities could be, the interest would be customers, bank tellers, okay.
Those on, they are the ones who get served in the bank, these are the people who provide
the service.
If you are in a hospital, the entities could involve patients, it could involve doctors,
nurses, then support staff, etc., it could also involve sometimes medicines, okay.
So these are all, so the patients are the ones who get treated, doctors are the ones
who provide the treatment, nurses are the one who support the treatment and medicines
are the one that are consumed during treatment.
So entities does not have to be live things also, non-living things can also be entities.
So entities are simply objects of interest within the system.
Now we talk about attribute, so attribute is a property of an entity, okay.
It is some data, you can say about some specific data about an entity.
So let us say somebody comes in and says patient name is Ramu, age 45, then address something
okay, A, B, C, D, something like this, then temperature 103 degree Fahrenheit, I believe
Fahrenheit, not Celsius obviously, then blood pressure something like this, okay.
So all these aspects, these are attributes, the temperature, the blood pressure, these
are all attributes that are pertaining to the entity of that patient.
If you are talking about a car that is being manufactured, car, then you have the model,
then engine, color, seat configuration, then number of doors, etc., these are all attributes
of the particular entity called a car, okay.
So any entity has a property and this property we use in the study, the simulation to study
more about the aspects of the entity.
Then we talk about what we call as a state, okay.
State can be defined as a state of an entity, okay, it can also be of a system also, it
can be of an entity or of a system is the set of attributes, the set of attributes that
are necessary to describe the entity or the system at any given.
So it is a state of an entity or you can talk about the state of a system, it is that set
of attributes, a particular set of attributes that are necessary.
You require these attributes to describe the state of the entity or the state of the system
at any particular given time, at any given time.
So like as I said, at 9 a.m. on 27-6-2018, Ramu had a fever of, okay, Ramu temperature
is 103 Fahrenheit, BP is 160 by 100.
Then at 9 a.m. on 28-6-2018, Ramu's temperature is, if you say temperature is 100 degree Fahrenheit
and BP is 120 by 90, then you can obviously say that Ramu's health condition is improving
in this regard, okay.
So the state of the system, the state of the entity called Ramu is in a condition that
the BP is reducing, the temperature is reducing, so the health is, you can conclude that health
is improving.
Such an example or such is called as the state of the system or state of the entity.
Now we are going to get into something called as the new terms, okay.
Some of the new terms that we want to talk about today, okay.
So the entities and attributes to an extent results in some new concepts, okay.
The first one is the term called event.
An event, an event is an instantaneous occurrence, is an instantaneous occurrence, okay.
It is an instantaneous occurrence that changes state of some entity or the system.
So it is an instantaneous occurrence, it happens at a particular instant of the time
that changes the state of the entity or the state of the system, okay.
And in simulation, in simulation, events are occurred, are considered, are considered to
be occurring in zero time, which means the time taken for an event to occur is pretty
much zero, which means it is instantaneous occurrence, this is what we talk about it
as the zero time.
So if you think about a scenario where there is a bank teller, okay, let us assume that
this is a bank table, okay, and here is a PC, okay, and we have a chair, and there is
a human being sitting here working on this one, and people are standing in a queue in
front of the teller, okay.
So this is a queue in front of them waiting to get served.
So as of now, there are three people, okay, one teller or three customers and one teller,
they are all waiting to get served.
So when one more person, the fourth person comes into the system, it happens at a one
particular instance of the time, and suddenly the state of the system changes, it becomes
3 plus 1 person, okay, and the teller will now have to spend, have to spend more time
now, because the fourth person come in, okay.
So that kind of a system, so that the system changed, system state changed, or the state
of the system has, or the state of the entity has changed.
In this case, the teller state has changed, also the system state has also changed.
So that kind of an occurrence is what we call it as a event.
Then we talk about what we call as an activity.
Activity is a time period, period of a prescribed length, length during which some specific
task is completed.
Some people say this as some value is added.
You can, does not have to be a value addition, but some specific task is completed within
a prescribed length of time period, okay.
So some examples of this will be checking out things in a supermarket.
So you bought things, you took them to the cashier and you are checking them out in the
supermarket.
Another one is that, you know, you are being, getting served in a restaurant.
You are waiting in a restaurant and you are getting served by that particular person.
So it will take you some particular time to do that, okay.
Car getting assembled, okay.
These are all examples of various activities that are happening in the, in a system.
So we now know what is an event and we also now know what is an activity.
An event is an instantaneous occurrence that changes the state of the entity.
And an event is always considered to be occurring in zero time.
That means the time taken for the event to happen is instantaneous.
It does not take too much of a time, whereas an activity, it has a prescribed length of
time during which a specific task is completed.
Some people say that at which a value is being added to the system, even if it is no value
to be added to the system, but still it is important because a specific task gets completed.
So let us take a simple illustrative example, okay.
So let us talk about filling of a water tank.
So let us assume that there is a water tank.
These are the four pillars of the water tank.
Now it is kind of not a good diagram, but yes, it is a water tank.
Assume that this is a water tank and you have a water pipe that is coming in and brings
water into it and water falls into this, okay, and there is some level of water into this
and water falls into the water tank, okay, all right.
Now, so let us assume that suppose we have a water tank, water tank into which water
is flowing, is flowing at some rate and rate may be changing, may not be a constant rate,
it can be changing and also water is removed, another rate can also change, this rate can
also change and so assume that there is another place where you are removing the water and
the water is going out and here is a, you know, valve for controlling the water that
is going out.
So this is where the, this is the inlet and here is the outlet where the water can is
being consumed, people are taking the water out through the outlet and that rate of consumption
can also change, okay.
Then amount of water, amount of water in the water tank, the question is, is it continuous,
is it a continuous variable or discrete variable?
The first question is the amount of water in the water tank at any given time, is it
continuous or discrete?
Obviously, it will be a, it can be thought about just a continuous variable, it is not
a discrete variable, as time progresses, this value will keep on changing, if this rate
is less, then the water will keep on rising, when this rate is more, the water will keep
on decreasing.
Now, consider a scenario where we are only interested in whether the tank will overflow
or become empty, okay, if that is what a scenario we are interested in, we are only interested
in a scenario where the water is, so let us say the water reaches this level, this is
called as overflow level and if the water reaches this level, then we let us consider
it as the empty level, okay, so if we are only interested in this, whether the water
is overflow, so if overflow switch off inlet, if empty switch on inlet may be reduce outlet,
may be increase outlet, so this is possible, you might more be interested in this.
Now, if you are just only looking into this, whether if the system is overflow or empty,
that is the case that you are looking at, now is it continuous or discrete, so in this
particular case, it is no longer continuous, it is a discrete system, because you are only
interested in, so here only interested in 2 specific states of the system, the 2 specific
states that you are interested in is empty or overflow, everything else is immaterial
to you, whatever the water level is in between, you do not care, so when, so this is where
you have actually now discretized a continuous system, so this is an example of how sometimes
you study a simple system.
Now, let us take another illustrative example, this is a very common and people use this
example to illustrate the use of a simulation and entities and other aspects in it and what
it is, is called as it is a bank, okay, a bank is a place where you go to deposit your
money or get a loan or get financial services, stuff like that, so let us define some study
objectives to begin with, so you want to study a bank and for the time being our study
objective in this case is the first study objective is to estimate the average waiting
time, time for you are interested in finding out the average waiting time, how long does
the customer have to wait before getting served, okay.
And in this the 2 type of customers who come the lobby and wait for a teller, who come
to the lobby and wait for a loan officer, so you have 2 type of customers, some of them
will come to the lobby and wait for a teller, some of them will come and wait for a loan
officer, then in both cases what is the average waiting time for the each type of a customer,
okay.
Then second one is estimate the utilization, utilization of bank tellers and loan officers,
okay, so here is percentage, sorry, of time these people are utilized for serving the
customer, so that aspect we are interested in, estimate the utilization of bank tellers,
how long, what percentage of the time the teller and the loan officer are serving the
customer.
Then you can say 3, may also want to study the effect of online services, air conditioning
needs in the lobby, air conditioning needs in the lobby, floor plan of the bank, etc,
so you might want to do that, so you might want to see whether the number of, so you
can, may be some of the question is, is the number of customers influenced by online services.
Second one is average human beings at any given time for BTU, British Thermal Unit Requirements
of Air Conditioner, okay, so these kind of things, you know, how, what is the floor plan,
which is the best way to keep, where to keep the waiting area and those kind of things
or may be where to keep the sofa or line of chair for customer, okay, so these kind of
questions can also be studied as part of the, so these are sub questions, okay, of this
might be something that is not, so these are typically what we call as generic output,
this could be specialized, so depending upon the objective of this study, you might end
up using a general purpose simulation language or a specialized software, it is up to you.
So, if you are looking at generic output, it is probably not much important to, so here
in most these studies, you might end up using a simple simulation package, so you might
just take a simple simulation package and simulate, model the system and study this,
whereas here you might require a specialized simulation system development, so you might
end up developing a specialized simulation in this particular case because you might,
the standard simulation software available might not help you in identifying the or incorporating
the floor plan of the particular bank to decide where to put the chairs and other things,
so with that now, let us take a look into the you know, the various system and components
of bank example, so let us take a look into what are the systems and components of this
bank example.
So, the what is the system of study here, as banking, you are studying the banking system,
a particular for more specific, it is a particular branch of a bank that is what the system that
you are interested in studying, then what are the entities in this entities, you can
say there are customers, you want to be more specific, you can have 2 entities, they are
the teller customer and loan customer, okay, you can think about it that way, so you have
2 type of customers in this regard, then there is another entities also in this regard, so
these are the people who move in the system, then they are the servers, servers that will
be bank teller, loan officer, they provide service to the customers of the particular
branch of the bank, so these are the people who provide the service, whether it is a teller
service or a loan service to the particular, the customers of a particular branch.
Then some of the attributes, attributes of the entities can be think about, checking
account balance, measuring loan availability, verifying bank transaction, so there are many
attributes that you can think about, okay, so in this case is instead of verifying, you
can say documenting, documenting, so here is checking account balance is how much money,
money is there in the bank, okay, measuring loan availability means how much can be borrowed,
documenting bank transaction is whether money reached, so those kind of things, so these are
the attributes of a particular individual. Then we can talk about activities, so some
of the activities we can think about is making deposits, deposits to saving account, then
we have is the making loan payments, drawing from the checking account, putting fixed deposit,
so these are all activities, various type of activities that the customer can do with the
help of the servers in the bank, okay, in the depending upon what they are there for the bank.
Then we can think about the events in this case, the major events in this case are like arrival of
the customer, now the customer, departure of the customer, etcetera, of the customer,
etcetera, right and then the last aspect is the state variable, the system state variable that
includes the number of busy tellers, how many tellers are busy, number of customers waiting
in the loan officer queue, then average waiting time of all customers, etcetera, so these are the
state variables, so if you think about it, the system here is a banking system and the entities
are 2 type of customers, the teller and the loan customers, servers are the bank teller and the
loan officer who provide service to the customer, attributes are like checking account balance,
how much of money is left out, where how much of money I can borrow or the measuring the loan
availability, documenting the bank transaction, whether the money is leased, yes or no kind of
a thing, activities can make deposit into your savings account, you can make loan payments,
you can withdraw from the checking account, you can put fixed deposits, those kind of things
and events is arrival of the customer, departure of the customer and state variables include how
many tellers are busy, how many customers are waiting in front of the loan officer,
what is the average waiting time of the system, okay. So, in this case you should think,
you should understand that state variables, they may change continuously or at specific
time instances, so if they change continuously, then we are talking about a continuous simulation
or continuous system and if they change only at a specific instance, then we are talking about a
discrete system, as I showed it to you, how a continuous system and can be studied as a discrete
system and discrete system currently, if you take in a particular fashion, we can also study things
in a continuous fashion. So, with this what we, what I am, so if you take a look into this,
again as I said earlier, if you think about the bank, let us say you are assuming that the people
are coming to the bank in a, so here is a teller 1, teller 2 and you have loan officer 1, okay,
and let us say you have a teller 3, if this say, this is the arrangement, then the people come
into the system, so here is the door of the bank, let us say this is the door of the bank,
okay, people come into the system and people can, this is probably let us say the waiting
space for the lobby, where people are sitting, waiting for, so here you have, let us say you
have waiting space available right here, think about it as a bench in which people sit or bench
or a sofa, anything of the sort, people have places to sit and then the, or you can think
about people being standing in a queue also, whichever way you want, you can think about it,
there could be a scenario where people will be making lines in front of the tellers like this,
there might be 1 person waiting in front of the loan officer, there might be 2 people waiting
in front of this teller or there could be people coming to one location, there is a token system
available and people sit here and token numbers are called, there are many ways the queue management
will be taken care of but then you have you know, then once it is done, then the people will come
in and then they will get out also through this bank, so this case you can think about how many
chairs are required, how many chairs you know, then you can think about us how many tellers,
how many loan officers, all these things, we can talk about is the space required,
so quite a lot of analysis you can be done using the simulation but the question here is how much,
what are the details you are going to study, if the goal is to decide how many people are to be
employed, then you do not need to worry much about how many chairs and how many space requirement
might not be a big issue but if you are more interested in the air conditioning, then you
might want to find what is the space requirement, how many people are there and those kind of
aspects, so in another way, the objectives determine the modelling approach and
experimentation. So, the experiment, the simulation experiment and the modelling
approach is determined by the objectives or what objectives? Study objectives, what are
you interested in studying? So, study objectives determine the modelling approach and the
experimentation in simulation, so with this we come to a conclusion of today's lecture on this
particular topic, I hope that it now the concepts are very much more clear to you.
Now, to the next class we will study the, we will look at the formal step by step approach of how
to conduct a simulation experiment, when you build a model how to do experimentation using
the model and from there we will move forward and identify how to do the rest of the aspect.
So, thank you for your patient listening and in the, do not forget to read your daily lessons
and as well as the assigned reading, keep doing your homework, practice things because this is
a new topic to you, without practice you would not be able to understand this better and once
this is done, we will now get into the learning of how to use arena to do various simulations
and that will result in few assignments to you and you will have to do that as part of your,
probably as part of your exam as well. Thank you for your patient listening and
I will see you guys later some other day, thank you very much.
