From 1ffc4b091f7f91aa94deb4e60c09da4f12413448 Mon Sep 17 00:00:00 2001 From: "Hsieh, Chiao" <chsieh16@illinois.edu> Date: Mon, 22 Nov 2021 19:18:08 -0600 Subject: [PATCH] Move config values for gurobi to env file --- firstpass_teacher.py | 1 - gurobi.env | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/firstpass_teacher.py b/firstpass_teacher.py index 0c9bbda..141c2c4 100755 --- a/firstpass_teacher.py +++ b/firstpass_teacher.py @@ -81,7 +81,6 @@ def compute_min_dist(x_bound: Tuple[float, float], y_bound: Tuple[float, float], return np.nan assert coeff.shape == (2, 2) and intercept.shape == (2,) with gp.Model("lane_centering_stanley") as m: - m.setParam(GRB.Param.DualReductions, 0) print("Partition: x in [%g, %g] and y in [%g, %g]" % (x_bound + y_bound)) add_constraints(m, x_bound, y_bound, coeff=coeff, diff --git a/gurobi.env b/gurobi.env index 663b6f0..3dd7d0e 100644 --- a/gurobi.env +++ b/gurobi.env @@ -1 +1,2 @@ +DualReductions 0 OutputFlag 0 -- GitLab