Skip to content

Commit

Permalink
Fix #189
Browse files Browse the repository at this point in the history
  • Loading branch information
tkralphs committed Nov 1, 2023
1 parent a9284bf commit 950a29e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions cylp/py/pivots/PositiveEdgePivot.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import random
import numpy as np
from cylp.cy import CyCoinIndexedVector
from cylp.cy.CyClpSimplex import cydot
#from cylp.cy.CyClpSimplex import cydot
from .PivotPythonBase import PivotPythonBase


Expand Down Expand Up @@ -92,7 +92,7 @@ def isCompatible(self, varInd):
s = self.clpModel
s.getACol(varInd, self.aColumn)

return abs(cydot(self.aColumn, self.w)) < self.EPSILON
return abs(cylp.cy.CyClpSimplex.cydot(self.aColumn, self.w)) < self.EPSILON

def checkVar(self, i):
return self.isCompatible(i)
Expand Down
2 changes: 1 addition & 1 deletion cylp/py/pivots/PositiveEdgeWolfePivot.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from cylp.cy import CyCoinIndexedVector
import random
from math import floor
from cylp.cy.CyClpSimplex import cydot
#from cylp.cy.CyClpSimplex import cydot
from cylp.py.pivots import PositiveEdgePivot


Expand Down
4 changes: 2 additions & 2 deletions cylp/py/pivots/WolfePivotPE.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import random
import numpy as np
from cylp.cy import CyCoinIndexedVector
from cylp.cy.CyClpSimplex import cydot
#from cylp.cy.CyClpSimplex import cydot
from PivotPythonBase import PivotPythonBase


Expand Down Expand Up @@ -82,7 +82,7 @@ def isCompatible(self, varInd):
s = self.clpModel
s.getACol(varInd, self.aColumn)

return abs(cydot(self.aColumn, self.w)) < self.EPSILON
return abs(cylp.cy.CyClpSImplex.cydot(self.aColumn, self.w)) < self.EPSILON

# End of Positive-Edge-related attributes

Expand Down

0 comments on commit 950a29e

Please sign in to comment.