TLDR: The paper introduces VAC-lin, an adaptation of Virtual Arc Consistency (VAC) for Cost Function Networks (CFNs) that incorporate linear constraints. By using reduced cost filtering, VAC-lin efficiently identifies inconsistent values, significantly improving the quality of lower bounds compared to previous methods. This enhancement leads to faster solving times and better performance on various combinatorial optimization benchmarks, particularly for problems with many linear constraints.
Solving complex optimization problems, from scheduling tasks to designing proteins, often involves navigating a vast landscape of possibilities to find the best solution. In the world of computer science, a powerful framework for tackling these challenges is called Constraint Programming (CP). At its heart, CP deals with discrete minimization problems, where the goal is to find an assignment of values to variables that minimizes a total cost, while respecting certain rules or constraints.
One specific approach within CP is the use of Cost Function Networks (CFNs). Imagine a network where each connection or node has an associated ‘cost function’ – a rule that assigns a cost to different combinations of values. The ultimate goal in a CFN, often referred to as the Weighted Constraint Satisfaction Problem (WCSP), is to find a complete assignment of values to all variables that results in the lowest possible total cost across the entire network.
Finding these optimal solutions typically relies on a technique called ‘branch-and-bound,’ which systematically explores possibilities while using ‘lower bounds’ to prune away branches that cannot lead to a better solution. The stronger (higher) these lower bounds are, the more efficiently the problem can be solved. This is where Soft Arc Consistency (SAC) algorithms come into play. These algorithms work by examining small parts of the network, not only removing inconsistent values but also increasing a global lower bound, helping the search process.
Among SAC algorithms, Virtual Arc Consistency (VAC) stands out for its ability to derive strong lower bounds. VAC operates by creating a simplified version of the problem, called Bool(P), where only zero-cost options are allowed. If this simplified problem turns out to be impossible to satisfy, VAC can then deduce a non-zero lower bound for the original, more complex problem. While powerful, enforcing VAC can be computationally expensive, especially when dealing with certain types of constraints.
Recently, the expressiveness of CFNs has been significantly boosted by the introduction of ‘linear constraints.’ These are mathematical inequalities, like ‘the sum of certain weighted variables must be greater than or equal to a specific value,’ which are common in many real-world optimization scenarios. However, integrating these linear constraints effectively with existing SAC algorithms, particularly VAC, posed a challenge. Traditional methods for linear constraints often communicate only through individual variable costs, leading to weaker lower bounds and a dependence on the order in which constraints are processed. Furthermore, applying VAC directly to linear constraints would require solving problems similar to the NP-hard Knapsack problem, making it impractical.
This is where the research paper, “Virtual Arc Consistency for Linear Constraints in Cost Function Networks” by Pierre Montalbano, Simon de Givry, and George Katsirelos, makes a significant contribution. The authors introduce a novel algorithm called VAC-lin, which adapts the powerful VAC framework to efficiently handle linear constraints. Instead of attempting to solve the full, complex Knapsack-like problem for every value, VAC-lin leverages a technique called ‘reduced cost filtering,’ derived from linear programming. This allows it to identify and remove inconsistent values in the simplified Bool(P) problem in a much more efficient, albeit incomplete, manner.
The core idea behind VAC-lin is to enable better communication between linear constraints and other parts of the CFN, leading to stronger lower bounds. By detecting sequences of cost moves that involve multiple propagations, VAC-lin can uncover more effective reparameterizations of the problem, ultimately increasing the global lower bound. This improved bound means the branch-and-bound search can prune more branches earlier, potentially leading to faster solution times.
The researchers implemented VAC-lin in toulbar2, an open-source WCSP solver, and conducted extensive experiments across various benchmarks, including MIPLIB 2017, Computational Protein Design (CPD), Pseudo-Boolean 2007, XCSP 2022/2023 competitions, and QAPLIB. They compared VAC-lin against a base version of toulbar2 (no-VAC), the original VAC (which ignores linear constraints), and commercial solvers like IBM cplex and the Java-based CP solver choco.
The results demonstrated that VAC-lin consistently improved the initial lower bounds compared to the original VAC and no-VAC configurations, particularly on benchmarks with a high number of linear constraints like MIPLIB and PB’2007. While cplex often provided the strongest bounds overall, VAC-lin was competitive and, in some cases, even outperformed cplex in terms of the number of solved instances or solving speed. For example, on the QAPLIB benchmark, VAC-lin solved the same set of instances twice as fast as the other toulbar2 variants and solved one additional instance that cplex could not finish within the time limit. On PB’2007, VAC-lin solved as many instances as cplex, significantly outperforming the other toulbar2 versions.
Also Read:
- Accelerating Team Formation and Routing with AI-Powered Optimization
- Teaching Neural Networks to Solve Knapsack: A Two-Phase Algorithmic Approach
In conclusion, VAC-lin represents a significant step forward in solving complex combinatorial optimization problems involving linear constraints within Cost Function Networks. By intelligently adapting Virtual Arc Consistency with reduced cost filtering, it provides stronger lower bounds, leading to more efficient problem-solving. While there’s always room for further refinement, especially in integrating stronger consistency algorithms during the search, this work lays a solid foundation for future advancements in handling global constraints in CFNs.


