Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stack Of Tasks
eiquadprog
Commits
a223af54
Commit
a223af54
authored
Sep 17, 2019
by
Gabriele Buondonno
Browse files
[unittest] [eiquadprog-fast] Fix test_nonconvex
parent
6806f7c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
unittest/eiquadprog-fast.cpp
View file @
a223af54
...
...
@@ -10,7 +10,7 @@ using namespace eiquadprog::solvers;
/**
* solves the problem
* min. x' Hess x +
2
g0' x
* min.
0.5 *
x' Hess x + g0' x
* s.t. CE x + ce0 = 0
* CI x + ci0 >= 0
*/
...
...
@@ -251,8 +251,8 @@ BOOST_AUTO_TEST_CASE ( test_full )
// min ||x||^2
// s.t.
// x[0] = -1
// x[0] = 1
// x[0] = -1
BOOST_AUTO_TEST_CASE
(
test_unfeasible_equalities
)
{
...
...
@@ -443,10 +443,10 @@ BOOST_AUTO_TEST_CASE ( test_nonconvex )
Aineq
(
3
,
1
)
=
-
1.
;
Eigen
::
VectorXd
Bineq
(
4
);
Bineq
(
0
)
=
0.
;
Bineq
(
1
)
=
-
1.
;
Bineq
(
2
)
=
0.
;
Bineq
(
3
)
=
-
1.
;
Bineq
(
0
)
=
0.
;
Bineq
(
1
)
=
1.
;
Bineq
(
2
)
=
0.
;
Bineq
(
3
)
=
1.
;
Eigen
::
VectorXd
x
(
2
);
...
...
@@ -460,7 +460,7 @@ BOOST_AUTO_TEST_CASE ( test_nonconvex )
EiquadprogFast_status
status
=
qp
.
solve_quadprog
(
Q
,
C
,
Aeq
,
Beq
,
Aineq
,
Bineq
,
x
);
BOOST_
WARN
_EQUAL
(
status
,
expected
);
BOOST_
CHECK
_EQUAL
(
status
,
expected
);
BOOST_WARN_CLOSE
(
qp
.
getObjValue
(),
val
,
1e-6
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment