LIFOPivot
¶
-
class
cylp.py.pivots.LIFOPivot.
LIFOPivot
(clpModel)[source]¶ Last-In-First-Out pivot rule implementation.
Usage
>>> from cylp.cy import CyClpSimplex >>> from cylp.py.pivots import LIFOPivot >>> from cylp.py.pivots.LIFOPivot import getMpsExample >>> # Get the path to a sample mps file >>> f = getMpsExample() >>> s = CyClpSimplex() >>> s.readMps(f) # Returns 0 if OK 0 >>> pivot = LIFOPivot(s) >>> s.setPivotMethod(pivot) >>> s.primal() 'optimal' >>> round(s.objectiveValue, 5) 2520.57174