Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update compass_search.cpp #580

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/algorithms/compass_search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ compass_search::compass_search(unsigned max_fevals, double start_range, double s
pagmo_throw(std::invalid_argument, "The start range must be in (0, 1], while a value of "
+ std::to_string(start_range) + " was detected.");
}
if (stop_range > 1. || stop_range >= start_range || std::isnan(stop_range)) {
pagmo_throw(std::invalid_argument, "the stop range must be in (start_range, 1], while a value of "
if (stop_range < 0. || stop_range >= start_range || std::isnan(stop_range)) {
pagmo_throw(std::invalid_argument, "the stop range must be in [0, start_range), while a value of "
+ std::to_string(stop_range) + " was detected.");
}
if (reduction_coeff >= 1. || reduction_coeff <= 0. || std::isnan(reduction_coeff)) {
Expand Down