Skip to content

Commit

Permalink
v__0.0.9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
alfredgalichon committed Dec 14, 2023
1 parent e70e341 commit 1293651
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mec/lp.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ def __init__(self,y_t_k,v_t,ytilde_s_k= np.array([]),vtilde_s = np.array([]),nam
m = grb.Model()
m.setParam('OutputFlag', 0)
x_j = m.addMVar(self.nbj, lb = (self.nbk+1)*[-grb.GRB.INFINITY]+self.nbi*[0])
m.setObjective(x_j[self.nbk], sense = grb.GRB.MINIMIZE)
m.setObjective(x_j[:(self.nbk-1)]@self.y_t_k[0,:] + x_j[self.nbk], sense = grb.GRB.MINIMIZE)
m.addConstr(self.tableau_i_j @ x_j == self.rhs_i)
m.optimize()
self.j_n = [i for (i,v) in enumerate(m.getVars() ) if v.vBasis == -1]
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.0.9.0",
version="0.0.9.1",
authors=["Alfred Galichon"],
author_email="ag133@nyu.edu",
licence="",
Expand Down

0 comments on commit 1293651

Please sign in to comment.