From 45ade3c1f615c2fe245eb2733fb14ca4b0260963 Mon Sep 17 00:00:00 2001 From: Allan Leal Date: Thu, 17 Feb 2022 17:55:22 +0100 Subject: [PATCH] Solve bug in which xbarlower was used instead of xbarupper --- Optima/Solver.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Optima/Solver.cpp b/Optima/Solver.cpp index c4f9fa90..da5a7961 100644 --- a/Optima/Solver.cpp +++ b/Optima/Solver.cpp @@ -243,7 +243,7 @@ struct Solver::Impl // Initialize the upper bounds of xbar = (x, xbg, xhg) xbarupper.resize(nxbar); xbarupper.head(nx) = problem.xupper; - xbarlower.tail(nxbg + nxhg).fill(0.0); + xbarupper.tail(nxbg + nxhg).fill(0.0); // Initialize vector b = (be, bg) mproblem.b.resize(ny);