Skip to content

Commit

Permalink
Update lp.py
Browse files Browse the repository at this point in the history
  • Loading branch information
antoine-jacquet committed Feb 20, 2025
1 parent f3af06f commit 871a5e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mec/lp.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def primal_solution(self, verbose=0):
def determine_entering(self):
self.nonbasic.sort(key=str) # Bland's rule
for entering_var in self.nonbasic:
if diff(self.base[Symbol('obj')],entering_var) > 0 :
if self.base[Symbol('obj')].coeff(entering_var) > 0:
return entering_var
return None # If no entering variable found, None returned

Expand Down

0 comments on commit 871a5e1

Please sign in to comment.