Stan
2.5.0
probability, sampling & optimization
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
stan
gm
arguments
arg_bfgs.hpp
Go to the documentation of this file.
1
#ifndef STAN__GM__ARGUMENTS__BFGS__HPP
2
#define STAN__GM__ARGUMENTS__BFGS__HPP
3
4
#include <
stan/gm/arguments/categorical_argument.hpp
>
5
6
#include <
stan/gm/arguments/arg_init_alpha.hpp
>
7
#include <
stan/gm/arguments/arg_tolerance.hpp
>
8
9
namespace
stan {
10
11
namespace
gm {
12
13
class
arg_bfgs
:
public
categorical_argument
{
14
15
public
:
16
17
arg_bfgs
() {
18
19
_name
=
"bfgs"
;
20
_description
=
"BFGS with linesearch"
;
21
22
_subarguments
.push_back(
new
arg_init_alpha
());
23
_subarguments
.push_back(
new
arg_tolerance
(
"tol_obj"
,
"Convergence tolerance on absolute changes in objective function value"
,1
e
-12));
24
_subarguments
.push_back(
new
arg_tolerance
(
"tol_rel_obj"
,
"Convergence tolerance on relative changes in objective function value"
,1
e
+4));
25
_subarguments
.push_back(
new
arg_tolerance
(
"tol_grad"
,
"Convergence tolerance on the norm of the gradient"
,1
e
-8));
26
_subarguments
.push_back(
new
arg_tolerance
(
"tol_rel_grad"
,
"Convergence tolerance on the relative norm of the gradient"
,1
e
+7));
27
_subarguments
.push_back(
new
arg_tolerance
(
"tol_param"
,
"Convergence tolerance on changes in parameter value"
,1
e
-8));
28
29
}
30
31
};
32
33
}
// gm
34
35
}
// stan
36
37
#endif
38
stan::gm::arg_tolerance
Definition:
arg_tolerance.hpp:12
stan::gm::arg_init_alpha
Definition:
arg_init_alpha.hpp:10
categorical_argument.hpp
arg_init_alpha.hpp
stan::gm::categorical_argument
Definition:
categorical_argument.hpp:11
stan::gm::categorical_argument::_subarguments
std::vector< argument * > _subarguments
Definition:
categorical_argument.hpp:153
stan::gm::arg_bfgs::arg_bfgs
arg_bfgs()
Definition:
arg_bfgs.hpp:17
arg_tolerance.hpp
stan::gm::argument::_name
std::string _name
Definition:
argument.hpp:76
stan::gm::arg_bfgs
Definition:
arg_bfgs.hpp:13
stan::math::e
double e()
Return the base of the natural logarithm.
Definition:
constants.hpp:86
stan::gm::argument::_description
std::string _description
Definition:
argument.hpp:77
[
Stan Home Page
]
© 2011–2014, Stan Development Team.