Transpo rtation Models 37 9
are 5 demand constraints, and the constraint of supply point j is expressed as
follows:
i=m
X
i=1
x
i,j
≥ d
j
.
There ar e 5 demand cons traints, with each row representing the tota l quan-
tity of product to be transported and received by the indicated demand point.
x
1,1
+ x
2,1
+ x
3,1
≥ 700
x
1,2
+ x
2,2
+ x
3,2
≥ 600
x
1,3
+ x
2,3
+ x
3,3
≥ 1000
x
1,4
+ x
2,4
+ x
3,4
≥ 500
x
1,5
+ x
2,5
+ x
3,5
≥ 200
The decision variables x
i,j
have the sign cons traint x
i,j
≥ 0, for i = 1, 2, 3
and j = 1, 2, . . . , 5.
23.4.1 Formulation with the Pyomo Modeler
The following listing shows the Python script that contains the formulation of
the model using Pyomo. The ma in difference with the previous model is that
now there are five demand points (line 13), three additional decisio ...