Skip to content

Commit 6806f7c

Browse files
committed
[unittest] [eiquadprog-basic] Fix test_nonconvex
1 parent 08f29ea commit 6806f7c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

unittest/eiquadprog-basic.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -231,8 +231,8 @@ BOOST_AUTO_TEST_CASE ( test_full )
231231

232232
// min ||x||^2
233233
// s.t.
234-
// x[0] = -1
235234
// x[0] = 1
235+
// x[0] = -1
236236
// DOES NOT WORK!
237237

238238
BOOST_AUTO_TEST_CASE ( test_unfeasible_equalities )
@@ -405,10 +405,10 @@ BOOST_AUTO_TEST_CASE ( test_nonconvex )
405405
Aineq(1,3) = -1.;
406406

407407
Eigen::VectorXd Bineq(4);
408-
Bineq(0) = 0.;
409-
Bineq(1) = -1.;
410-
Bineq(2) = 0.;
411-
Bineq(3) = -1.;
408+
Bineq(0) = 0.;
409+
Bineq(1) = 1.;
410+
Bineq(2) = 0.;
411+
Bineq(3) = 1.;
412412

413413
Eigen::VectorXd x(2);
414414
Eigen::VectorXi activeSet(4);

0 commit comments

Comments
 (0)