Group Exercises 2024
Group Exercises 2024
Group Exercises 2024
2324_SC_5_3_019_E
Group Exercise 1
Hamed Jalali
January 2024
2 points out of 20
Deadline: February 11, 23h59
1
Instructions
Please write a short PDF report answering the Tasks. Your report should include a zipped folder
containing your AnyLogic model with the optimization experiment.
The purpose of this exercise is to provide a more complete model of the car manufacturer’s
process and to make some analysis about the performance of the production line. The following
video shows the different steps of car production. You can have a quick look to get some general
idea. Through this group exercise, you will also learn several new capabilities of AnyLogic.
https://www.youtube.com/watch?v=Zn6scKf7k_0
Go to Courses and download the file CarAssembly. This model is incomplete and provides the
basis for this exercise. An explanation of the model will be provided during the class.
2
1) Use one Bar chart to track number of received orders, number of finished orders and
the backlog (= received orders – finished orders).
▪ You need to use Analysis → Bar Chart in AnyLogic. Update the chart every 30
minutes.
2) Use a time plot to draw revenue and material cost as a function of time.
▪ The following video explains the calculations of these costs:
https://youtu.be/WG6mH5cZGgw
▪ Important: You also have to add the formula when cars are not inspected
You have to use Analysis → Time plot in AnyLogic. Update the chart every
30 minutes
3) Draw a histogram for the flow time in assembly stage (ignore the pre-assembly) with
inspection.
▪ Use Analysis → histogram in AnyLogic. You need to draw
“timeMeasureEnd.distribution”
4) Draw a histogram for the flow time in assembly stage (ignore the pre-assembly) without
inspection
Make an output from the analysis tab for weekly profit. In your report, you need to provide a
95% confidence interval for the Weekly Profit (see Table 3).
Table 1: Parameter needed for profit calculation
Parameter Value
Revenue per unit 40
Material cost per unit 15
Defect cost per unit 20
Personnel cost (per person per week) 1
WIP cost per unit (paid before every maintenance) 0.01
3
• Defect cost: Based on historical data, 5% of cars that do not get inspected will show
some defect in the first few weeks of use. When a defect occurs, the cars are returned
for repair with the repair time being “triangular(3, 5, 10) hours”. The capacity of the
repair unit is 3 (there are 3 personnels). The defect cost represents the cost to repair the
cars plus the penalty paid to the customer plus the cost of a replacement car given to the
customer. Please add this repair and defect cost to the model (no animation is required).
▪ Important: to add the repair unit use Service & Resource blocks and make
sure to define a parameter called “Cap_repair” for the repair unit capacity
which equals 3.
Calculating WIP cost needs attention because the calculation must be repeated at
specific moments of time or more precisely, before every maintenance. The first step is
to make a variable for the WIP cost. Then the easiest way is to implement an
. Use a Timeout event with the mode Cyclic and then in the Action tab, update the WIP
cost.
Step 3) Optimization
The manager is convinced that reallocating personnel could improve the performance of the
production line. Currently, there are 17 personnel available (excluding the pre-assembly stage)
who could be reassigned to different stations, thereby changing the capacity of those stations.
Additionally, there are other factors that could be modified. Table 2 provides a list of the
decision variables that the manager wishes to consider.
Table 2: decision variables and objective functions
The following video explains how to run an optimization experiment in AnyLogic. Note that
some parts of the video are not relevant (move to minute 2:30).
https://www.anylogic.com/resources/educational-videos/how-to-video-optimization-experiment-/
4
Additionally, you need to consider the following:
• Run the model for a week
• You need to define a constraint for the total number of personnel. To do that, the
following expression is handy (2 is the fixed capacity of the battery station):
2+Cap_Power+Cap_Suspe+Cap_Body+Cap_Interior+Cap_inspect+Cap_repair
Task B) Fill in the following table and provide it in your report (See the Word file in
Courses).
Table 3: Summary of final Optimization outputs
Cap_Battry 2 2 2
Cap_Power 2
Cap_suspension 2
Cap_Body 2
Cap_interior 2
Cap_repair 3
Cap_inspect 4
Task C) The manager is thinking of doing 100% inspection and removing the repair unit
completely. Please run the optimization again with this new model and report the outputs in
Table 3. What do you suggest to the manager?