You are viewing a javascript disabled version of the site. Please enable Javascript for this site to function properly.
Go to headerGo to navigationGo to searchGo to contentsGo to footer
In content section. Select this link to jump to navigation

A Parallel Algorithm for Solving a Two-Stage Fixed-Charge Transportation Problem

Abstract

This paper deals with the two-stage transportation problem with fixed charges, denoted by TSTPFC. We propose a fast solving method, designed for parallel environments, that allows solving real-world applications efficiently. The proposed constructive heuristic algorithm is iterative and its primary feature is that the solution search domain is reduced at each iteration. Our achieved computational results were compared with those of the existing solution approaches. We tested the method on two sets of instances available in literature. The outputs prove that we have identified a very competitive approach as compared to the methods than one can find in literature.

1Introduction

When looking at the definition of supply chains (SCs), we find the commonly accepted variant: they are considered worldwide networks in which the actors are suppliers, manufacturers, distribution centres (DCs), retailers and customers. The typical SC performs several functions; these are: the purchase and processing of raw materials, and their subsequent conversion into intermediary and finished manufactured goods, along with the delivery of the goods to the customers. The major goal of this entire operation is the satisfaction of the customers’ needs and wants.

A particular SC network design problem is the focus of this paper, more specifically, the two-stage transportation problem with fixed charges for opening the distribution centres. This is a modelling problem for a distribution network in a supply chain that is described as two-stage. This two-stage supply chain network design problem includes manufacturers, DCs and customers and its primary feature resides in the fact that for the opening of distribution centres there exist fixed charges added to the variable costs of transportation, that are proportionate to the quantity of goods delivered. The aim of the envisaged optimization problem is to determine which DCs should be opened and to pinpoint and choose the shipping routes, starting from the manufacturers and passing through the picked DCs to reach the customers, and to satisfy all the capacity restrictions at manufacturers and DCs so as to meet the customers’ specific demands, minimizing the total costs of distribution. The problem with this design was considered first by Gen et al. (2006). For a survey on the fixed-charge transportation problem and its variants we refer to Buson et al. (2014), Cosma et al. (201820192020), Calvete et al. (2018), Pirkul and Jayaraman (1998), Pop et al. (20162017), etc.

The variant addressed within the current paper envisages a TSTPFC for opening the DCs, as presented by Gen et al. (2006). The same problem was also considered by Raj and Rajendran (2012). The authors of the two specified papers developed GAs that build, firstly, a distribution tree for the distribution network that links the DCs to customers, and secondly, a distribution tree for the distribution network that links the manufacturers to DCs. In both GAs, the chromosome contains two parts, each encoding one of the distribution trees. Calvete et al. (2016) designed an innovative hybrid genetic algorithm, whose principal characteristic is the employment of a distinct chromosome representation that offers information on the DCs employed within the transportation system. Lately, Cosma et al. (2019) described an effective solution approach that is based on progresively shrinking the solutions search domain. In order to avoid the loss of quality solutions, a mechanism of perturbations was created, which reconsiders the feasible solutions that were discarded, and which might eventually lead to the optimal solution.

The investigated TSTPFC for opening the DCs is an NP-hard optimization problem because it expands the classical fixed charge transportation problem, which is known to be NP-hard, for more information see Guisewite and Pardalos (1990). That is why we describe an efficient parallel heuristic algorithm.

Parallel computing seeks to exploit the availability of several CPU cores which can operate simultaneously. For more information on parallel computing we refer to Trobec et al. (2018).

In this paper, we aim to illustrate an innovative parallel implementation of the Shrinking Domain Search (SDS) algorithm described in Cosma et al. (2019), that is dealing with the TSTPFC for opening the DCs. Our constructive heuristic approach is called Parallel Shrinking Domain Search and its principal features are the reduction of the solutions search domain to a reasonably sized subdomain by taking into account a perturbation mechanism which permits us to reevaluate abandoned feasible solutions whose outcome could be optimal or sub-optimal solutions and its parallel implementation that allows us to solve real-world applications in reasonable computational time. The proposed solution approach was implemented and tested on the existing benchmark instances from the literature.

The paper is organized as follows: in Section 2, we define the investigated TSTPFC for opening the DCs. In Section 3 we describe the novel solution approach for solving the problem, designed for parallel environments. In Section 4 we present implementation details and in Section 5 we describe and discuss the computational experiments and our achieved results. Finally, the conclusions are depicted in Section 6.

2Definition of the Problem

In order to define and model the TSTPFC for opening the DCs we consider a tripartite directed graph G=(V,A), that consists of a set of vertices V=V1V2V3 and a set of arcs A=A1A2 defined as follows:

A1={(i,j)|iV1andjV2}andA2={(j,k)|jV2andkV3}.

The entire set of vertices V is divided into three mutually exclusive sets corresponding to the set of manufacturers denoted by V1 with |V1|=p, the set of distribution centres denoted by V2 with |V2|=q and the set of customers denoted by V3 with |V3|=r.

In addition, we suppose that:

  • Every manufacturer iV1 has Si units of supply, every DC jV2 has a given capacity Tj, each customer kV3 has a demand Dk and the total number of units received by DC j,jV2 from manufacturers and sent from DC j to customers is denoted by dj;

  • Every manufacturer may transport to any of the q DCs at a transportation cost bij per unit from manufacturer iV1, to DC jV2;

  • Every DC may transport to any of the r customers at a transportation cost cjk per unit from DC jV2, to customer kV3;

  • In order to open any of the DCs we have to pay a given fixed charge, denoted by fj and there exists a limitation on the number of the DCs that are permitted to be opened, denoted by w.

The goal of the investigated TSTPFC for opening the DCs is to select the DCs, the shipping routes and corresponding transported quantities on these routes, so that the customer demands are satisfied, all the transportation restrictions are fulfilled, and the total transportation costs are minimized.

In Fig. 1 we present the investigated TSTPFC for opening the DCs.

Fig. 1

Illustration of the considered TSTPFC for opening the DCs.

Illustration of the considered TSTPFC for opening the DCs.

In order to provide the mathematical formulation of the investigated transportation problem with fixed charges, we consider the following decision variables: the binary variables vj{0,1} that indicate if DC j has been opened and the linear variables xij0 representing the amount of units have been transported from manufacturer i to DC j and yjk0 representing the amount of units have been shipped from DC j to customer k.

Then the TSTPFC for opening the distribution centres can be formulated as the following mixed integer problem, proposed by Raj and Rajendran (2012):

(1)
mini=1pj=1qbijxij+j=1qk=1rcjkyjk+j=1qvjfjs.t.j=1qxijSi,iV1,
(2)
j=1qyjk=Dk,kV3,
(3)
i=1pxij=k=1ryjkTj,jV2,
(4)
j=1qvjw,
(5)
Sivjxij0,iV1,jV2,
(6)
Dkvjyjk0,jV2,kV3.

In order to have a nonempty solution set we make the following suppositions:

(7)
i=1pSik=1rDk,kV3,iV1,
(8)
j=1qTjk=1rDk,kV3,jV2.
The aim of the investigated problem is to minimize the total transportation costs, therefore the objective function has three terms associated to the transportation costs between manufacturers and distribution centres, between depots distribution centres and customers and the costs of opening the DCs, respectively. Constraints (1) guarantee that the capacity of the manufacturers is not exceeded, while constraints (2) ensure that the total shipment received from DCs by each customer satisfies its demand. Restrictions (3) are the flow conservation conditions and they guarantee that the units received by a DC from manufacturers are equal to the units shipped from the distribution centres to the customers and as well ensure that the capacity of the DCs is not exceeded. Constraint (4) limits the number of distribution centres that can be opened and the last three constraints ensure the integrality and non-negativity of the decision variables.

3Description of the Parallel SDS Algorithm

The difficulty of the investigated transportation problem lies in the large number of feasible solutions, from which the optimal option should be chosen. Because each used DC adds a certain cost to the objective function, the fundamental decision of the algorithm is related to the distribution centres that should be used in order to optimize the total distribution costs. Thus, the operations of the algorithm can be separated into the following steps:

  • S1: Choosing a set of promising distribution centres.

  • S2: Solving an optimization subproblem in which only the DCs in the chosen set are used.

Each iteration of the PSDS algorithm involves one or more operations. The set of DCs that are used in the optimal solution is called the best set.

At the initialization of the algorithm, the number of DCs in the optimal set (DCno) will be estimated based on the minimum capacity of the DCs and the total customer demand. This estimate will be permanently updated throughout the algorithm. If the distribution system has q DCs, then the optimum set search domain has qDCno elements. Evaluating each set involves solving the S2 subproblem. For large systems, it is not possible to evaluate all these variants. We will refer to the number of DCs in a set by the set type and to the cost of the distribution solution obtained by solving subproblem S2 through the set cost.

The proposed Parallel Shrinking Domain Search algorithm (PSDS) is an iterative algorithm that applies the following strategy: at each iteration, a fixed number of sets of the search domain will be evaluated, after which the search domain for the next iteration will be reduced. As the search domains narrow down, they will be explored at more detail. In the last iterations, the search domains can be explored exhaustively because they will contain fewer elements than the number settled for evaluation. The algorithm ends when a single set exists in the search domain. In order to avoid losing the optimal solution in the domain search reduction and for DCno estimate adjustment, a perturbation mechanism has been created to reconsider some sets outside the search domain. The search strategy of the PSDS algorithm is shown in Fig. 2.

Fig. 2

The search strategy of the Parallel Shrinking Domain Search algorithm.

The search strategy of the Parallel Shrinking Domain Search algorithm.

The solution-building process is relatively expensive because it requires a large number of operations and the problem is even more complex as the size of the distribution system is larger. The performance of the algorithm has been improved by building solutions in parallel. For this purpose, the Java Fork and Join framework has been used.

In Fig. 3, we illustrate the operating principle of the proposed PSDS algorithm.

Fig. 3

Our iterative Parallel Shrinking Domain Search algorithm.

Our iterative Parallel Shrinking Domain Search algorithm.

The parallel shrinking domain algorithm maintains the following set of lists:

  • Good DCs – contains the promising DCs, based on which the sets within the search domain will be generated at every iteration. This list contains the features of surviving sets;

  • Bad DCs – a list of disadvantageous DCs that is necessary for the implementation of the perturbation operation, and to correct the DCno estimation;

  • Good sets – a list that preserves the best performing sets discovered during the execution of the algorithm. This list has a fixed number of items representing the surviving sets. The sets found at the beginning of this list, contain only good DCs. In the remaining of this document, they will be called Best sets;

  • Sets for evaluation – a list of prepared sets for evaluation representing the sets from next generation of sets;

  • Sets types – a list that contains a quality estimation of all types of sets found in the Best sets list. This is a list of structures {type, quality};

  • All sets – a hash set containing every set created and placed in the Sets for evaluation list during the execution of the algorithm.

At the initialization of the algorithm, the optimal set type (DCno) is estimated and all available DCs are added to the Bad DCs list. Then the Good Sets list, the Sets for evaluation list and the All sets hash set are constructed and a single item of DCno type and quality=1 is added to the Sets Types list. Next, a Thread Pool is created with a number of Worker Threads equal to the number of CPU logic processors. For performance comparison, experiments with fewer threads were also performed. The worker threads will be enabled at each iteration by creating a Recursive Evaluator task that will be sent to the Thread Pool for parallel evaluation of the sets in the Sets for evaluation list.

Every iteration of the proposed algorithm executes in sequence the four main blocks presented in Fig. 3: Generation, Evaluation, Selection and Classification. The first block prepares the sets to be evaluated, the second one deals with the evaluation of the sets, and the last two handle the results. From the point of view of complexity, the first and the last two blocks are negligible in relation to the second. The efficiency of the algorithm has been significantly improved by parallel implementation of the processing in the Evaluation block.

The Generation block contains three types of generators for feeding the Sets for evaluation list. All the sets created during the algorithm are kept in a hash set All Sets. Thus, each duplicate can be detected and removed easily. Such a mechanism could be implemented because the total number of sets is relatively small. The optimization process ends after a very small number of iterations. The total number of sets generated during the execution of the algorithm is relatively small. Due to this property, the PSDS algorithm can be applied for solving large instances of the problem.

The first generator type creates a fixed number of sets by picking at random DCs from the Good DCs list. The types of the created sets are retrieved from the Best types list. For each type present in this list, a number of sets proportional to the quality of the type are generated. The quality of the type is determined by the Classification block.

The second generator type creates perturbations by inserting “bad” distribution centres taken from the Bad DCs list in the good sets from the Good sets list. This operation is essential for our optimization process: there could be distribution centres erroneously categorized by the Classification module, because they were found only in sets composed mainly by “bad” distribution centres. Due to the perturbation mechanism, at each iteration these sets get an opportunity to return to the Good DCs list. This mechanism creates a new set for each “bad” distribution centre in the Bad DCs list, by changing one element of a set taken from the Good sets list. The Good sets list is processed in the order given by the cost of the corresponding distribution solutions. This attempts to place each “bad” distribution centre into the best possible set.

Another key operation is the update of the DCno estimation. For this purpose, both larger and smaller sets than those existing in the Best sets list will be created by the third generator type. For creating larger sets, each “bad” distribution centre is added to the best possible set from the Best sets list. The smaller sets are generated by cloning sets from the Best sets list and randomly deleting one of their elements.

The Evaluation block has the role of evaluating the sets from the Sets for evaluation list. For this purpose, a Recursive Evaluator task is created, which is sent to the Thread Pool for execution.

The operation of this task is shown in Fig. 4. The Recursive Evaluator task divides the Sets for evaluation list into two equal parts, then creates two sub-tasks (ST) to evaluate the two halves. When the number of items a task has to evaluate drops below a certain threshold, a Final Task (FT) is created that will be executed by one of the Worker Threads. For the results presented in this article, a threshold of 10 was used. The algorithm by which each set is evaluated by a FT will be presented at the end of this section.

Fig. 4

The operation of the Recursive Evaluator task.

The operation of the Recursive Evaluator task.

The Selection and Classification blocks are triggered when all the worker threads have ended. The Selection module takes all the sets in the Sets for evaluation list that are better than the last element in the Good sets list and moves them to that list. Next, the Good sets list is sorted by the set costs and only the best elements are kept, so that its size stays constant. Then the Sets for evaluation list is cleared to make room for the next generation of sets.

The Classification block uses the information in the Good sets list for updating the Good DCs and Bad DCs lists. The Good sets list is traversed based on the cost order. The first distribution centres found in the Good sets elements are added to the Good DCs list, and the remaining ones form the Bad DCs list. The number of sets selected to form the Good sets list decreases each time. Due to this, the PSDS algorithm ends after a small number of iterations.

The Classification block estimates the quality of the set types in the Best sets list and places the result in the Sets types list. The quality of each set type is estimated based on the number of items of that type found in the Best sets list and the positions of those items in the list.

The DC set evaluation operation is presented in Fig. 5.

Fig. 5

The DC set evaluation operation.

The DC set evaluation operation.

The relatively bulky data structure representing the characteristics of the distribution system (the unit costs bij and cjk), the fixed costs ( fj), the demands of the customers (Dk) and the manufacturers and distribution centers capacities ( Si and Tj) is static, so it will not be copied at the creation of each task. Because this data is shared by all the final tasks running in paralel, it must remain unchanged. For the construction of each distribution solution, two small lists (used DCs list and used Ms list) will be constructed by the final task, in which the quantities to be delivered by the DCs and manufacturers used in the solution will be kept.

Each solution is constructed in r stages. At each stage the best supply variant for one customer is searched for. Every decision taken in this stage will affect all decisions to be taken in the next stages, as certain transport links might be opened and some of the capacities of manufacturers and distribution centres will be consumed.

Each customer demand is resolved in one or a few stages. At every stage, the cheapest Manufacturer – Dictribution Centre – Customer supply route is sought by the Find Route module, that performs a greedy search. The cost of a route depends on the amount of transported goods, the unit costs of the transport lines and the fixed costs of the transport lines that have not been opened previously. If the found route can not ensure the entire demand of the customer, because of the limited capacities of the distribution centres and manufacturers, then an extra stage is added for the remaining quantity.

The Supply module only uses the two local lists as storage area and updates the total unit costs corresponding to the distribution solution. The last operations of the Supply module is the removal of the unused distribution centres from the evaluated set, and the addition of the remaining distribution centres fixed costs to the final cost of the set.

4Implementation Details

In the description of our algorithm we will use the following abbreviations:

Zbestthe cost of the best distribution solution;
Zworstthe cost of the distribution solution corresponding to the last of the Good sets;
Zsthe cost of the distribution solution corresponding to set s;
totalQualitysum of the qualities of all types in the Sets types list;
sTypethe type of set s;
totalSetsthe number of sets kept in the Good sets list after each iteration;
bestSetsNothe number of items in the Best sets list;
goodPercentthe percentage of the total number of distribution centres that are placed in the Good DCs list;
goodDCsNothe number of items in the Good DCs list;
speedthe rate of decreasing the goodPercent;
AllDCsthe list with all the distribution centres.

The hierarchy of the procedures that make up the PSDS algorithm is shown in Fig. 6.

Fig. 6

The hierarchy of the PSDS algorithm procedures.

The hierarchy of the PSDS algorithm procedures.

The startup of the algorithm is presented in Algorithm 1. Based on experiments, the following initialization parameters were used: totalSetsInit=6q, goodPercentInit=0.5, where q is the total number of distribution centres. The calls on lines 15 and 16 generate and evaluate an initial collection of sets and then, the call on line 17 starts the optimization process.

infor432_g007.jpg

The generation procedure is presented in Algorithm 2. It generates multiple sets based on the distribution centres found in the DCList parameter. This procedure produces perturbations only if the second parameter is true. Petrurbations are almost always generated. The only exception occurs in the case of the call on line 15 of the startup procedure. A number of sets equal to totalSets will be generated at most. For each set type in the SetsTypes list, a number of sets in proportion with the set quality will be generated. If the DCList does not have enough elements for generating the required amount of sets, then the exhaustiveGenerator procedure will be called to generate all the possible sets. Otherwise procedure randomGenerator will be called. If perturbations are required, then the procedures largerSetsGenerator and perturbationsGenerator are called for each distribution center in the BadDCs list.

infor432_g008.jpg

The randomGenerator procedure presented in Algorithm 3 creates at least variantsNo random sets of certain type with distribution centres taken from the DCList. The new created sets are added to the Sets for evaluation list. The procedure shuffles the distribution centres in a working list and avoids putting a distribution centre multiple times in the same set. Each set is validated on line 10. For a valid set, the sum of the distribution centres capacities must be large enough to satisfy all the customers, and the set has to pass the Duplicates detector.

infor432_g009.jpg

The exhaustiveGenerator procedure is presented in Algorithm 4. It generates all possible sets of certain type with the distribution centres from the DCList. The newly created sets are validated on line 3 and added to the Sets for evaluation list.

infor432_g010.jpg

The largerSetsGenerator procedure is presented in Algorithm 5. It searches through the Best sets list to find the best ranked set in which the badDC can be inserted to create a new validated set. The procedure is called in line 14 of the generation procedure, aiming to insert each bad distribution centre in a new valid set.

infor432_g011.jpg

The perturbationsGenerator procedure presented in Algorithm 6 searches in the Good sets list, the first set in which an item can be substituted by the badDC. All the new created sets are added to the Sets for evaluation list. The procedure is called in line 15 of the generation procedure. It tries to insert each “bad” distribution centre in the best possible set.

infor432_g012.jpg

The evaluation procedure is presented in Algorithm 7. It is called in the startup and shrinkingDomainSearch procedures, when the preparation of the Sets for evaluation list is finished. The procedure creates a Recursive evaluator task for all the sets in the Sets for evaluation list, and sends it to the Thread pool for execution. When the evaluation ends, all the sets that are not worse than the ones in the Good sets list are moved to that list. The Sets for evaluation list is cleared, to be prepared for a new iteration, and the Good sets list is sorted according to sets cost.

infor432_g013.jpg

The recursiveEvaluator procedure is presented in Algorithm 8. The first parameter represents the position of the first set from the SetsForEvaluation list to be considered, and the length parameter represents the number of sets to be evaluated, starting from the first. If the value of the length parameter exceeds the value of the threshold wThreshold, then through the calls on lines 9 and 10 two sub-tasks are created, each having to evaluate half of the initial number of sets. When the length parameter falls below wThreshold, the procedure is converted into a Final Task that is retrieved and executed by one of the available Worker Threads in the Thread Pool.

infor432_g014.jpg

The shrinkingDomainSearch presented in Algorithm 9 is the central procedure of the PSDS algorithm. The search domain is reduced at every iteration of the main loop, by decreasing the goodPercent. Therefore, the goodDCsNo is also reduced. The speed parameter controls the convergence of the algorithm. By increasing the speed parameter, the total number of iterations is reduced. This reduces the total number of operations, the algorithm runs quicker, but the optimal solution might be lost, because the search domains are explored less thoroughly. For the results included in this paper, the speed parameter was fixed to 1.1. The updateGoodDCs procedure call rebuilds the Good DCs and Bad DCs lists, at each iteration. The for loop estimates the quality of all the set types from the Best sets list, considering the number of items of each type, and the positions of those items in the list. These estimations will determine the number of sets that will be generated for each type. The DCNo estimation is updated on line 18. The generators and evaluation procedures are called at the end of the main loop.

infor432_g015.jpg

The updateGoodDCs procedure is presented in Algorithm 10. It moves from the Bad DCs list to the Good DCs list a number of distribution centres equal to GoodDCsNo. The distribution centres are taken from the best items of the Good sets list. The bestSetsNo variable is recalculated in the process.

infor432_g016.jpg

The smallerSetsGenerator procedure presented in Algorithm 11 generates all the possible sets by removing one distribution centre from the items in the Best sets list. Each new created set is validated before being added to the Sets for evaluation list.

infor432_g017.jpg

The remaining of this section is dedicated to the adjustment of the algorithm’s operating parameters. The charts presented in Figs. 712 show the gaps for the average of the best solutions and for the average running times required to find the best solutions, in the cases of four different instances. The selected instances have been run 10 times, using five different values for the following algorithm parameters: speed, goodPercentInit and totalSetsInit.

The gap of the average best solution Zgv is given by relation (9), where v is the value of the studied parameter, ref is the reference value of the same parameter, Zv is the average of the best solutions found in the ten runs of the instance when using v and Zref is the average of the best solutions found in the ten runs of the instance when using ref. The gap of the running time Tgv is given by relation (10), where Tv is the average of the running times when using v and Tref is the average of the running times when using ref.

(9)
Zgv=ZvZrefZref×100,
(10)
Tgv=TvTrefTref×100.

Figures 7 and 8 deal with the speed parameter. The reference value of this parameter that has been set for building the charts is 1.1. For higher values of this parameter, the algorithm ends faster because it performs fewer iterations, but this increases the likelihood of missing the optimal solution, because the search domains are reduced too much with each iteration. For speed=1.4 the running time gap decreases to about −50%, but the best solution gap can increase to about 0.3%. For values lower than the reference, the running time gap increases unreasonably.

Fig. 7

The influence of the speed parameter on the best solution found.

The influence of the speed parameter on the best solution found.
Fig. 8

The influence of the speed parameter on the running time.

The influence of the speed parameter on the running time.

Figures 9 and 10 deal with the goodPercentInit parameter. This parameter determines how much the solution search domain is reduced after the first iteration of the algorithm. The reference value of this parameter that has been set for building the charts is 50. The graph in Fig. 9 shows that the decrease of this parameter below the reference value increases the probability of missing the optimal solution, and the graph in Fig. 10 shows that increasing this parameter over the reference value also unjustifiably increases the running time.

Fig. 9

The influence of the goodPercentInit parameter on the best solution found.

The influence of the goodPercentInit parameter on the best solution found.
Fig. 10

The influence of the goodPercentInit parameter on the running time.

The influence of the goodPercentInit parameter on the running time.

Figures 11 and 12 deal with the totalSetsInit parameter, that is: totalSetsInit=q×tc, where tc is the totalSetsInit coefficient, and q is the number of distribution centres. The reference value of the totalSetsInit coefficient that has been set for building the charts is 6. The chart in Fig. 11 shows that decreasing the initial number of sets below q×6 increases the likelihood of missing the optimal solution, and the chart in Fig. 12 shows that increasing too much the initial number of sets has a negative impact on the running time of the algorithm.

Fig. 11

The influence of the totalSetsInit coefficient on the best solution found.

The influence of the totalSetsInit coefficient on the best solution found.
Fig. 12

The influence of the totalSetsInit coefficient on the running time.

The influence of the totalSetsInit coefficient on the running time.

5Computational Results

This section is dedicated to the achieved computational results with the aim of assessing the effectiveness of our approaches suggested for solving the TSTPFC for opening the DCs.

The results presented in this section were obtained by running our algorithm for solving the TSTPFC for opening the DCs on a set of 16 test instances of medium sizes, and on a set of 8 instances of larger sizes. Both sets of benchmark instances are known from literature. We refer to Calvete et al. (2016) for more information regarding the characteristics of the first set of instances, and to Cosma et al. (2019) for more information regarding the characteristics of the second set instances.

We implemented our parallel heuristic algorithm for solving the considered transportation problem, in Java language. We have run each of the instances 10 times, as Calvete et al. (2016) did. For our tests, we used two computing systems having the following two significantly different Central Processing Units:

  • Intel Core i5-4590 CPU at 3.3 GHz having 4 cores / 4 logical processors;

  • Intel Xenon Silver 4114 at 2.2 GHz having 10 cores / 20 logical processors.

For the envisaged test instances, we compared our developed parallel heuristic algorithm with the existing solution approaches with the aim of analysing the performance of our solution. The obtained computational results are presented in Tables 1 and 2.

Table 1

Computational results for the instances introduced by Calvete et al. (2016).

InstanceLINGOHEA Calvete et al.Our solution approach
ZbestTimeIterationAvg. T/Itwt#
BestAvg.BestAvg.
Pl,l:p=10,q=20,i=40 Zopt=295703Topt=1 Zbest=295703295703<0.001<0.00111.00<0.0011
Tavg=0.05<0.0010.0111.000.012
ITavg=1.0<0.001<0.00111.00<0.0014
P2,l:p=10,q=20,i=60 Zopt=500583Topt=1 Zbest=500583500583<0.001<0.00111.00<0.0011
Tavg=0.08<0.001<0.00111.00<0.0012
ITavg=1.6<0.001<0.00111.00<0.0014
P3,l:p=25,q=50,r=100 Zopt=803019Topt=7 Zbest=8030198030190.030.0411.000.041
Tavg=0.810.020.0211.000.022
ITavg=4.20.020.0211.000.024
P4,l:p=25,q=50,i=150 Zopt=1230358Topt=144 Zbest=123035812303580.050.0611.000.061
Tavg=1.780.020.0311.100.032
ITavg=9.00.020.0211.000.024
P5,l:p=50,q=100,i=200 Zopt=1571893Topt=2633 Zbest=157189315718930.300.3211.200.281
Tavg=6.880.140.1811.300.142
ITavg=11.40.080.1311.400.094
P6,l:p=50,q=100,r=300 Zopt=2521232Topt>2hours Zbest=252123225212320.440.5511.500.381
Tavg=11.730.220.2411.100.232
ITavg=13.40.140.1711.400.124
P7,l:p=100,q=200,r=400 Zopt=3253335Topt>2hours Zbest=325333532533352.314.4912.801.681
Tavg=56.731.201.9512.200.992
ITavg=23.40.701.1612.100.604
P8,l:p=100,q=200,r=600 Zopt=4595835Topt>2hours Zbest=459583545958353.473.4911.003.491
Tavg=38.391.801.8311.001.832
ITavg=9.61.031.1011.001.104
Pl,2:p=10,q=20,r=40 Zopt=228306Topt=1 Zbest=228306228306<0.0010.0212.700.011
Tavg=0.20<0.0010.0111.700.012
ITavg=5.6<0.001<0.00111.70<0.0014
P2,2:p=10,q=20,i=60 Zopt=348837Topt=0 Zbest=3488373488370.020.0212.300.011
Tavg=0.230.020.0212.100.012
ITavg=4.8<0.0010.0123.200.014
P3,2:p=25,q=50,r=100 Zopt=507934Topt=2 Zbest=5079345079340.200.3624.300.091
Tavg=2.550.090.2024.900.042
ITavg=12.00.080.1435.800.024
P4,2:p=25,q=50,i=150 Zopt=713610Topt=4 Zbest=7136107136100.310.6125.600.121
Tavg=4.170.200.3235.500.062
ITavg=12.60.130.1925.200.044
P5,2:p=50,q=100,i=200 Zopt=985628Topt=33 Zbest=9856289856284.807.71913.000.591
Tavg=20.462.834.09913.700.302
ITavg=39.42.282.841113.800.214
P6,2:p=50,q=100,r=300 Zopt=1509476Topt=51 Zbest=150947615094766.7510.91713.700.841
Tavg=43.703.285.96615.400.412
ITavg=62.23.094.091014.700.294
P7,2:p=100,q=200,r=400 Zopt=1888252Topt=305 Zbest=1888252188825272.6392.901418.305.081
Tavg=120.9232.6445.711218.102.532
ITavg=54.013.0524.66918.501.344
P8,2:p=100,q=200,i=600 Zopt=2669231Topt>2hours Zbest=2669231266923155.7698.05713.707.271
Tavg=154.4222.9639.25611.703.442
ITavg=35.215.9126.32714.601.834

In Table 1, we describe the results of the computational experiments in the case of the two classes of instances introduced by Calvete et al. (2016). The first column of the table provides the name and the characteristics of the test instance, the next column provides the optimal solution of the problem, denoted by Zopt achieved by the professional optimization software LINGO and as well the corresponding execution time Topt required to obtain it, the next column displays the best solution Zbest achieved by Calvete et al. (2016) and as well the corresponding average computational time Tavg and average number of iterations Itavg required to achieve the best solution. Finally, the last seven columns display results achieved by our novel parallel heuristic algorithm: the best solution Zbest achieved in all ten runs of the computational experiments, the corresponding best computational times Tbest and average computational times Tavg for obtaining the solution, the best and the avearage iteration at which the best solution appears, the average duration of an iteration avg T/it in seconds and the number of worker threads used in each experiment wt#. The computational times are displayed in seconds, with four exceptions, in the case of problems P6,1,P7,1,P8,1 and P8,2 where LINGO needs more than two hours to solve the problems.

Table 2

Computational results for the instances introduced by Cosma et al. (2019).

p ZbestCosma et al.Our solution approach
IqIEEE Access
#rTime [s]IterationCPUTime [s]IterationAvg.wt
wBestAvgBestAvgBestAvgBestAvgT/It#
1150

300

800

50
i347.61112.998176.664
4c, 4 lp41.82191.88315.8512.212
3.58 GHz184.95400.48716.6524.31
3600012206.79216.521819.0Xeon 10c, 201p 2.2 GHz48.9959.1514183.320
45.5358.231317.253.3816
38.9656.911116.43.4812
55.4174.5713184.188
99.46129.281217.007.674
467.97492.641718.7526.421
2150

300

1000

50
i347.42149.35417.368.724
4c, 4 lp139.55260.611016.9715.372
3.58 GHz183.33481.88616.3829.741
4531394260.37311.111416.8Xeon 10c, 201p 2.2 GHz28.2863.83615.144.2720
59.0974.921417.64.2516
51.870.81217.254.1612
39.8383.4717.605.428
138.01159.821618.259.064
466.01578.981631.621
3200

400

1500

60
i3144.92336.46615.2822.284
4c, 4 lp305.63624.35715.6240.532
3.58 GHz635.521221.32615.1781.851
6594333468.97721.36812.8Xeon 10c, 201p 2.2 GHz99.39176.27916.9210.4920
112.61166.21015.410.8616
140.05192.611217.111.2912
90.58199.83614.613.898
175.63338.0861326.574
962.041287.39121586.091
4200

400

2000

60
i396.54442.01317.1726.024
4c, 4 lp344.31848.23617.5848.532
3.58 GHz815.781681.32817.3297.661
8828329461.281020.21716.2Xeon 10c, 201p 2.2 GHz144.52215.191116.9212.7920
147.32224.161017.213.1316
144.18230.6916.913.812
51.32265.5214.819.278
404.8506.151317.2529.464
1590.441886.821517.5108.011
5250

500

2500

70
i3321.671194.81520.0760.024
4c, 4 lp1569.332294.091220.06114.822
3.58 GHz2744.464276.711119.38222.911
110552472709.262733.782121.5Xeon 10c, 201p 2.2 GHz353.18522.151218.7128.0720
497.03569.261719.7528.8616
539.16605.852021.7528.0212
427.66663.611119.2034.968
1235.031368.822021.0065.194
4529.154609.301819.75235.261
6250

500

3000

70
i3658.721029.29816.3364.354
4c, 4 lp733.172062.34415.93133.132
3.58 GHz1482.974093.83515.34271.971
131504631423.672275.37815.0Xeon 10c, 201p 2.2G Hz443.38588.291318.0832.5420
264.15452.47713.2934.516
448.52586.941317.833312
441.11740.31917.0044.248
646.10908.02710.5086.924
3065.594712.131016.25292.961
7300

600

3500

80
i3621.071795.15517.91101.734
4c, 4 lp1191.453653.61518.57198.912
3.58 GHz2869.087824.73617.48453.421
151901671531.774439.75515.8Xeon 10c, 201 p 2.2 GHz414.1894.56718.3349.720
510.9947.71918.451.916
732.691017.761319.3352.212
985.161274.071519.465.78
2284.52376.732020.251174
8520.188759.552020.33430.71
8300

600

4000

80
i31381.142133.521018.51116.244
4c, 4 lp2875.944159.11019.07220.352
3.58 GHz3441.878269.08818.35454.771
172661343046.885368.181119.8Xeon 10c, 201 p 2.2 GHz978.311116.291820.2555.2520
784.31121.981318.959.4916
515.161150.47719.2260.8712
1265.481459.72172073.078
1540.242168.331014.751484
6721.368589.161217512.21

The results in Table 1 show that our developed parallel heuristic algorithm delivers the same result as the one provided by Calvete et al. (2016), in all ten runs of computing experiments. These results correspond to the optimal solutions of the problem obtained by LINGO. In terms of efficiency, our parallel heuristic algorithm runs faster than the hybrid evolutionary algorithm proposed by Calvete et al. (2016) when using a single working thread and our calculation runtimes decrease as the number of worker threads increases, for all the tested instances.

Since Table 1 shows a comparison of the running times of the proposed algorithm with those obtained by Calvete et al. (2016), a comparison of the effectiveness of the programming languages in which the two algorithms were implemented and a comparison of the processing power of the CPUs used in the experiments, are required. The algorithm proposed by Calvete et al. (2016) has been run on an Intel Pentium D CPU at 3.0 GHz. For the results presented in Table 1, we used an Intel Core i5-4590 processor at 3.3 GHz. The single thread ratings of the two processors are shown in PassMark. Pentium D rating: 698, Core i5 rating: 2114. The processor used in our experiments is 3.03 times more powerful. Regarding the languages, the proposed algorithm is implemented in Java while the algorithm proposed by Calvete et al. (2016) is programmed in C++. A comparison of the two programming languages in terms of efficiency is shown in Hundt (2011). C++ has a time factor of 1, and 64 bit Java has a time factor of 5.8. The programming language used for implementing the PSDS algorithm is 5.8 times slower. We considered that the greater speed of the processor roughly compensates the slowness of the Java language. Because the ratings are always approximate, we did not use a scaling factor. The times shown in Table 1 were actually measured during the experiments.

The results corresponding to the set of larger instances are presented in Table 2, and they are compared to the results achieved by Cosma et al. (2019). The first two columns display the instance number ( I#) and the instance features (p, q, r and w). The next five columns display the results of the Shrinking Domain Search (SDS) algorithm reported by Cosma et al. (2019): the best solution Zbest, the best and the average running time for finding the best solution and the best and the average iteration in which the best solution appears. The next column displays the CPU used in the experiments. The last six columns display the results achieved by the PSDS algorithm: the best and the average running times for obtaining the best solution, the best and the average iteration at which the best solution appears, the average duration of an iteration avg T/it in seconds and the number of worker threads wt#. We reported the computational times in seconds.

Two different processors (Intel i5-4590 and Intel Xenon 4114) were used for the experiments shown in Table 2. Because the working frequencies of the 2 processors are different, for analysing the results we calculated a scaling factor based on the single thread results as follows: s=average(tXe/ti5), where ti5 and tXe are the average running times required for finding the best solution in the case of i5 and Xenon processors. Thus, based on the data in Table 2, s=0.89. Analysing the data in Table 2, it turns out that in single thread mode, the PSDS algorithm is on average 67.58% less efficient than the SDS algorithm. This decrease in efficiency occurs because some of the CPU power used to initiate the parallel processing, and the Recursive evaluator cannot be as effective as the evaluation procedure in the SDS algorithm. When 4 worker threads are enabled, then in the case of the i5 processor, the average running time required for finding the optimal solution decreases by an average of 55.09%. When 20 worker threads and the Xenon processor are used, then the average running time required to find the optimal solution decreases by an average of 80.06%. The scaling factor s=0.89 was used to calculate this gain. It should be noted here that although 20 worker threads have been activated, the Xenon processor has only 10 physical cores, so the efficiency of the PSDS algorithm cannot be increased by increasing the number of worker threads above 10.

In Tables 1 and 2 we may remark that, in the case of all the test instances our parallel heuristic algorithm obtained the same results in all ten runs of computational experiments. This confirms both the robustness and the quality of our developed innovative method. The computational execution time decreases as the number of worker threads increases for all instances tested. Because the algorithm has an important random component, the number of iterations required until the optimal solution is found differs at each of the runs. For this reason, the run times are not inversely proportional to the number of threads. To better quantify the gain due to parallelism, the average time of an iteration was calculated for each run, after which an average was calculated for each test instance. Thus, it can be seen that for relatively small instances (P1,1–P4,1 and P2,2–P4,4), the gain is negligible because there is not enough data to be processed. For the other instances, the gains are significant. The average duration of an iteration roughly halves when doubling the number of worker threads. In terms of single thread performance, the Xenon processor is weaker than the i5 processor, because of the lower clock frequency. The Xenon processor has 10 cores and 20 logical processors. As expected, our algorithm could not obtain any significant gain in terms of efficiency when increasing the number of worker threads over the number of physical cores.

Fig. 13

Evolution of the PSDS algorithm results, when run by Intel i5 processor.

Evolution of the PSDS algorithm results, when run by Intel i5 processor.
Fig. 14

Evolution of the PSDS algorithm results, when run by Intel Xenon processor.

Evolution of the PSDS algorithm results, when run by Intel Xenon processor.

Figures 13 and 14 show a comparison of the time evolution of the solutions found by the PSDS algorithm according to the number of used worker threads. The Intel Core i5-4590 CPU at 3.3 GHz was used in the case of Fig. 13 and the Intel Xenon Silver 4114 CPU at 2.2 GHz was used in the case of Fig. 14. Each graph represents the average of the best found solution as a function of the running time, when using a certain number of worker threads. At least ten runs of the second last instance from Table 2 were performed for each of the graphs. The graphs demonstrate the effectiveness of parallel processing. The time required to obtain the same result roughly halves when doubling the number of worker threads.

6Conclusions

This study suggests an effective and fast constructive parallel heuristic algorithm whose purpose is to solve the two-stage transportation problem with fixed-charges for opening the distribution centres, which generates an essential design for the distribution system from manufacturers to customers via the DCs.

Our parallel solution approach is based on reducing of the solutions search domain to a subdomain with a reasonable size by considering a perturbation mechanism that permits us to reevaluate abandoned solutions that could conduct to optimal or sub-optimal solutions. Our approach is designed for parallel environments and takes advantage of the multi-core processor architectures.

The achieved computational results on two sets of instances from the existing literature: the first one consisting of 20 medium size benchmark instances and the second one consisting of 8 large size benchmark instances prove that our suggested innovative method is remarkably competitive, and surpasses in terms of execution time the other existing solution approaches meant for providing solutions to the TSTPFC for opening the DCs, allowing us to solve real-world applications in reasonable computational time.

Here are some significant characteristics of the method we suggest: it is designed for parallel environments and takes advantage of the new multi-core processor architectures; it is based on the reduction of the solution search domain to a subdomain with a reasonable size by considering a perturbation mechanism that permits us to reevaluate abandoned solutions that could conduct to optimal or sub-optimal solutions; it is extremely effective, offering outstanding solutions to all the instances tested and in all ten runs of the computing experiments, and it can be adapted easily to various supply chain network design problems, proving its flexibility.

References

1 

Buson, E., Roberti, R., Toth, P. ((2014) ). A reduced-cost iterated local search heuristic for the fixed-charge transportation problem. Operations Research, 62(5): , 1095–1106.

2 

Calvete, H., Gale, C., Iranzo, J. ((2016) ). An improved evolutionary algorithm for the two-stage transportation problem with fixed charge at depots. OR Spectrum, 38: , 189–206.

3 

Calvete, H., Gale, C., Iranzo, J., Toth, P. ((2018) ). A matheuristic for the two-stage fixed-charge transportation problem. Computers & Operations Research, 95: , 113–122.

4 

Cosma, O., Danciulescu, D., Pop, P.C. ((2019) ). On the two-stage transportation problem with fixed charge for opening the distribution centers. IEEE Access, 7: , 113684–113698.

5 

Cosma, O., Pop, P.C., Danciulescu, D. ((2020) ). A novel matheuristic approach for a two-stage transportation problem with fixed costs associated to the routes. Computers & Operations Research, 118: , 104906.

6 

Cosma, O., Pop, P.C., Matei, O., Zelina, I. ((2018) ). A hybrid iterated local search for solving a particular two-stage fixed-charge transportation problem. In: Hybrid Artificial Intelligent Systems, HAIS 2018, Lecture Notes in Computer Science, Vol. 10870: , pp. 684–693.

7 

Gen, M., Altiparmak, F., Lin, L. ((2006) ). A genetic algorithm for two-stage transportation problem using priority based encoding. OR Spectrum, 28: , 337–354.

8 

Guisewite, G., Pardalos, P. ((1990) ). Minimum concave-cost network flow problems: applications, complexity, and algorithms. Annals of Operations Research, 25(1): , 75–99.

9 

Hundt, R. (2011). Loop Recognition in C++/Java/Go/Scala. In: Proceedings of Scala Days 2011. https://days2011.scala-lang.org/sites/days2011/files/ws3-1-Hundt.pdf.

10 

PassMark (2020). CPU Benchmarks. https://www.cpubenchmark.net/compare/Intel-Pentium-D-830-vs-Intel-i5-4590/1127vs2234.

11 

Pirkul, H., Jayaraman, V. ((1998) ). A multi-commodity, multi-plant, capacitated facility location problem. Formulation and efficient heuristic solution. Computers & Operations Research, 25(10): , 869–878.

12 

Pop, P.C., Matei, O., Pop Sitar, C., Zelina, I. ((2016) ). A hybrid based genetic algorithm for solving a capacitated fixed-charge transportation problem. Carpathian Journal of Mathematics, 32(2): , 225–232.

13 

Pop, P.C., Sabo, C., Biesinger, B., Hu, B., Raidl, G. ((2017) ). Solving the two-stage fixed-charge transportation problem with a hybrid genetic algorithm. Carpathian Journal of Mathematics, 33(3): , 365–371.

14 

Raj, K.A.A.D., Rajendran, C. ((2012) ). A genetic algorithm for solving the fixed-charge transportation model. Two-stage problem. Computers & Operations Research, 39(9): , 2016–2032.

15 

Trobec, R., Slivnik, B., Bulic, P., Robic, B. ((2018) ). Introduction to Parallel Computing. From Algorithms to Programming on State-of-the-Art Platforms. Springer, Switzerland.