Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 1.02 KB

README.md

File metadata and controls

18 lines (13 loc) · 1.02 KB

sudoku-ampl

Python AMPL

Tired of solving sudoku puzzles by boring old recursion? Want to titillate your grey matter? Try this!

Getting started

We are going to try solving the world's toughest (allegedly) sudoku puzzle, and compare two approaches.

  1. Install AMPL and the solver of your choice - CPLEX, Cbc, etc.
  2. Solve hardest.dat with the provided AMPL model main.mod
  3. Solve sudoku.py with python sudoku.py
  4. Compare execution time of both approaches
  5. Revel in the power of mathematical modelling as opposed to boring old Python

Notes