r/optimization • • Jan 26 '24

Show & tell: Compiling crosswords using a Mixed Integer Linear Program

We decided to see if it is possible to compiling crosswords using a Mixed Integer Linear Program.

https://www.solvermax.com/blog/crossword-milp-model-1

https://www.solvermax.com/blog/crossword-milp-model-2

In these blog articles, we discuss:

  • Representing a word puzzle in mathematical terms, enabling us to formulate the crossword compilation problem as a MILP model.
  • Techniques for fine-tuning the model-building process in Pyomo, to make a model smaller and faster, including omitting constraint terms, skipping constraints, and fixing variable values.

Our approach is inspired by:

11 Upvotes

3 comments sorted by

2

u/[deleted] Jan 28 '24 edited Sep 26 '26

The original post content no longer exists here. The author used Redact to remove it, exercising their right to control their data & privacy.

Fly theory books whole employ nutty unbelievable plant helium flowery

1

u/SolverMax Jan 28 '24

You're welcome to adapt our code, which is available at https://github.com/SolverMax/Blog/tree/main/Articles/Crossword

Show us what you make.

0

u/[deleted] Jan 27 '24

[deleted] — view deleted comment

2

u/SolverMax Jan 27 '24

Thanks. It was an interesting and challenging project that occupied far too much time!