PivotPythonBase

This class defines an interface all the Python pivot rules must implement. It consists of a method pivotColumn() which must be implemented and isPivotAcceptable() whose implementation is optional.

class cylp.py.pivots.PivotPythonBase.PivotPythonBase[source]
isPivotAcceptable()[source]

This is run just before the actual pivoting happens. Return False if the pivot is not acceptable for your method.

pivotColumn()[source]

Every subclass of PivotPythonBase, i.e. every pivot rule, must implement this method.

Return the index of the entering variable, an integer.

updateReducedCosts(updates, spareRow1, spareRow2, spareCol1, spareCol2)[source]

Update the reduced costs as its done in CLP’s Dantzig rule.