A General Framework Based on Machine Learning for Algorithm Selection in Constraint Satisfaction Problems

Many of the works conducted on algorithm selection strategies—methods that choose a suitable solving method for a particular problem—start from scratch since only a few investigations on reusable components of such methods are found in the literature. Additionally, researchers might unintentionally...

Full description

Bibliographic Details
Main Authors: José C. Ortiz-Bayliss, Ivan Amaya, Jorge M. Cruz-Duarte, Andres E. Gutierrez-Rodriguez, Santiago E. Conant-Pablos, Hugo Terashima-Marín
Format: Article
Language:English
Published: MDPI AG 2021-03-01
Series:Applied Sciences
Subjects:
Online Access:https://www.mdpi.com/2076-3417/11/6/2749
id doaj-334e2467274742c392c15a229765bba9
record_format Article
spelling doaj-334e2467274742c392c15a229765bba92021-03-19T00:06:38ZengMDPI AGApplied Sciences2076-34172021-03-01112749274910.3390/app11062749A General Framework Based on Machine Learning for Algorithm Selection in Constraint Satisfaction ProblemsJosé C. Ortiz-Bayliss0Ivan Amaya1Jorge M. Cruz-Duarte2Andres E. Gutierrez-Rodriguez3Santiago E. Conant-Pablos4Hugo Terashima-Marín5Tecnologico de Monterrey, School of Engineering and Sciences, Monterrey 64849, MexicoTecnologico de Monterrey, School of Engineering and Sciences, Monterrey 64849, MexicoTecnologico de Monterrey, School of Engineering and Sciences, Monterrey 64849, MexicoTecnologico de Monterrey, School of Engineering and Sciences, Monterrey 64849, MexicoTecnologico de Monterrey, School of Engineering and Sciences, Monterrey 64849, MexicoTecnologico de Monterrey, School of Engineering and Sciences, Monterrey 64849, MexicoMany of the works conducted on algorithm selection strategies—methods that choose a suitable solving method for a particular problem—start from scratch since only a few investigations on reusable components of such methods are found in the literature. Additionally, researchers might unintentionally omit some implementation details when documenting the algorithm selection strategy. This makes it difficult for others to reproduce the behavior obtained by such an approach. To address these problems, we propose to rely on existing techniques from the Machine Learning realm to speed-up the generation of algorithm selection strategies while improving the modularity and reproducibility of the research. The proposed solution model is implemented on a domain-independent Machine Learning module that executes the core mechanism of the algorithm selection task. The algorithm selection strategies produced in this work are implemented and tested rapidly compared against the time it would take to build a similar approach from scratch. We produce four novel algorithm selectors based on Machine Learning for constraint satisfaction problems to verify our approach. Our data suggest that these algorithms outperform the best performing algorithm on a set of test instances. For example, the algorithm selectors Multiclass Neural Network (MNN) and Multiclass Logistic Regression (MLR), powered by a neural network and linear regression, respectively, reduced the search cost (in terms of consistency checks) of the best performing heuristic (KAPPA), on average, by 49% for the instances considered for this work.https://www.mdpi.com/2076-3417/11/6/2749algorithm selectionmachine learningconstraint satisfactionheuristic
collection DOAJ
language English
format Article
sources DOAJ
author José C. Ortiz-Bayliss
Ivan Amaya
Jorge M. Cruz-Duarte
Andres E. Gutierrez-Rodriguez
Santiago E. Conant-Pablos
Hugo Terashima-Marín
spellingShingle José C. Ortiz-Bayliss
Ivan Amaya
Jorge M. Cruz-Duarte
Andres E. Gutierrez-Rodriguez
Santiago E. Conant-Pablos
Hugo Terashima-Marín
A General Framework Based on Machine Learning for Algorithm Selection in Constraint Satisfaction Problems
Applied Sciences
algorithm selection
machine learning
constraint satisfaction
heuristic
author_facet José C. Ortiz-Bayliss
Ivan Amaya
Jorge M. Cruz-Duarte
Andres E. Gutierrez-Rodriguez
Santiago E. Conant-Pablos
Hugo Terashima-Marín
author_sort José C. Ortiz-Bayliss
title A General Framework Based on Machine Learning for Algorithm Selection in Constraint Satisfaction Problems
title_short A General Framework Based on Machine Learning for Algorithm Selection in Constraint Satisfaction Problems
title_full A General Framework Based on Machine Learning for Algorithm Selection in Constraint Satisfaction Problems
title_fullStr A General Framework Based on Machine Learning for Algorithm Selection in Constraint Satisfaction Problems
title_full_unstemmed A General Framework Based on Machine Learning for Algorithm Selection in Constraint Satisfaction Problems
title_sort general framework based on machine learning for algorithm selection in constraint satisfaction problems
publisher MDPI AG
series Applied Sciences
issn 2076-3417
publishDate 2021-03-01
description Many of the works conducted on algorithm selection strategies—methods that choose a suitable solving method for a particular problem—start from scratch since only a few investigations on reusable components of such methods are found in the literature. Additionally, researchers might unintentionally omit some implementation details when documenting the algorithm selection strategy. This makes it difficult for others to reproduce the behavior obtained by such an approach. To address these problems, we propose to rely on existing techniques from the Machine Learning realm to speed-up the generation of algorithm selection strategies while improving the modularity and reproducibility of the research. The proposed solution model is implemented on a domain-independent Machine Learning module that executes the core mechanism of the algorithm selection task. The algorithm selection strategies produced in this work are implemented and tested rapidly compared against the time it would take to build a similar approach from scratch. We produce four novel algorithm selectors based on Machine Learning for constraint satisfaction problems to verify our approach. Our data suggest that these algorithms outperform the best performing algorithm on a set of test instances. For example, the algorithm selectors Multiclass Neural Network (MNN) and Multiclass Logistic Regression (MLR), powered by a neural network and linear regression, respectively, reduced the search cost (in terms of consistency checks) of the best performing heuristic (KAPPA), on average, by 49% for the instances considered for this work.
topic algorithm selection
machine learning
constraint satisfaction
heuristic
url https://www.mdpi.com/2076-3417/11/6/2749
work_keys_str_mv AT josecortizbayliss ageneralframeworkbasedonmachinelearningforalgorithmselectioninconstraintsatisfactionproblems
AT ivanamaya ageneralframeworkbasedonmachinelearningforalgorithmselectioninconstraintsatisfactionproblems
AT jorgemcruzduarte ageneralframeworkbasedonmachinelearningforalgorithmselectioninconstraintsatisfactionproblems
AT andresegutierrezrodriguez ageneralframeworkbasedonmachinelearningforalgorithmselectioninconstraintsatisfactionproblems
AT santiagoeconantpablos ageneralframeworkbasedonmachinelearningforalgorithmselectioninconstraintsatisfactionproblems
AT hugoterashimamarin ageneralframeworkbasedonmachinelearningforalgorithmselectioninconstraintsatisfactionproblems
AT josecortizbayliss generalframeworkbasedonmachinelearningforalgorithmselectioninconstraintsatisfactionproblems
AT ivanamaya generalframeworkbasedonmachinelearningforalgorithmselectioninconstraintsatisfactionproblems
AT jorgemcruzduarte generalframeworkbasedonmachinelearningforalgorithmselectioninconstraintsatisfactionproblems
AT andresegutierrezrodriguez generalframeworkbasedonmachinelearningforalgorithmselectioninconstraintsatisfactionproblems
AT santiagoeconantpablos generalframeworkbasedonmachinelearningforalgorithmselectioninconstraintsatisfactionproblems
AT hugoterashimamarin generalframeworkbasedonmachinelearningforalgorithmselectioninconstraintsatisfactionproblems
_version_ 1724214689031782400