Get startedGet started for free

Sensitivity analysis exercise

You are doing the resource planning for a lawn furniture company. They manufacture decorative sets of legs for lawn chairs, benches, and tables from metal tubes using a two step process involving tube-bending, and welding. The profit the company receives from the sale of each product is $3 for a set of chair legs, $3 for a set of bench legs, and $5 for a set of table legs. You are trying to plan the production mix for the upcoming season. Unfortunately, due to a strike there is only 2000 lbs tubing available for production on-hand.

The time and raw material requirements for each product are printed in the console. Also, the PuLP model has been completed for you and stored in the variable model. The constraints of the model are printed to the console.

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.

model.solve()

# Print the Model Status
print("Model Status: {}".format(____[____]))

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