19 #include <vnl/algo/vnl_algo_export.h> 43 { this->bound_selection_ = nbd; }
47 { nbd = this->bound_selection_; }
54 { this->lower_bound_ = l; }
58 { l = this->lower_bound_; }
65 { this->upper_bound_ = u; }
69 { u = this->upper_bound_; }
75 { this->max_corrections_ =
m; }
79 {
return this->max_corrections_; }
86 { this->convergence_factor_ = factor; }
90 {
return this->convergence_factor_; }
97 { this->projected_gradient_tolerance_ = tol; }
101 {
return this->projected_gradient_tolerance_; }
105 {
return this->inf_norm_projected_gradient_; }
119 void init_parameters();
123 #endif // vnl_lbfgsb_h_ An object that represents a function from R^n -> R.
void set_max_variable_metric_corrections(long m)
Set the maximum number of variable metric corrections.
void get_upper_bound(vnl_vector< double > &u) const
Get the upper bounds for all variables.
void set_cost_function_convergence_factor(double factor)
Set the cost function convergence factor.
void set_lower_bound(vnl_vector< double > const &l)
Set the lower bounds for all variables.
void set_upper_bound(vnl_vector< double > const &u)
Set the upper bounds for all variables.
vnl_nonlinear_minimizer is a base class for nonlinear optimization.
Limited memory Broyden Fletcher Goldfarb Shannon minimization with constraints.
double projected_gradient_tolerance_
double get_inf_norm_projected_gradient() const
Get the current infinity norm of the projected gradient.
vnl_vector< double > lower_bound_
Base class for nonlinear optimization.
double inf_norm_projected_gradient_
double convergence_factor_
void get_lower_bound(vnl_vector< double > &l) const
Get the lower bounds for all variables.
vnl_vector< long > bound_selection_
void set_projected_gradient_tolerance(double tol)
Set the projected gradient tolerance.
void get_bound_selection(vnl_vector< long > &nbd) const
Get the bounds currently enforced on each variable.
long get_max_variable_metric_corrections() const
Get the maximum number of variable metric corrections.
double get_cost_function_convergence_factor() const
Get the cost function convergence factor.
vnl_vector< double > upper_bound_
void set_bound_selection(vnl_vector< long > const &nbd)
Set the bounds to be enforced on each variable.
double get_projected_gradient_tolerance() const
Get the projected gradient tolerance.