Skip to main content
QUICK REVIEW

[Paper Review] XCSP3: An Integrated Format for Benchmarking Combinatorial Constrained Problems

Frédéric Boussemart, Christophe Lecoutre|arXiv (Cornell University)|Nov 10, 2016
Constraint Satisfaction and OptimizationComputer Science16 citations
TL;DR

XCSP3 is a standardized, extensible XML-based format designed to unify and simplify the representation of combinatorial constrained problems across diverse constraint programming (CP) applications. It supports multi-objective optimization, diverse variable types, complex constraints via lifting and abstraction, and integrates modeling, benchmarking, and tool interoperability—enabling consistent algorithm comparison in annual CP competitions.

ABSTRACT

We propose a major revision of the format XCSP 2.1, called XCSP3, to build integrated representations of combinatorial constrained problems. This new format is able to deal with mono/multi optimization, many types of variables, cost functions, reification, views, annotations, variable quantification, distributed, probabilistic and qualitative reasoning. The new format is made compact, highly readable, and rather easy to parse. Interestingly, it captures the structure of the problem models, through the possibilities of declaring arrays of variables, and identifying syntactic and semantic groups of constraints. The number of constraints is kept under control by introducing a limited set of basic constraint forms, and producing almost automatically some of their variations through lifting, restriction, sliding, logical combination and relaxation mechanisms. As a result, XCSP3 encompasses practically all constraints that can be found in major constraint solvers developed by the CP community. A website, which is developed conjointly with the format, contains many models and series of instances. The user can make sophisticated queries for selecting instances from very precise criteria. The objective of XCSP3 is to ease the effort required to test and compare different algorithms by providing a common test-bed of combinatorial constrained instances.

Motivation & Objective

  • To provide a single, standardized format for representing combinatorial constrained problems across the CP community.
  • To unify modeling, benchmarking, and tool interoperability by integrating variables, constraints, objectives, and annotations in one format.
  • To support a broad range of constraint types—including global, soft, and meta-constraints—via abstraction and lifting mechanisms.
  • To enable consistent evaluation of CP solvers through standardized problem instances used in annual competitions.
  • To facilitate the development of tools, parsers, and modeling APIs by defining a clean, extensible, and human- and machine-readable syntax.

Proposed method

  • Define a hierarchical XML schema that supports arrays of variables, nested constraints, and semantic grouping via named scopes.
  • Introduce core constraint forms (e.g., intension, extension, regular, cumulative) with lifting mechanisms (e.g., restriction, sliding, relaxation) to generate variants automatically.
  • Support multiple variable types: integer, symbolic, real, set, graph, stochastic, qualitative, and zero/one, with array and mixed-domain handling.
  • Integrate objectives via functional and specialized forms, including multi-objective optimization and cost functions with variable coefficients.
  • Enable reification, views, and annotations using universal attributes (e.g., 'note', 'class') for extensibility and tool integration.
  • Define XCSP3-core as a minimal, stable subset of the format for interoperability and tool development, with formal semantics and versioned specifications.

Experimental results

Research questions

  • RQ1How can a single, extensible format unify the representation of diverse combinatorial constrained problems across the CP community?
  • RQ2What design principles enable a format to support both human readability and efficient machine parsing across complex constraint types?
  • RQ3How can lifting and abstraction mechanisms reduce redundancy while preserving expressiveness in constraint modeling?
  • RQ4To what extent can a standardized format enable consistent benchmarking and fair comparison of CP solvers in annual competitions?
  • RQ5How can the format evolve to support emerging needs such as probabilistic reasoning, qualitative constraints, and multi-objective optimization?

Key findings

  • XCSP3 successfully serves as the de facto standard format for the annual International Constraint Programming (CP) competitions since 2015, used in 2022, 2023, and 2024 editions.
  • The format supports a comprehensive range of constraint types—including global constraints (e.g., allDifferent, cumulative), soft constraints, and meta-constraints (e.g., ifThen, slide)—with formal semantics and extensibility.
  • XCSP3-core, a stable subset of the format, includes 20 core constraints (e.g., circuit, knapsack, binPacking) and is used to ensure tool interoperability and consistency.
  • The integration of solution representation and the instantiation constraint enables standardized output format for solver results.
  • The format has evolved through versioned specifications (up to 3.2 as of 2024), incorporating feedback and enhancements such as variable coefficients in objectives and constraints, and support for compact integer sequences.
  • The adoption of a dual licensing model (CC BY-SA 4.0 for specs, MIT for tools) has enabled widespread tool development and ecosystem growth, including modeling APIs and parsers.

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.