Tangram puzzles are snapped to a grid, solved as one mixed-integer program, then nudged into exact positions. On 50 benchmark puzzles this solved 49 on every seed. A genetic algorithm solved none and simulated annealing solved 3.
| Solver | Successful Runs Distribution | Average Runtime Distribution (Puzzles) | |||||||
| 0 / 3 | 1 / 3 | 2 / 3 | 3 / 3 | m | 5–10m | 10–15m | 15–30m | m | |
| SolverGA | 38 / 50 | 10 / 50 | 2 / 50 | 0 / 50 | 0 | 0 | 0 | 29 | 21 |
| SolverSA | 44 / 50 | 3 / 50 | 0 / 50 | 3 / 50 | 14 | 4 | 2 | 2 | 28 |
| SolverMISOCP | 0 / 50 | 1 / 50* | 0 / 50 | 49 / 50 | 40 | 4 | 3 | 2 | 1** |
Full results and script outputs are available in Daniel and Kugler (2026).
*Corresponds to shape35, the sole MI-SOCP timeout instance (affecting 2 of its 3 seeds); however, intermediate solutions resulting from this timeout or a relaxed were robustly and successfully refined post-FTO to yield valid tiling solutions (see __RESULTS_SHAPE_35 in Daniel and Kugler (2026)).
**Corresponds to shape35 which timed out in 2 of its 3 seeds.
Going deeper
Overview of the MI-SOCP pipeline (lattice mapping, optimization, and FTO). The FTO exclusively optimizes translations to compensate for the discrete grid, keeping flips and rotations fixed.

Picture a child's Tangram: seven flat pieces that must exactly fill a silhouette. People manage it by eye, but a computer sliding pieces around freely faces a near-endless number of positions.
The authors put graph paper under the silhouette. For each piece they write down every way it can sit on the paper's corners, turned in eighth-turns, and how much of each square it would cover. A solver then chooses one card per piece so that the covered squares match the silhouette as closely as possible.
Graph-paper positions are slightly off, so each piece is then nudged, first by snapping its corners to the silhouette's corners, then by small searches. On 50 puzzles this filled nearly all of them, while two common trial-and-error methods mostly failed.
The abstract, word for word, with the six densest phrases unpacked.
Two-dimensional (2D) polygonal tiling presents challenging optimization tasks due to the combinatorial explosion of valid arrangements1. We introduce a mixed-integer second-order cone programming (MI-SOCP) framework that maps the continuous search space to a discrete lattice grid2, producing initial approximate solutions with grid-restricted translations. A final Fine-Tuning Optimization (FTO)3 stage then refines these discrete translations into continuous coordinates. To ensure computational tractability over large variable spaces, an efficient geometric preprocessing pipeline prunes symmetric and redundant topological states4 prior to optimization. Experiments on benchmark Tangram puzzles5 demonstrate that this approach efficiently yields high-quality approximate solutions, which are subsequently refined into continuous-coordinate configurations that satisfy a strict numerical geometric criterion. Our method can be generalized to 3D and other 2D tiling problems6, with potential applications to DNA computing, to packing structures for advanced manufacturing and to spatial optimization.
Two lines of work lead here: solving Tangrams by computer, and integer programming for packing. Each stop says what this paper uses it for.
Read four parts of it, in this order.
Skip the appendix table unless you want per-seed numbers.
If the win is narrower than it looks, these places show why.
While Equation (4) provides a general framework for handling geometric conflicts in imperfect covers, our baseline and presented results rely solely on the residual error metric coupled with the FTO stage, i.e., non-overlap constraints were disabled in our framework. Full explicit non-overlap constraints are reserved as a modular extension for future work, and can easily be enabled through a dedicated configuration flag in our simulation code.
Experimental Setup: Experiments were run on an Intel i7-8565U (1.80 GHz, 16 GB RAM) using MATLAB R2023b. Solvers were configured as follows:
• MI-SOCP (Proposed): Gurobi v12.0.3 Gurobi Optimization, LLC (2024) with MIPFocus=1 to prioritize feasible solutions. • GA Baseline: MATLAB ga() with scattered crossover and custom group-constrained discrete mutation. • SA Baseline: MATLAB simulannealbnd() with exponential cooling and a bounds-adjusting fitness function. • Translation FTO: Vertex matching followed by MATLAB patternsearch(), see details in Section 3.6.
where CATH is the required coverage threshold. Given a total tile area of 784, this threshold is set to CATH=783, with an error tolerance of TolTH=10-1. A demonstrative example of the FTO performance is shown in Figure 8. Note that reported times may marginally exceed the nominal 30-minute limit due to solver termination and logging overhead.
Nothing on this page was recomputed. Every claim points to the paper so you can check it.
More latest news
Read all