PySCIPOpt
Python Interface to the SCIP Optimization Suite
sudoku.py File Reference

Simple example of modeling a Sudoku as a binary program. More...

Go to the source code of this file.

Variables

list init
 
 m = Model()
 
dictionary x = {}
 
string name = str(i)+','
 
 vtype
 
dictionary sol = {}
 
string out = ''
 

Detailed Description

Simple example of modeling a Sudoku as a binary program.

Definition in file sudoku.py.

Variable Documentation

list init
Initial value:
1 = [5, 3, 0, 0, 7, 0, 0, 0, 0,
2  6, 0, 0, 1, 9, 5, 0, 0, 0,
3  0, 9, 8, 0, 0, 0, 0, 6, 0,
4  8, 0, 0, 0, 6, 0, 0, 0, 3,
5  4, 0, 0, 8, 0, 3, 0, 0, 1,
6  7, 0, 0, 0, 2, 0, 0, 0, 6,
7  0, 6, 0, 0, 0, 0, 2, 8, 0,
8  0, 0, 0, 4, 1, 9, 0, 0, 5,
9  0, 0, 0, 0, 8, 0, 0, 7, 9]

Definition at line 9 of file sudoku.py.