
384 Introduction to Computational Models with Python
# Print the optimised value of the objective function
print "Objective Function", value(model.objective)
23.5 UNBALANCED PROBLEM: CASE STUDY 3
When the demand ex ceeds the supply, the problem formulation includes a
penalty associated with the unmet demand. Suppose that in the original prob-
lem discussed previously, supply point S1 produces 3 00 units of the product
(instead of 400). This problem is now unbalance d, with an unmet demand of
100.
A dummy supply point, S4, with a supply of 100 , is added to the problem
formulation. The penalty for unmet demand at demand point D1 is 125; at
demand point ...