Research Article

Highway Passenger Transport Based Express Parcel Service Network Design: Model and Algorithm

Pseudocode 1

Pseudocode for initial service network construction.
Construct initial service network
for all ( in O-D demand set with ) do
find the corresponding for each .
use Warshall-Floyd algorithm to calculate the shortest distance (load distance) for each , store shortest path as operating
path ;
if () then
set all the service design decisions in the shortest path as 0, service frequency, operating path = null;
else
set all the service design decisions in the shortest path as 1,
define service frequency on the path based on service level as and service frequency on the path based on demand as ,
round up to an integer;
if () then
set the path service frequency as , i.e.
else
set the path service frequency as , i.e. ();
end-if
end-if
end-do