Multi-Load and Heterogeneous Vehicle Scheduling ◾ 187
9.2.2 Formulation
Assumption 4.5 converts the problem dened in Chapter 4 into an NP-hard problem.
e formulation in the chapter was a minimum cost ow model, whereas the problem
and its formulation, here, are in somewhat dierent. e problem, here, is formulated
as constraint satisfaction and optimization.
A directed graph or network is considered for this transportation system.
Given n for the number of jobs, let node i and node n+i represent the pickup
and delivery location of the ith job in the network, respectively. In this network,
dierent nodes obviously may represent the same physical location in the yard
or berth. By adding node 0 and node 2n+1, as the depot, to the network, the
node set becomes N={0, 1, 2, …, n, n+1, n+2, …, 2n, 2n+1}. e pickup
and delivery points are, respectively, included into two sets P
+
={1, 2, …, n} and
P
−
={n+1, n+2, …2n}. Obviously, P=P
+
U P
−
is the set of nodes other than
the depot node.
e following parameters are known:
AT
j
is the appointment time of the jth job.
TS
vo
is the times at which the vehicle v leaves the depot.
q
v
is the capacity of vehicle v.
TT
ij
is the travel time from the physical location of node i, L
i
, to physical loca-
tion of node j, L
j
(for each pair of i and j in N).
9.2.3 Decision Variable
X
ijv
: is variable indicates the movement of vehicle v from node i to node j. In fact,
this variable is one if vehicle v moves from node i to node j; otherwise, it is zero.
So,its domain is {0, 1}.
9.2.4 Constraints and Objective Function
e constraints and objective function of the problem are formulated in
Equations 9.1 through 9.6. In the formulation, we make a couple auxiliary vari-
ables. e rst one, Y
vi
, is the load of vehicle v when it leaves node i. At the start
of the process Y
v0
=0.
is variable is determined by Equation 9.1. e rst
statement in the equation represents the load of a vehicle when it leaves the rst
pickup point after the depot. e second statement has a similar meaning but
for when each vehicle goes to any pickup or drop-o point after the rst pickup.
If a vehicle goes to any pickup (drop-o) point, its load is increased (decreased)
by one. e second auxiliary variable, TS
vi
, is the time at which the vehicle v
starts service at node i (TS
v0
=0). is variable is determined by the equations
set (9.2).