Get startedGet started for free

Solving production plan exercise

In this exercise you are working on a production plan for manufacturing kitchen cabinets over the next four months. There are setup, production, and inventory storing costs. You are given the starting inventory, the production capacity and the demand for cabinets for each month. Your goal is to determine how many cabinets should be produced, and the ending inventory in each period that minimizes the overall costs over the four months.

The PuLP model has been completed for you and stored in the variable model. The model’s decision variables include, x which equals the quantity of cabinets produced in a month, and s which shows the inventory at the end of a month. Additionally, a Python list of the different time periods named time has been created for you.

This exercise is part of the course

Supply Chain Analytics in Python

View Course

Hands-on interactive exercise

Have a go at this exercise by completing this sample code.

# Print status
print(____[model.____])

# Print variables
for v in model.____():
    print(v.name, "=", v.____)
Edit and Run Code