Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
qbox-public
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
qbox
qbox-public
Commits
66305fdd
Commit
66305fdd
authored
Apr 01, 2019
by
Francois Gygi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add set_nstep_max function to LineMinimizer
parent
e800eeb3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletions
+2
-1
LineMinimizer.C
src/LineMinimizer.C
+1
-1
LineMinimizer.h
src/LineMinimizer.h
+1
-0
No files found.
src/LineMinimizer.C
View file @
66305fdd
...
...
@@ -189,7 +189,7 @@ double LineMinimizer::next_alpha(double alpha, double f, double fp)
{
// we are already in bracketing mode
nstep_
++
;
if
(
nstep_
>
nstep_max_
)
if
(
nstep_
max_
>
0
&&
nstep_
>
nstep_max_
)
{
if
(
debug_print
)
cout
<<
"LineMinimizer: fail, nstep_max"
<<
endl
;
...
...
src/LineMinimizer.h
View file @
66305fdd
...
...
@@ -53,6 +53,7 @@ class LineMinimizer
void
set_sigma2
(
double
s
)
{
sigma2_
=
s
;
}
void
set_alpha_start
(
double
a
)
{
alpha_start_
=
a
;
}
void
set_alpha_max
(
double
a
)
{
alpha_max_
=
a
;
}
void
set_nstep_max
(
int
n
)
{
nstep_max_
=
n
;
}
void
set_debug_print
(
void
)
{
debug_print
=
true
;
}
double
next_alpha
(
double
alpha
,
double
f
,
double
fp
);
...
...
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