On The Synergistic Use of Parallel Exact Solvers And Heuristic/Stochastic Methods For Combinatorial Optimisation Problems: A Study Case For The TSP On The Meiko CS-2 Antonio d' Acierno and Salvatore Palma IRSIP - CNR, Via P. Castellino 111, I - 80131, Napoli emails: [email protected]

Abstract. This paper deals with the exact solutions of combinatorial

optimisation problems. We describe a parallel implementation of a Branch and Bound algorithm we complete such software with heuristic schemes and we show results with reference to the well known TSP problem. We evaluate the performance by introducing the concept of implementation eciency that allows to estimate the communication overhead notwithstanding the over{search problem.

1 Introduction Combinatorial Optimisation Problems (COPs) consist in the search of optima for functions of discrete variables many of those belong to the class of NP-hard problems for which the search of the actual optimum could require prohibitive amount of computing time. COP's can be approached via exact techniques such as the Branch and Bound (B&B) algorithm, i.e. a divide-and-conquer strategy. At each iteration step this algorithm selects (according to a selection rule) a sub-problem, computes its lower bound (by supposing, for example, that minimisation problems are considered) and, if this bound is better than the current best solution, the subproblem is split (according to a branching rule) in two or more sub-problems or, if possible, solved otherwise it is skipped. When the list of sub-problems becomes empty, the algorithm terminates. A B&B algorithm, clearly, can easily keep memory of the Best Case Solution (BCS) simply by evaluating, in the case of minimisation problem, the minimum among nodes bounds in the current list this allows to de ne, at each instant, the quality of the running solution. Even using massively parallel computers, however, an exact technique requires, in the worst case, a time that grows exponentially with the input size. For this reason heuristic/stochastic approaches, that nd sub-optimal solutions using well bound amounts of time and of computing power, are widely used. These methods typically converge to local minima and, in general, they do not provide any information about the distance from the actual optimum. In literature there are many examples of application of parallel computers to solve optimisation problems. Parallel versions of exact and/or heuristic techniques have been in fact proposed to improve the speed and the e ciency of

classical methods. All these examples show that the e orts have been focused on the possibility of improving each single approach. In a previous paper 1] it has been described a fundamentally new approach to the exact solution of combinatorial optimisation problems on parallel computers, based on the synergistic use of exact and stochastic/heuristic techniques. The basic idea of the Multi{algorithmic Parallel Approach (MPA) 1] was the attempt to gather di erent techniques developed in literature for a certain problem with general purpose approaches in order to reduce the computational time needed to reach the optimal solution. Starting from the informal description of the B&B algorithm, in fact, it should be clear that the availability, during the search process, of sub-optimal good solutions should allow the B&B algorithm to cut branches, so lowering the computing time. In this paper we further work out the original idea proposed in 1] by integrating the MPA with a parallel implementation of a classical B&B algorithm 2] proposed for the well known Traveling Salesman Problem (TSP) this algorithm uses, as bounding function, the O(n3 ) Hungarian solution for the assignment problem. The whole parallel algorithm has been realised using the de facto standard PVM 3] and has been tested on the Meiko CS-2.

2 The Parallel B&B Implementation A B&B algorithm can be implemented in parallel according to two main strategies the rst one (small{grained approach, SGA) is based on the parallelisation of bounds computation by using, for example, SIMD machines. Using the SGA we have that the number of nodes split (branches) is exactly the same both in the sequential case and in the parallel one. Such an approach, on the other hand, is useless when the bound function is simple (say linear in the dimension of the problem). Alternatively and/or concurrently, we can use a coarse{grained approach (CGA), where the search across the solutions tree is parallelised. This paper is focused on the latter strategy, owing to the parallel machine we used (Meiko CS-2). In this case, of course, the number of branches in the sequential case and in the parallel case are likely to be di erent, with the parallel implementation performing, on average, an higher number of branches. This phenomenon (over{searching) is, clearly, as higher as the sequential B&B is e cient and avoids useless paths in the search tree. The B&B we choose can be implemented both using a best in rst out (BIFO) strategy and a last in rst out (LIFO) strategy. The BIFO strategy is, by de nition, not bound in the memory complexity moreover an actual BIFO parallel strategy (where at each iteration each processor selects the node from a global list) needs a lot of communication and sincronization so that it seems not well suited for the distributed memory MIMD parallel machine we are dealing with. For such reasons we used a mixed approach, that can be summarised as follows. We used a master{slave structure. The master reads input data and branches the root problem as there are nodes to be examined they are sent to slaves that can start working. The master branches sub{problems until a node has been sent

to each slave. At this point it becomes idle and its list could be empty as well as could contain some nodes. As soon as a slave nds a solution improving the current one, it sends a message to the master that update the current optimum, output this value and broadcast it to other slaves this allows keeping the over{search as low as possible. When a slave becomes idle since its list is empty, it sends a message to the master if the master list is not empty, a node is sent back to the idle slave. Otherwise, the master broadcast a message to each slave asking for nodes each slave with more than a node in its list send one of these (selected according its complexity) to the master that serves the idle son and will use other nodes for future requests. This strategy allows to have a well balanced load. The parallel algorithm of course terminates when each slave is idle and the master list is empty. In our experiments, each slave acts according a LIFO strategy but it could act according a BIFO strategy. What is worth noting is that, in the latter case, we do not have an actual BIFO parallel B&B since, at each iteration, the nodes are selected having visibility just of the local list. The parallel B&B described has been extended according to the idea suggested in 1]. Namely, we implemented two stochastic solvers (a simulated annealing and two-opt search) whose time duration is controlled via the number of iterations they perform. The slaves running such solvers are not served with nodes from the master when they nish running heuristic solvers they ask for a node and become idle.

3 Results Measuring the performance of a parallel B&B is not a simple task because of the over{search problem. Thus, we decided to distinguish between the implementation eciency (that measures the communication overhead and the achieved load balancing) and the global eciency (that gives an overall idea about the performance of the obtained implementation). As concerns the implementation eciency, this has been obtained by considering the time employed to solve the problem as a linear function of the number of branches. (This clearly introduces an approximation, since nodes at di erent levels in the search tree have di erent complexities as regards the bounding function). Figure 1 shows the di erence between the linear approximation and the actual points for 10 random selected asymmetric problems of dimension 70 and 100, in the sequential case as well as in the parallel case with 12 slaves. The implementation e ciency, de ned as the ratio between angular coe cients of approximating lines, is reported in tab. 1. These results seem very interesting and are due to the following facts (i) the custom version of PVM on the Meiko CS-2 introduces a negligible overhead,(ii) our choice of implementing an asynchronous parallel B&B allows to have a low number of communications and (iii) our load balancing strategy works very well (see tab. 1)

c

300 200 100 0

c

cc

ccc

cc

c

5 10 15 20 25 30 branches=1000 c

400 300 200 100

c

c ccc

cc

c

0 2 4 6 8 10 12 14 16 branches=1000

40 35 30 25 20 15 10 5 35 30 25 20 15 10 5

c

0

c

ccc c c

c

cc

5 10 15 20 25 30 branches=1000 c c

c

cc

cc c

c

c

2 3 4 5 6 7 8 9 branches=1000

Fig. 1. The number of branches vs. the time for problems of dimension 70 (upper) and of dimension 100, in the sequential case (left) and in the parallel one (12 slaves).

Table 2 shows the global e ciency when 12 slaves are used, whose average value (0.87) while very interesting is lower than the average implementation e ciency for the same case (0.91), due to the over{search problem. To give an idea of the whole performance of our algorithm, we show in gure 2 the results obtained on two classical problems from the TSPLIB archive. In these tests we simulate a real situation, i. e. we guess that X seconds (with, for example, X = 1200) can be used at most to nd the solution (of course this solution, in many cases, does not represent the actual optimum) and we plot as a function of time the Ratio representing the quality of the solution (Ratio=BCS/(current optimum), Ratio= 1 means problem solved). We show the performance of the parallel B&B, as well as the improvement obtained when the parallel B&B is integrated with a simulated annealing (SA) and with a Two-Opt heuristic (TO). It is worth noting in the latter case that we used 12 slaves for the parallel B&B slave 12 (11) performs the SA (the TO) before becoming actually a slave in the parallel B&B.

4 Conclusions We implemented a parallel B&B with a LIFO strategy, that can be simply extended to a local BIFO strategy, the actual BIFO strategy not seeming well suited for the hardware at hand. We showed how results can be improved by integrating into the parallel algorithm heuristic/stochastic methods such an im-

problem branches branches branches branches slave5 slave6 slave7 slave8 1 754 800 811 775 5 280 293 296 300 8 1081 1083 1135 1085

dim: 2 4 8 12 slaves slaves slaves slaves 60 0.91 0.92 0.92 0.88 70 0.98 0.97 0.97 0.99 100 0.95 0.95 0.91 0.87

Table 1. Left: the number of branches performed by some slaves the parallel implementation uses 8 slaves and it is run on random selected asymmetric problems of dimension 100. Right: the implementation eciency for random selected problems as the number of slaves and the input size vary. dimension #1 #2 #3 #4 #5 #6 #7 #8 #9 #10 avg 60 0.74 0.73 0.80 1.06 1.68 3.57 0.56 0.75 0.84 0.84 1.16 70 0.79 0.58 0.63 1.04 0.69 0.82 0.49 0.82 0.87 0.90 0.76 100 0.68 0.78 0.51 0.55 0.78 0.49 0.71 1.52 0.65 0.46 0.71

Table 2. The global eciency on random selected problem as the input size varies. The number of slaves is 12.

1 0.9 0.8 0.7

1 0.9 0.8 0.7 0

1 0.95 0.9 0.85 0.8 0.75 0.7

0

2

2

4

4

6 8 10 12 secs=100

6 8 10 12 secs=100

1 0.95 0.9 0.85 0.8 0.75

0 1 2 3 4 5 6 7 8 9 secs=100

0 1 2 3 4 5 6 7 8 secs=100

Fig. 2. The Ratio vs. the time using the parallel version of the branch and bound as

the number of slaves varies (1, 6, 12, 24) using the parallel branch and bound (left). The same using 12 slaves and combining the parallel branch and bound with simulated annealing and two-opt (right). The problem are swiss42 (upper) and hk48.

provement is likely to be greater if a local BIFO strategy is used In fact, the BIFO strategy exploits in width the search tree so that the BCS is improved rapidly, while the current optimum not. About the obtained results, we introduced the concept of implementation eciency used to evaluate the communication overhead related to the exchange of global informations and to the load balancing mechanism. We obtained an interesting performance even if we do not have any miraculous solution. The average e ciency is less than 1, even if we have, in some cases, a super{e ciency. To have a parallel B&B that shows a steady super{e ciency it is necessary, in our opinion according to 4] 5], to start from a sequential algorithm that does not optimise its search across the solution tree. As an examples of this common misunderstanding about the problem at hand, we cite 1] the results presented, while still interesting, have been put into the perspective after an improvement of the used B&B. To conclude, the problem related to the portability of the code has to be addressed. The PVM on the Meiko CS-2 does not need the presence of the daemon since, in our implementation, each slaves have to ask for messages at each iteration, this allows to have negligible overhead as a consequence of the fact that the slave interrogates directly the communication hardware. To have good performance on classical platforms, where the slave should interrogate the daemon with a time{consuming operation, we can use the simple solution suggested in 1], where a catcher process is coupled with each slave. The work of the catcher is simply to wait for messages and to communicates with the slave via shared memory.

References 1. Bruno, G., d' Acierno , A.: The Multi{Algorithmic Approach to Optimisation Problems, High{Performance Computing and Networking, Lecture Notes in Computer Science, 919, Springer, Berlin, 1995. 2. Carpaneto, G., Toth, P.: Some New Branching and Bounding Criteria for the Asymmetric Traveling Salesman Problem, Management Science, 26 (7), 1980. 3. Geist, G. A., Sanderam, V. S.: Network-Based Concurrent Computing on the PVM System, Concurrency: Practice and Experience, 4 (1992), 293-311. 4. Lai, T. H., Sahni., Anomalies in Parallel Branch and Bound Algorithms, Comm. of ACM, 27, 6, 1984. 5. Lai, T.H., Sprague, A.: Performance of Parallel Branch and Bound Algorithms, IEEE Trans. on Computers, C34, 10, 1985.

This article was processed using the LATEX macro package with LLNCS style

On The Synergistic Use of Parallel Exact Solvers And ...

using massively parallel computers, however, an exact technique requires, in the ... algorithm of course terminates when each slave is idle and the master list is.

163KB Sizes 0 Downloads 152 Views

Recommend Documents

Parallel exact inference on the Cell Broadband Engine ...
Feb 6, 2010 - a Computer Science Department, University of Southern California, ...... on task T. If ˜T is dependent upon T, and the dependency degree of ˜T.

Parallel Exact Inference on the Cell Broadband ... - Semantic Scholar
data representation can be ported to other parallel computing systems for the online scheduling of directed acyclic graph ..... or save all data. However, note that ...

Graph Partitioning and Parallel Solvers: Has the ...
munity concerning the applicability of graph partitioning to the parallelization ... ware for partitioning graphs, motivated by parallel computing applications (eg.

Parallel Exact Inference on the Cell Broadband Engine ...
Parallel Exact Inference on the. Cell Broadband Engine Processor. Yinglong Xia and Viktor K. Prasanna. {yinglonx, prasanna}@usc.edu. University of Southern California http://ceng.usc.edu/~prasanna/. SC '08 ...

Parallel Exact Inference on the Cell Broadband Engine Processor
The Cell Broadband Engine (Cell BE) processor, jointly developed by IBM, Sony and Toshiba, is a heterogeneous chip with one PowerPC control element (PPE) coupled with eight independent synergistic processing elements (SPE). The. Cell BE processor has

Parallel Exact Inference on the Cell Broadband ... - Semantic Scholar
A developer must understand both the algorithmic and archi- tectural aspects to propose efficient algorithms. Some recent research provides insight to parallel algorithms design for the. Cell [9], [10]. However, to the best of our knowledge, no exact

Parallel Exact Inference on the Cell Broadband ... - Semantic Scholar
Yinglong Xia. Computer Science Department ..... Buehrer discussed scientific computing using .... Each task in SL has a property called the dependency degree,.

On the Use of Iterative LCP Solvers for Dry Frictional ...
acceleration based models [9], [10], [11], [12], or velocity stepping models [4], [6], ..... In the 3D grasping simulator, we defined an initial con- figuration of a robotic ...

Junction Tree Decomposition for Parallel Exact Inference
system can be used for inference. ... inference and solve large scale inference problems, we need to ...... each node is connected to a GPFS (parallel file system).

Synergistic influences of introduced herbivores and fire
continuity with the tree canopy at heights of ca. ...... Forest Research Institute, Christchurch, NZ. ... Forest Service General Technical Report, Washington, DC, pp.

Guideline on the use of pharmacokinetics and pharmacodynamics in ...
Jul 21, 2016 - Clinical pharmacokinetic data to support PK-PD analyses . ..... The statistical method most often used is Monte Carlo Simulation (MCS) but ...

Exact solutions for social and biological contagion models on mixed ...
Jul 25, 2011 - [30] R. Milo, N. Kashtan, S. Itzkovitz, M. E. J. Newman, and. U. Alon, e-print arXiv:cond-mat/0312028. [31] P. S. Dodds and J. L. Payne, Phys.

Attitudes of South African environmentalists on the domestic use of ...
Mar 18, 2009 - ABSTRACT. The paucity of literature on the perceptions and attitudes of South Africans on recycling, reusing, and reducing the number of resources used suggests the need for an exploration of these environmental issues. The current ene

Attitudes of South African environmentalists on the domestic use of ...
Mar 18, 2009 - ABSTRACT. The paucity of literature on the perceptions and attitudes of South Africans on recycling, reusing, and reducing the number of resources used suggests the need for an exploration of these environmental issues. The current ene

Implementation on the use of Reference Materials on HIV, AIDS and ...
control or the sale or distribution of birth control devices: Provjded, finally, Th;t it does ... However. ilv prevalence is increasing arnong young MSM bglween j s to 1g ... use of Reference Materials on HIV, AIDS and STI for Grade 8 Students.pdf.

Rational and ethical use of topical corticosteroids based on safety ...
Rational and ethical use of topical corticosteroids based on safety and efficacy.pdf. Rational and ethical use of topical corticosteroids based on safety and ...

Agenda - Workshop on generation and use of Health Based Exposure ...
Jun 22, 2017 - Background on development and implementation of guide to HBEL and Q&A ... Application of the Q&A on identifying Highly Hazardous products, justification for this ... Setting HBEL at different stages of the product life-cycle.

Recommendations on Selection and Use of Personal Protective ...
Do not use bleach, alcohol-based solutions, or high pH soaps, as they all may enhance ... Response to a suspected opioid storage or distribution facility, with or ..... The CDC established a network of laboratories known as the Laboratory ...

On the use of perceptual Line Spectral pairs ...
India Software Operations Ltd, Bangalore, India. Goutam Saha received his BTech and PhD Degrees from ... are very popular especially in VoIP communication. LSFs are also successfully introduced in speaker recognition task ... A comparison is also sho

On the use of gradual densesparse discretizations in ...
SUMMARY. A key factor to success in implementations of real time optimal control, such as receding horizon control. (RHC), is making efficient use of computational resources. The main trade-off is then between efficiency and accuracy of each RHC iter

Draft Regulations on the use of Television White Spaces.pdf ...
INDEPENDENT COMMUNICATIONS AUTHORITY OF SOUTH AFRICA. NOTICE 283 OF 2017 283 Electronic Communications Act (36/2005): Hereby issues a ...