Skip to content

Commit

Permalink
v__0.199
Browse files Browse the repository at this point in the history
  • Loading branch information
antoine-jacquet committed Jan 28, 2025
1 parent 845dda7 commit f743c3e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion mec/lp.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,10 @@ def solution(self): # returns the primal variables x_j and dual variables y_i
else:
x_j[self.k_b[b]-self.nbi] = self.tableau[self.i_b[b],-1]
y_i = - self.tableau[0,:self.nbi] # the dual variables are minus the coefficients in the primal objective
return x_j, y_i, x_j @ self.c_j
if self.c_j is not None:
return x_j, y_i, x_j @ self.c_j
else:
return x_j, y_i, None

##########################################
######### Interior Point Methods #########
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name="mec",
version="0.198",
version="0.199",
authors=["Alfred Galichon"],
author_email="[email protected]",
licence="",
Expand Down

0 comments on commit f743c3e

Please sign in to comment.