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

Exercise

Adding logical constraint in case study exercise

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, defined the decision variables, create the objective function, and constraints has been completed for you.

Instructions

100 XP
  • Add a logical constraint so that if the high capacity plant in USA is open, then a low capacity plant in Germany is also opened.