Interpreting simulation results exercise
In this exercise you are given the results of simulation testing of the Capacitated Plant Location model as a Pandas DataFrame called df
. It contains the total production of the different regions. The optimal model results from each run of the simulation is stored as a row in the DataFrame. The first few rows of the DataFrame are printed for you.
Your goal is to create histograms of the total production of the different regions to understand how the production varies in the simulation.
Keep in mind that the production capacity for a low or high capacity plant is 500, or 1,500 respectively.
This exercise is part of the course
Supply Chain Analytics in Python
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
# Import matplotlib.pyplot
import matplotlib.pyplot as plt
plt.title('Histogram of Prod. At Brazil Region')
# Histogram of Brazilian production
plt.hist(____)
plt.show()