MulaiMulai sekarang secara gratis

Build your model: Run the model and examine results

You have created the assembly line environment and resources, the generators that produce aircraft orders, and the generator that characterizes the response of the assembly line given the processing times prescribed and limited resources available. The SimPy environment is stored in variable env.

Recall that your assembly sequence is defined in the figure below. The model time is in hours.

Airplane assembly sequence showing the different processes and limited shared resources.

Let's now run the model.

Latihan ini adalah bagian dari kursus

Discrete Event Simulation in Python

Lihat Kursus

Latihan interaktif praktis

Cobalah latihan ini dengan menyelesaikan kode contoh berikut.

# Create a SimPy resource for the fuselage assembly block 
step_1_fuselage = ____

# Create a SimPy resource for the wings assembly block
step_2_wings = ____

# Create a SimPy resource for power plant assembly block 
step_3_power_plant = ____

# Create a SimPy resource for landing gear assembly block
step_4_landing_gear = ____

env.process(order_aircraft(env, PLANE_ORDERS, step_1_fuselage, step_2_wings, step_3_power_plant, step_4_landing_gear))
Edit dan Jalankan Kode