Skip to content

Commit

Permalink
Hack to suppress #9 for now
Browse files Browse the repository at this point in the history
  • Loading branch information
Foggalong committed May 21, 2024
1 parent 230de89 commit 3ae59e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions alphargs/solvers.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def gurobi_standard_genetics(
model.write("standard-opt.mps")

model.optimize()
return w.X, model.ObjVal
return np.array(w.X), model.ObjVal # HACK np.array avoids issue #9


def gurobi_robust_genetics(
Expand Down Expand Up @@ -260,4 +260,4 @@ def gurobi_robust_genetics(
model.write("robust-opt.mps")

model.optimize()
return w.X, z.X, model.ObjVal
return np.array(w.X), z.X, model.ObjVal # HACK np.array avoids issue #9

0 comments on commit 3ae59e1

Please sign in to comment.