From 3ae59e143b0f28c9f1b379c8d0518bb94c88136b Mon Sep 17 00:00:00 2001 From: Joshua Fogg Date: Tue, 21 May 2024 16:27:45 +0100 Subject: [PATCH] Hack to suppress #9 for now --- alphargs/solvers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/alphargs/solvers.py b/alphargs/solvers.py index 97c556e..b26ff98 100644 --- a/alphargs/solvers.py +++ b/alphargs/solvers.py @@ -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( @@ -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