Skip to content

Commit

Permalink
v__0.1.0.11
Browse files Browse the repository at this point in the history
  • Loading branch information
antoine-jacquet committed Jan 9, 2024
1 parent 7c50a19 commit 9e305b9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions mec/gt.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def solve(self, verbose=0):
p_i = V_2 * xstar
q_j = V_2 * ystar
if verbose > 0: print('p_i =', p_i, '\nq_j =', q_j)
return p_i, q_j
return {'p_i': p_i, 'q_j': q_j, 'val': V_2}

def simplex_solve(self, verbose=0):
tableau = Tableau(A_i_j = self.A_i_j, d_i = np.ones(self.nbi), c_j = np.ones(self.nbj),
Expand All @@ -40,7 +40,7 @@ def simplex_solve(self, verbose=0):
p_i = xstar / ystar_sum
q_j = ystar / ystar_sum
if verbose > 0: print('p_i =', p_i, '\nq_j =', q_j)
return p_i, q_j
return {'p_i': p_i, 'q_j': q_j, 'val': 1/ystar_sum}

def chambolle_pock_solve(self, tol=10e-6, max_iter=10000):
L1 = np.max(np.abs(self.A_i_j))
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.1.0.10",
version="0.1.0.11",
authors=["Alfred Galichon"],
author_email="[email protected]",
licence="",
Expand Down

0 comments on commit 9e305b9

Please sign in to comment.