Skip to content

Commit

Permalink
Solve bug in which xbarlower was used instead of xbarupper
Browse files Browse the repository at this point in the history
  • Loading branch information
allanleal committed May 11, 2022
1 parent 6b4a11d commit 45ade3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Optima/Solver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 45ade3c

Please sign in to comment.