sasoptpy.Constraint.set_block

Constraint.set_block(self, block_number)[source]

Sets the decomposition block number for a constraint

Parameters
block_numberint

Block number of the constraint

Examples

>>> c1 = m.add_constraints((x + 2 * y[i] <= 5 for i in NODES),
                           name='c1')
>>> for i in NODES:
      c1[i].set_block(i)