Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Matthias Mayr
limbo
Commits
f910b6f1
Commit
f910b6f1
authored
May 13, 2016
by
Konstantinos Chatzilygeroudis
Browse files
Merge remote-tracking branch 'origin' into local_jobs
parents
d29de0c3
e605fd93
Changes
2
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
f910b6f1
limbo [](https://travis-ci.org/resibots/limbo)
limbo [](https://travis-ci.org/resibots/limbo)
=====
A lightweight framework for Bayesian and model-based optimisation of black-box functions (C++11).
...
...
src/tests/test_cmaes.cpp
View file @
f910b6f1
...
...
@@ -20,7 +20,7 @@ opt::eval_t fsphere(const Eigen::VectorXd& params, bool g)
BOOST_AUTO_TEST_CASE
(
test_cmaes_unbounded
)
{
size_t
N
=
10
;
size_t
N
=
10
0
;
size_t
errors
=
0
;
for
(
size_t
i
=
0
;
i
<
N
;
i
++
)
{
Eigen
::
VectorXd
g
=
limbo
::
opt
::
Cmaes
<
Params
>
()(
fsphere
,
Eigen
::
VectorXd
::
Zero
(
2
),
false
);
...
...
@@ -29,12 +29,12 @@ BOOST_AUTO_TEST_CASE(test_cmaes_unbounded)
errors
++
;
}
BOOST_CHECK
((
double
(
errors
)
/
double
(
N
))
<
0.
4
);
BOOST_CHECK
((
double
(
errors
)
/
double
(
N
))
<
=
0.
3
);
}
BOOST_AUTO_TEST_CASE
(
test_cmaes_bounded
)
{
size_t
N
=
10
;
size_t
N
=
10
0
;
size_t
errors
=
0
;
for
(
size_t
i
=
0
;
i
<
N
;
i
++
)
{
Eigen
::
VectorXd
g
=
limbo
::
opt
::
Cmaes
<
Params
>
()(
fsphere
,
Eigen
::
VectorXd
::
Zero
(
2
),
true
);
...
...
@@ -43,5 +43,5 @@ BOOST_AUTO_TEST_CASE(test_cmaes_bounded)
errors
++
;
}
BOOST_CHECK
((
double
(
errors
)
/
double
(
N
))
<
0.3
);
BOOST_CHECK
((
double
(
errors
)
/
double
(
N
))
<
=
0.3
);
}
Write
Preview
Supports
Markdown
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