Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
6e6f37e5
Commit
6e6f37e5
authored
Mar 07, 2016
by
Davis King
Browse files
Fixed some warnings and made the unit tests more robust.
parent
0af762c5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
dlib/optimization/optimization_solve_qp_using_smo.h
dlib/optimization/optimization_solve_qp_using_smo.h
+1
-1
dlib/test/mpc.cpp
dlib/test/mpc.cpp
+2
-2
No files found.
dlib/optimization/optimization_solve_qp_using_smo.h
View file @
6e6f37e5
...
...
@@ -465,7 +465,7 @@ namespace dlib
// First we use a coordinate descent method to initialize alpha.
double
max_df
=
0
;
for
(
unsigned
long
iter
=
0
;
iter
<
alpha
.
size
()
*
2
;
++
iter
)
for
(
long
iter
=
0
;
iter
<
alpha
.
size
()
*
2
;
++
iter
)
{
max_df
=
0
;
long
best_r
=
0
;
...
...
dlib/test/mpc.cpp
View file @
6e6f37e5
...
...
@@ -328,8 +328,8 @@ namespace
lower
=
-
4
;
upper
=
3
;
solve_qp_box_using_smo
(
Q
,
b
,
alpha
,
lower
,
upper
,
0.00000001
,
1
00000
);
solve_qp_box_constrained
(
Q
,
b
,
alpha2
,
lower
,
upper
,
0.00000001
,
1
0000
);
solve_qp_box_using_smo
(
Q
,
b
,
alpha
,
lower
,
upper
,
0.0000000
0
1
,
5
00000
);
solve_qp_box_constrained
(
Q
,
b
,
alpha2
,
lower
,
upper
,
0.0000000
0
1
,
5
0000
);
dlog
<<
LINFO
<<
trans
(
alpha
);
dlog
<<
LINFO
<<
trans
(
alpha2
);
dlog
<<
LINFO
<<
"objective value: "
<<
0.5
*
trans
(
alpha
)
*
Q
*
alpha
+
trans
(
b
)
*
alpha
;
...
...
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