Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
CoMISo
CoMISo
Commits
2a80acd0
Commit
2a80acd0
authored
Nov 21, 2016
by
Max Lyon
Browse files
Merge branch 'VCI/master'
parents
5963a2a0
2f9ac966
Changes
1
Hide whitespace changes
Inline
Side-by-side
NSolver/NewtonSolver.hh
View file @
2a80acd0
...
...
@@ -47,8 +47,8 @@ public:
typedef
Eigen
::
Triplet
<
double
>
Triplet
;
/// Default constructor
NewtonSolver
(
const
double
_eps
=
1e-6
,
const
int
_max_iters
=
200
,
const
double
_alpha_ls
=
0.2
,
const
double
_beta_ls
=
0.6
)
:
eps_
(
_eps
),
max_iters_
(
_max_iters
),
alpha_ls_
(
_alpha_ls
),
beta_ls_
(
_beta_ls
),
constant_hessian_structure_
(
false
)
{}
NewtonSolver
(
const
double
_eps
=
1e-6
,
const
double
_eps_line_search
=
1e-9
,
const
int
_max_iters
=
200
,
const
double
_alpha_ls
=
0.2
,
const
double
_beta_ls
=
0.6
)
:
eps_
(
_eps
),
eps_ls_
(
_eps_line_search
),
max_iters_
(
_max_iters
),
alpha_ls_
(
_alpha_ls
),
beta_ls_
(
_beta_ls
),
constant_hessian_structure_
(
false
)
{}
/// Destructor
~
NewtonSolver
()
{}
...
...
@@ -121,7 +121,7 @@ public:
<<
std
::
endl
;
// converged?
if
(
newton_decrement
<
eps_
||
t
==
0.0
)
if
(
newton_decrement
<
eps_
||
std
::
abs
(
t
)
<=
eps_ls_
)
break
;
++
iter
;
...
...
@@ -276,6 +276,7 @@ protected:
private:
double
eps_
;
double
eps_ls_
;
int
max_iters_
;
// double accelerate_;
double
alpha_ls_
;
...
...
Write
Preview
Supports
Markdown
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