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
4d0b2035
"git@developer.sourcefind.cn:OpenDAS/ollama.git" did not exist on "4f25092dc13d84bb10463e1e7ad818b20a4e1846"
Commit
4d0b2035
authored
Nov 25, 2017
by
Davis King
Browse files
Just moved the try block to reduce the indentation level.
parent
929870d3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
200 additions
and
205 deletions
+200
-205
examples/optimization_ex.cpp
examples/optimization_ex.cpp
+200
-205
No files found.
examples/optimization_ex.cpp
View file @
4d0b2035
...
@@ -113,12 +113,8 @@ public:
...
@@ -113,12 +113,8 @@ public:
// ----------------------------------------------------------------------------------------
// ----------------------------------------------------------------------------------------
int
main
()
int
main
()
try
{
{
try
{
// Set the starting point to (4,8). This is the point the optimization algorithm
// Set the starting point to (4,8). This is the point the optimization algorithm
// will start out from and it will move it closer and closer to the function's
// will start out from and it will move it closer and closer to the function's
// minimum point. So generally you want to try and compute a good guess that is
// minimum point. So generally you want to try and compute a good guess that is
...
@@ -316,10 +312,9 @@ int main()
...
@@ -316,10 +312,9 @@ int main()
// globally optimal solution to 9 digits of precision:
// globally optimal solution to 9 digits of precision:
cout
<<
"complex holder table function solution y (should be 21.9210397): "
<<
result
.
y
<<
endl
;
cout
<<
"complex holder table function solution y (should be 21.9210397): "
<<
result
.
y
<<
endl
;
cout
<<
"complex holder table function solution x:
\n
"
<<
result
.
x
<<
endl
;
cout
<<
"complex holder table function solution x:
\n
"
<<
result
.
x
<<
endl
;
}
}
catch
(
std
::
exception
&
e
)
catch
(
std
::
exception
&
e
)
{
{
cout
<<
e
.
what
()
<<
endl
;
cout
<<
e
.
what
()
<<
endl
;
}
}
}
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