1. Learn
  2. /
  3. Courses
  4. /
  5. Supply Chain Analytics in Python

Exercise

Simulation testing capacitated model

Continue the case study of the Capacitated Plant Location model of a car manufacture. The PuLP model has been completed and solved for you. It is stored in the variable model. The decision variables x, and y respectively represent the production quantities of the different regions, and if a production plant is opened. Additionally, two python lists loc, and size have also been created, containing the different locations, and the two types of plant capacities. Finally, the input data for the model has been printed to the console for you for reference.

Instructions 1/4

undefined XP
    1
    2
    3
    4
  • Complete the code of the objective function that uses the random.normalvariate() method to add noise to the variable costs estimates, centered at 0 (thousands of $US dollars) with a standard deviation of 5 (thousands of $US dollars).