IniziaInizia gratis

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.

Questo esercizio fa parte del corso

Supply Chain Analytics in Python

Visualizza il corso

Esercizio pratico interattivo

Prova a risolvere questo esercizio completando il codice di esempio.

# Import matplotlib.pyplot
import matplotlib.pyplot as plt
plt.title('Histogram of Prod. At Brazil Region')

# Histogram of Brazilian production
plt.hist(____)
plt.show()
Modifica ed esegui il codice