Online learning of variable ordering heuristics for constraint optimisation problems

Journal Article (2025)
Author(s)

Floris Doolaard (Student TU Delft)

Neil Yorke-Smith (TU Delft - Electrical Engineering, Mathematics and Computer Science)

Research Group
Algorithmics
DOI related publication
https://doi.org/10.1007/s10472-022-09816-z Final published version
More Info
expand_more
Publication Year
2025
Language
English
Research Group
Algorithmics
Journal title
Annals of Mathematics and Artificial Intelligence
Issue number
3
Volume number
93
Pages (from-to)
359-388
Downloads counter
10
Reuse Rights

Other than for strictly personal use, it is not permitted to download, forward or distribute the text or part of it, without the consent of the author(s) and/or copyright holder(s), unless the work is under an open content license such as Creative Commons.

Abstract

Solvers for constraint optimisation problems exploit variable and value ordering heuristics. Numerous expert-designed heuristics exist, while recent research learns novel, customised heuristics from past problem instances. This article addresses unseen problems for which no historical data is available. We propose one-shot learning of customised, problem instance-specific heuristics. To do so, we introduce the concept of deep heuristics, a data-driven approach to learn extended versions of a given variable ordering heuristic online. First, for a problem instance, an initial online probing phase collects data, from which a deep heuristic function is learned. The learned heuristics can look ahead arbitrarily-many levels in the search tree instead of a ‘shallow’ localised lookahead of classical heuristics. A restart-based search strategy allows for multiple learned models to be acquired and exploited in the solver’s optimisation. We demonstrate deep variable ordering heuristics based on the smallest, anti first-fail, and maximum regret heuristics. Results on instances from the MiniZinc benchmark suite show that deep heuristics solve 20% more problem instances while improving on overall runtime for the Open Stacks and Evilshop benchmark problems.