HW 3 Report
HW 3 Report
Introduction :
In this homework we are expected to build the computerized model of
the system that we built the conceptual model previously. Our project is about
a company that sells its own products . In this company simulation , customer
interested in products of our company comes to the company and negotiate
with the customer representative about the product . There is a queue for that
purpose and if the length of the queue is too long , customer can give up going
into that queue . If negotiation is successfull and a probability calculated
according to the system variables is satisfied , customer will go into the queue
which he/she wants to buy product.
System Definition :
Our system consists of 8 different components. These are : Main ,
Company , Person , SolarArbor , SolarBank , SolarBoat , SolarIrrigation and
Worker.
The purpose of Main component is to combine all of these components
and establish relationships among them.
o Variables :
TotalCustomer holds a total number of customer coming our
company .
o Events :
The purpose of CorruptionEvent is to go bankrupt our
company if necessary amount of money cannot be gained.
The purpose of MonthlyCostEvent is to calculate the
monthly expense of company.
The purpose of FinishSystem is to shut down the system
when the all customers finishs their jobs.
o Parameters:
CustomerSize defines the people who are customer.
Relations :
All the products defined in our system and workers belongs to the
company. Company consists of these components. Person component
defines the customers which will come to our company to buy products.
Main component is responsible to combine all of these components in itself.
2D :
3D :
Note : When 3D mode is enabled , the program shows the model on the left
top corner . You need to slide the screen to there.
Model :
Input Variables :
Uncontrollable input variables are :
1. demand , type : int , component : Person
2. productId ,type : int , component : Person
Decision input variables are :
1. capital , type : int , component : Company
2. expense , type : int , component : Company
3. rate , type : type : double , component : Person
4. cost , type : int , component : SolarArbor
5. producingTime , type : int , component : SolarArbor
6. requirementRate , type : double , component : SolarArbor
7. sale_price , type : int , component : SolarArbor
8. cost , type : int , component : SolarBank
9. producingTime , type : int , component : SolarBank
10. requirementRate , type : double , component : SolarBank
11. sale_price , type : int , component : SolarBank
12.cost , type : int , component : SolarBoat
13.producingTime , type : int , component : SolarBoat
14.requirementRate , type : double , component : SolarBoat
15.sale_price , type : int , component : SolarBoat
16.cost , type : int , component : SolarIrrigation
17.producingTime , type : int , component : SolarIrrigation
18.requirementRate , type : double , component : SolarIrrigation
19.sale_price , type : int , component : SolarIrrigation
20.TotalCustomer , type : int , component : Main
Input :
Output :