Detecting and handling reflection symmetries in mixed-integer (nonlinear) programming and beyond

Christopher Hojny

Abstract

Symmetries in mixed-integer (nonlinear) programs (MINLP), if not handled appropriately, are known to negatively impact the performance of (spatial) branch-and-bound algorithms. Usually one thus tries to remove symmetries from the problem formulation or is relying on a solver that automatically detects and handles symmetries. While modelers of a problem can handle various kinds of symmetries, automatic symmetry detection and handling for MINLP is mostly restricted to permutation symmetries. This article therefore develops techniques such that also black-box solvers can automatically detect and handle a broader class of symmetries. Inspired from geometric packing problems like the kissing number problem, we focus on reflection symmetries of MINLPs. We develop a generic and easily applicable framework to automatically detect reflection symmetries of MINLPs and more general mathematical programs. To handle this broader class of symmetries, we discuss generalizations of state-of-the-art methods for permutation symmetries, and develop dedicated symmetry handling methods for special reflection groups. Our symmetry detection framework has been implemented in the open-source solver SCIP and we provide a comprehensive discussion of the implementation. The article concludes with a detailed numerical evaluation of our symmetry handling methods when solving MINLPs.

Introduction: The Challenge of Symmetry in Optimization

In mathematical optimization, symmetry is often a curse. When a problem has many equivalent solutions—such as swapping the positions of two identical disks in a packing problem—a standard branch-and-bound algorithm wastes significant computational time exploring "symmetric" branches of the search tree that lead to identical results.

While modern solvers are proficient at detecting permutation symmetries (reordering variables), they frequently struggle with reflection symmetries, where a variable is flipped across a center point. For instance, in a disk-packing problem within a box, the entire arrangement can be reflected across the box's axes. Historically, handling these reflections required manual, problem-specific reformulations. This research introduces a framework to make reflection symmetry detection "automatic" and "black-box," allowing solvers to identify these patterns without user intervention.

Illustration of reflection symmetry in a geometric packing problem, where equivalent solutions can be found by reflecting across an axis.

Methodology: Symmetry Detection Graphs and Gadgets

The core innovation of this work is an abstract framework based on Symmetry Detection Graphs (SDGs). This framework extends traditional detection in several key ways:

  1. Signed Permutations: Instead of simple variable mapping ($i \to j$), the framework utilizes signed permutations to allow mapping a variable to its negative ($i \to -j$), representing a reflection.
  2. Relative Domains: To detect symmetries even when variables aren't centered at zero, the paper defines reflections relative to the center of a variable's bounds.
  3. The "Gadget" Approach: Nonlinear expressions can be difficult to represent in graphs. The author introduces "gadgets"—specialized sub-graph structures—for common mathematical patterns like sums, squared differences ($(x_i - x_j)^2$), and bilinear products ($x_i \cdot x_j$). These gadgets enable the solver to perceive underlying symmetries in complex nonlinear constraints.
A Symmetry Detection Graph (SDG) utilizing gadgets to represent signed permutations and variable reflections ($v$ and $\bar{v}$).

The framework is implemented within the SCIP solver. It constructs a global SDG for the entire problem and leverages external graph automorphism tools, such as bliss or nauty, to identify symmetries.

Experimental Evaluation

The framework was evaluated on both structured instances (e.g., Geometric Packing, Kissing Number Problem, Energy Minimization) and general benchmarks (MIPLIB 2017, MINLPLIB, SAT 2002).

Key results include:

  • Performance Gains: For 2D geometric problems like the "kissing number" problem, automatic symmetry handling was 52% faster than existing state-of-the-art methods.
  • Robustness: Reflection symmetries were successfully detected in nearly all structured test cases.
  • Benchmark Impact: On the SAT 2002 benchmark, the framework identified reflection symmetries in 282 out of 819 instances, reducing mean running time by 17.8% compared to handling permutation symmetries alone.

Conclusion and Future Directions

While the framework significantly improves solver performance, it faces challenges with graph complexity in very large problems. Additionally, symmetry breaking can sometimes interfere with a solver's internal heuristics for finding feasible solutions. Future research will focus on optimizing graph isomorphism algorithms for SDGs and mitigating heuristic interference to further enhance the efficiency of automatic symmetry handling in MINLP.

Summary updated

BibTeX
@inproceedings{hojny2025detecting,
  author = {Christopher Hojny},
  title = {{Detecting and handling reflection symmetries in mixed-integer (nonlinear) programming and beyond}},
  booktitle = {Mathematical},
  year = {2025},
  doi = {10.1007/s12532-025-00289-9},
}
Figure