Sabi Horvat, March 2021
The model chooses N facilities from a set of available facility locations to minimize total cost and allocates products to customers from those facilities.
The data in the model currently is simple but can be expanded to data imported to the same data frame. Currently, there are three customer nodes and seven potential distribution center nodes. Each node also has geographic data which is not shown here for brevity.
- Minimize the planned cost. Planned cost includes the fixed cost of setup and the variable cost of shipping products from the Distribution Center to Customers.
- Fulfill Customer Demand: Customers to receive allocation from the distribution centers in the amount of the planned demand.
- Only allocate products to Open Distribution Centers: A modeling constraint to ensure closed distribution centers do not ship products. The big M is set to the sum of all customer demand.
- Distribution Centers Capacity: Each Distribution Center has a limited capacity based on these planning decisions.

The results show that the three customers were allocated to four distribution centers, based on the capacity available and shipping costs (in this case the shipping cost was directly related to straight-line distance).
This map is created with Folium and is interactive within the notebook, although all current features are visible in the image.







