1 #ifndef STAN_SERVICES_OPTIMIZE_DEFAULTS_HPP 2 #define STAN_SERVICES_OPTIMIZE_DEFAULTS_HPP 21 return "Line search step size for first iteration.";
31 if (!(init_alpha > 0))
55 return "Convergence tolerance on absolute changes in objective" 69 " than or equal to 0.");
92 return "Convergence tolerance on relative changes in" 93 " objective function value.";
105 if (!(tol_rel_obj >= 0))
107 " than or equal to 0");
130 return "Convergence tolerance on the norm of the gradient.";
141 if (!(tol_grad >= 0))
143 " than or equal to 0");
167 return "Convergence tolerance on the relative norm of the gradient.";
179 if (!(tol_rel_grad >= 0))
181 " than or equal to 0.");
204 return "Convergence tolerance on changes in parameter value.";
215 if (!(tol_param >= 0))
239 return "Amount of history to keep for L-BFGS.";
250 if (!(history_size > 0))
274 return "Total number of iterations.";
308 return "Save optimization interations to output.";
static void validate(double tol_param)
static std::string description()
static void validate(double tol_grad)
static void validate(bool save_iterations)
static std::string description()
static void validate(double init_alpha)
static double default_value()
static double default_value()
static std::string description()
static std::string description()
static std::string description()
static bool default_value()
static std::string description()
static double default_value()
static int default_value()
static double default_value()
static void validate(int iter)
static void validate(double tol_rel_obj)
static std::string description()
static void validate(double tol_obj)
void invalid_argument(const char *function, const char *name, const T &y, const char *msg1, const char *msg2)
static void validate(int history_size)
static int default_value()
static double default_value()
static std::string description()
static double default_value()
static void validate(double tol_rel_grad)
static std::string description()