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
e558318c
Commit
e558318c
authored
Dec 19, 2017
by
Davis King
Browse files
Fixed initial point selection to only happen once.
parent
a451e792
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
dlib/global_optimization/global_function_search.cpp
dlib/global_optimization/global_function_search.cpp
+2
-1
No files found.
dlib/global_optimization/global_function_search.cpp
View file @
e558318c
...
@@ -702,7 +702,8 @@ namespace dlib
...
@@ -702,7 +702,8 @@ namespace dlib
for
(
auto
&
info
:
functions
)
for
(
auto
&
info
:
functions
)
{
{
const
long
dims
=
info
->
spec
.
lower
.
size
();
const
long
dims
=
info
->
spec
.
lower
.
size
();
if
(
info
->
ub
.
num_points
()
<
1
)
// If this is the very beginning of the optimization process
if
(
info
->
ub
.
num_points
()
+
info
->
outstanding_evals
.
size
()
<
1
)
{
{
outstanding_function_eval_request
new_req
;
outstanding_function_eval_request
new_req
;
new_req
.
request_id
=
next_request_id
++
;
new_req
.
request_id
=
next_request_id
++
;
...
...
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