Sudoku’s additional classes

ProxOperators

class proxtoolbox.Problems.sudoku.ProjGiven(config)[source]

Bases: proxtoolbox.ProxOperators.proxoperators.ProxOperator

Projection onto the given entries in a Sudoku problem

Initialization method

Parameters:
config : dict - Dictionary containing the problem configuration. It must have the key ‘sudoku’ mapping to the input Sudoku.
__init__(config)[source]

Initialization method

Parameters:
config : dict - Dictionary containing the problem configuration. It must have the key ‘sudoku’ mapping to the input Sudoku.
work(u)[source]

Applies the prox operator to the input data

Parameters:
u : array_like - Input data for the operator
Returns:
array_like - Result of the operation
class proxtoolbox.Problems.sudoku.ProjSquare(config=None)[source]

Bases: proxtoolbox.ProxOperators.proxoperators.ProxOperator

Projection onto the box constraints in a Sudoku problem

Initialization

Parameters:
config : dict, optional - Not used here
__init__(config=None)[source]

Initialization

Parameters:
config : dict, optional - Not used here
work(u)[source]

Applies the prox operator to the input data

Parameters:
u : array_like - Input data for the operator
Returns:
array_like - Result of the operation
class proxtoolbox.Problems.sudoku.ProjColumn(config)[source]

Bases: proxtoolbox.ProxOperators.proxoperators.ProxOperator

Projection onto the column constraints in a Sudoku problem

Initialization

Parameters:
config : dict, optional - Not used here
__init__(config)[source]

Initialization

Parameters:
config : dict, optional - Not used here
work(u)[source]

Applies the prox operator to the input data

Parameters:
u : array_like - Input data for the operator
Returns:
array_like - Result of the operation
class proxtoolbox.Problems.sudoku.ProjRow(config)[source]

Bases: proxtoolbox.ProxOperators.proxoperators.ProxOperator

Projection onto the row constraints in a Sudoku problem

Initialization

Parameters:
config : dict, optional - Not used here
__init__(config)[source]

Initialization

Parameters:
config : dict, optional - Not used here
work(u)[source]

Applies the prox operator to the input data

Parameters:
u : array_like - Input data for the operator
Returns:
array_like - Result of the operation