Learning Variable Ordering Heuristics for Solving Constraint Satisfaction Problems

12/23/2019
by   Wen Song, et al.
20

Backtracking search algorithms are often used to solve the Constraint Satisfaction Problem (CSP). The efficiency of backtracking search depends greatly on the variable ordering heuristics. Currently, the most commonly used heuristics are hand-crafted based on expert knowledge. In this paper, we propose a deep reinforcement learning based approach to automatically discover new variable ordering heuristics that are better adapted for a given class of CSP instances. We show that directly optimizing the search cost is hard for bootstrapping, and propose to optimize the expected cost of reaching a leaf node in the search tree. To capture the complex relations among the variables and constraints, we design a representation scheme based on Graph Neural Network that can process CSP instances with different sizes and constraint arities. Experimental results on random CSP instances show that the learned policies outperform classical hand-crafted heuristics in terms of minimizing the search tree size, and can effectively generalize to instances that are larger than those used in training.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
12/25/2013

A New Approach to Constraint Weight Learning for Variable Ordering in CSPs

A Constraint Satisfaction Problem (CSP) is a framework used for modeling...
research
12/12/2019

Learning Improvement Heuristics for Solving the Travelling Salesman Problem

Recent studies in using deep learning to solve the Travelling Salesman P...
research
06/10/2023

Finding Hamiltonian cycles with graph neural networks

We train a small message-passing graph neural network to predict Hamilto...
research
09/02/2010

Experimental Evaluation of Branching Schemes for the CSP

The search strategy of a CP solver is determined by the variable and val...
research
08/22/2022

One Model, Any CSP: Graph Neural Networks as Fast Global Search Heuristics for Constraint Satisfaction

We propose a universal Graph Neural Network architecture which can be tr...
research
06/01/2011

Planning Graph as a (Dynamic) CSP: Exploiting EBL, DDB and other CSP Search Techniques in Graphplan

This paper reviews the connections between Graphplan's planning-graph an...
research
09/26/2019

Higher-Dimensional Potential Heuristics for Optimal Classical Planning

Potential heuristics for state-space search are defined as weighted sums...

Please sign up or login with your details

Forgot password? Click here to reset