Skip to main content
QUICK REVIEW

[Paper Review] A New Approach to Constraint Weight Learning for Variable Ordering in CSPs

Muhammad Rezaul Karim|arXiv (Cornell University)|Dec 25, 2013
Constraint Satisfaction and OptimizationComputer Science22 references5 citations
TL;DR

This paper proposes a competitive coevolutionary genetic algorithm (CoEvoGA) to learn constraint weights for variable ordering in constraint satisfaction problems (CSPs), improving search efficiency by identifying global bottlenecks. The method evolves constraints and candidate solutions together, outperforming existing approaches on quasi-random and forced satisfiable Model RB instances, particularly in reducing search nodes and maintaining stability.

ABSTRACT

A Constraint Satisfaction Problem (CSP) is a framework used for modeling and solving constrained problems. Tree-search algorithms like backtracking try to construct a solution to a CSP by selecting the variables of the problem one after another. The order in which these algorithm select the variables potentially have significant impact on the search performance. Various heuristics have been proposed for choosing good variable ordering. Many powerful variable ordering heuristics weigh the constraints first and then utilize the weights for selecting good order of the variables. Constraint weighting are basically employed to identify global bottlenecks in a CSP. In this paper, we propose a new approach for learning weights for the constraints using competitive coevolutionary Genetic Algorithm (GA). Weights learned by the coevolutionary GA later help to make better choices for the first few variables in a search. In the competitive coevolutionary GA, constraints and candidate solutions for a CSP evolve together through an inverse fitness interaction process. We have conducted experiments on several random, quasi-random and patterned instances to measure the efficiency of the proposed approach. The results and analysis show that the proposed approach is good at learning weights to distinguish the hard constraints for quasi-random instances and forced satisfiable random instances generated with the Model RB. For other type of instances, RNDI still seems to be the best approach as our experiments show.

Motivation & Objective

  • To address the challenge of selecting effective variable ordering heuristics in CSPs, which significantly impacts search efficiency.
  • To improve the identification of hard constraints and global bottlenecks in CSPs through automated weight learning.
  • To develop a coevolutionary genetic algorithm that jointly evolves constraints and solutions to learn meaningful constraint weights.
  • To evaluate the proposed method against existing variable ordering approaches across diverse CSP instance types.
  • To explore the scalability and parameter sensitivity of the coevolutionary weight learning process.

Proposed method

  • A competitive coevolutionary genetic algorithm (CoEvoGA) is used, where two populations—constraints and candidate solutions—coevolve through inverse fitness interactions.
  • Fitness is determined by the interaction between constraint weights and solution quality, with constraints evolving to become harder to satisfy.
  • Constraint weights are learned through iterative evolution, with the goal of identifying the most constraining constraints in the problem.
  • The learned weights guide variable ordering in a backtracking search with arc consistency (MAC), prioritizing variables linked to high-weight constraints.
  • Experiments use a fixed population size and standard GA operators (crossover, mutation), with parameter tuning for generations and restarts.
  • Performance is evaluated using CPU time (t) and number of visited nodes (n) across 30 instances from random, quasi-random, and patterned categories.

Experimental results

Research questions

  • RQ1Can a coevolutionary GA effectively learn constraint weights that identify global bottlenecks in CSPs?
  • RQ2How does the proposed CoEvoGA/MAC approach compare to RNDI and HC/MAC in terms of search efficiency and stability?
  • RQ3On which types of CSP instances—random, quasi-random, patterned, or Model RB—does the CoEvoGA/MAC method show superior performance?
  • RQ4How do parameter settings such as generations and restarts affect the weight learning time and overall search performance?
  • RQ5Can fitness evaluation in the coevolutionary GA be parallelized to reduce learning time, unlike RNDI’s sequential restarts?

Key findings

  • The CoEvoGA/MAC approach significantly reduces the number of visited nodes (n) on quasi-random and forced satisfiable Model RB instances, e.g., 55,972 nodes with RNDI vs. 67,686 with CoEvoGA on bqwh-18-141-47.
  • On the bqwh-18-141-50 instance, CoEvoGA/MAC visited 27,964 nodes compared to RNDI’s 9,350, though with higher CPU time (110.2s vs. 49.88s).
  • For patterned instances like qcp-15-120-2, RNDI outperformed CoEvoGA/MAC in both time (284.53s vs. 374.36s) and nodes (28,695 vs. 46,121).
  • Statistical tests showed significant differences between CoEvoGA/MAC and RNDI on several instances, including p-values of 0.340(*) and 0.224(*) on bqwh-18-141-50.
  • HC/MAC showed instability, exceeding time limits on some patterned instances, while CoEvoGA/MAC maintained consistent performance across all instance types.
  • The preprocessing time for CoEvoGA can be reduced via parallelization of fitness evaluation, unlike RNDI’s inherently sequential restarts.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.