Aan de slagGa gratis aan de slag

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.

Deze oefening maakt deel uit van de cursus

Discrete Event Simulation in Python

Cursus bekijken

Praktische interactieve oefening

Probeer deze oefening eens door deze voorbeeldcode in te vullen.

# 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))
Code bewerken en uitvoeren