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
3b272ef2
Commit
3b272ef2
authored
Mar 28, 2016
by
Davis King
Browse files
fixed spelling error in comment
parent
ea5f89c6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
dlib/optimization/optimization.h
dlib/optimization/optimization.h
+1
-1
No files found.
dlib/optimization/optimization.h
View file @
3b272ef2
...
...
@@ -427,7 +427,7 @@ namespace dlib
for
(
long
i
=
0
;
i
<
gradient
.
size
();
++
i
)
{
const
double
tol
=
eps
*
std
::
abs
(
x
(
i
));
//
i
f x(i) is an active bound constraint then we should set it
'
s search
//
I
f x(i) is an active bound constraint then we should set its search
// direction such that a single step along the direction either does nothing or
// closes the gap of size tol before hitting the bound exactly.
if
(
x_lower
(
i
)
+
tol
>=
x
(
i
)
&&
gradient
(
i
)
>
0
)
...
...
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