- Research Article
3
- 10.1002/cpe.3840
A learning Portfolio solver for optimizing the performance of constraint programming problems on multi‐core computing systems
- Apr 27, 2016
- Concurrency and Computation: Practice and Experience
- Tarek Menouer + 2 more +2
SummaryThis paper describes a learning parallel constraint programming (CP) solver designed for solving CP problems with several instances on massively parallel computing platforms comprising multi‐core parallel machines or Many Integrated Cores. The CP solver proposed in this work is based on aPortfolioparallelization that employs a linear reward inaction learning algorithm in order to obtain the best possible performance for a large set of instances of the same problem. The linear reward inaction algorithm enables the prediction of the number of cores to be assigned to each search strategy based on previous experiments, reducing the computing time required to solve constraint satisfaction and optimization problems. The underlying principle of thePortfolioapproach is to runNsequential search strategies usingNcomputing cores (NToNPortfolio) where each core uses its own strategy in order to perform a search that is different from strategies used by the other cores. The first strategy that finds a solution stops all other strategies. The problem with theNToNPortfolioapproach is that the number of search strategies is very small compared with the current number of computing cores used by the parallel machines. However, using an internal parallelization for each search strategy, it is possible to runNparallel search usingPcomputing cores withP≫N(NToPPortfolio). ThisNToPPortfolioperforms suboptimally for solving different CP problems because many computing resources are wasted. To improve thisPortfoliomodel, an adaptiveNToPPortfoliowas proposed, which tries to privilege the strategy that is most likely to find a solution first in order to give it more computing cores than the other strategies. However, the main problem with the adaptivePortfoliois that it loses all the learned information at the end of each search; it is designed to solve just one CP problem. Furthermore, many computational resources are wasted by bothPortfoliosolvers, the non‐adaptive (NToNandNToP) and the adaptiveNToPPortfolio, when employed in some industrial projects, such as thePAJEROproject, which always solves different instances of the same CP problem. To minimize the amount of wasted resources and to learn the most efficient search strategies, we propose a new learningPortfoliosolver that uses a learning algorithm that configures automatically number of cores to each search. The performance obtained using the differentPortfoliosolvers is compared and illustrated by solving CP problems using as example the Google OR‐Tools solver. Copyright © 2016 John Wiley & Sons, Ltd.
Read more