Number Sums is a numeric logic puzzle played on a matrix board. Each row and column features a clue value located in its margins. The goal is to select a subset of numbers from the grid such that the sum of the selected values in each row and column matches all the clues on the board exactly and simultaneously.
Below is an example board of size $8 \times 8$:
Can you select the correct numbers before checking the binary programming model?
The Number Sums game can be formulated directly as a binary linear optimization problem.
Keep following the series
How to cite
Cite this post
Martín-Campo, F. Javier (2026). Solving the Number Sums board using mathematical optimization. https://www.fjmartincampo.com/blog/2026/numbersums/
As a BibTeX entry:
@misc{martín-campo2026solving-the-number-sums-board-using-mathematical-optimization,
title = {Solving the Number Sums board using mathematical optimization},
author = {Martín-Campo, F. Javier},
year = {2026},
month = {jul},
url = {https://www.fjmartincampo.com/blog/2026/numbersums/}
}
This post is published under a CC BY-NC-SA 4.0 license.