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

Exercise

Objective function of case study

Continue the case study of the Capacitated Plant Location model of a car manufacture. You are given four Pandas data frames demand, var_cost, fix_cost, and cap containing the regional demand (thous. of cars), variable production costs (thous. $US), fixed production costs (thous. $US), and production capacity (thous. of cars). Two python lists loc, and size have also been created, containing the different locations, and the two types of plant capacities. All these variables have been printed to the console for your viewing. The code to initialize, and defined the decision variables has been completed for you.

Instructions 1/2

undefined XP
    1
    2
  • Complete the code to define portion of the objective function that sums the fixed costs, by using lpSum() and list comprehension.