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
f2cd9e3b
Commit
f2cd9e3b
authored
Nov 28, 2019
by
Davis King
Browse files
use a time based exeuction limit in example
parent
501d17f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
examples/optimization_ex.cpp
examples/optimization_ex.cpp
+2
-1
No files found.
examples/optimization_ex.cpp
View file @
f2cd9e3b
...
@@ -304,7 +304,8 @@ int main() try
...
@@ -304,7 +304,8 @@ int main() try
auto
result
=
find_min_global
(
complex_holder_table
,
auto
result
=
find_min_global
(
complex_holder_table
,
{
-
10
,
-
10
},
// lower bounds
{
-
10
,
-
10
},
// lower bounds
{
10
,
10
},
// upper bounds
{
10
,
10
},
// upper bounds
max_function_calls
(
300
));
std
::
chrono
::
milliseconds
(
500
)
// run this long
);
cout
.
precision
(
9
);
cout
.
precision
(
9
);
// These cout statements will show that find_min_global() found the
// These cout statements will show that find_min_global() found the
...
...
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