68 std::vector<double> &etot_info,
69 const int test_relax_method)
71 new_step(lat0, update_iter, ofs, etot_info, test_relax_method);
84 std::ofstream &ofs, std::vector<double> &etot_info,
const int test_relax_method)
95 std::vector<double> &etot_info,
96 const int test_relax_method);
128 void compute_trust_radius(std::ofstream &ofs, std::vector<double> &etot_info,
const int test_relax_method);
void allocate_basic_for_testing()
Definition bfgs_basic.h:63
std::vector< double > & get_grad()
3N components of ( grad( V(x) ) )
Definition bfgs_basic.h:43
int bfgs_ndim
Definition bfgs_basic.h:124
std::vector< double > pos_p
Definition bfgs_basic.h:104
void save_bfgs(void)
Definition bfgs_basic.cpp:148
std::vector< double > & get_grad_p()
gradient of the previous step
Definition bfgs_basic.h:49
std::vector< double > pos
Definition bfgs_basic.h:100
static double relax_bfgs_w1
Definition bfgs_basic.h:109
ModuleBase::matrix inv_hess
Definition bfgs_basic.h:122
bool wolfe_flag
Definition bfgs_basic.h:121
void reset_hessian(void)
Definition bfgs_basic.cpp:129
void check_wolfe_conditions(std::ofstream &ofs, std::vector< double > &etot_info)
Definition bfgs_basic.cpp:97
static double relax_bfgs_w2
Definition bfgs_basic.h:110
std::vector< double > & get_pos_p()
coordinates of the previous step
Definition bfgs_basic.h:47
ModuleBase::matrix & get_inv_hess()
the inverse Hessian of the BFGS update
Definition bfgs_basic.h:59
bool & get_save_flag()
whether a bfgs state has been saved
Definition bfgs_basic.h:53
void compute_trust_radius_for_testing(std::ofstream &ofs, std::vector< double > &etot_info, const int test_relax_method)
Definition bfgs_basic.h:83
std::vector< double > & get_move_p()
step taken at the previous step
Definition bfgs_basic.h:51
void new_step(const double &lat0, int &update_iter, std::ofstream &ofs, std::vector< double > &etot_info, const int test_relax_method)
Definition bfgs_basic.cpp:163
std::vector< double > grad_p
Definition bfgs_basic.h:105
std::vector< double > move_p
Definition bfgs_basic.h:106
bool & get_tr_min_hit()
whether the trust radius already hit its minimum last step
Definition bfgs_basic.h:55
void compute_trust_radius(std::ofstream &ofs, std::vector< double > &etot_info, const int test_relax_method)
Definition bfgs_basic.cpp:266
bool tr_min_hit
Definition bfgs_basic.h:114
void save_bfgs_for_testing()
Definition bfgs_basic.h:74
std::vector< double > & get_move()
the step taken, pos = pos_p + move
Definition bfgs_basic.h:45
bool & get_wolfe_flag()
whether the Wolfe conditions were satisfied
Definition bfgs_basic.h:57
void new_step_for_testing(const double &lat0, int &update_iter, std::ofstream &ofs, std::vector< double > &etot_info, const int test_relax_method)
Definition bfgs_basic.h:64
bool save_flag
Definition bfgs_basic.h:113
void check_wolfe_conditions_for_testing(std::ofstream &ofs, std::vector< double > &etot_info)
Definition bfgs_basic.h:79
double check_move(const double &lat0, const double &pos, const double &pos_p)
Definition bfgs_basic.cpp:352
std::vector< double > grad
Definition bfgs_basic.h:101
void update_inverse_hessian_for_testing(const double &lat0, std::ofstream &ofs)
Definition bfgs_basic.h:75
std::vector< double > move
Definition bfgs_basic.h:102
void reset_hessian_for_testing()
Definition bfgs_basic.h:73
void update_inverse_hessian(const double &lat0, std::ofstream &ofs)
Definition bfgs_basic.cpp:33
void allocate_basic(void)
Definition bfgs_basic.cpp:16
std::vector< double > & get_pos()
3N coordinates of the system ( x )
Definition bfgs_basic.h:41
int & get_bfgs_ndim()
number of previous steps kept by the BFGS update
Definition bfgs_basic.h:61
BFGS_Basic()
Definition bfgs_basic.cpp:14