|
| | Ions_Move_BFGS () |
| | ~Ions_Move_BFGS () |
| void | allocate (void) |
| void | reset (void) |
| bool | start (UnitCell &ucell, const ModuleBase::matrix &force, const double &energy_in, const int istep, int &update_iter, std::ofstream &ofs, std::vector< double > &etot_info, const Relax_Criteria &criteria) |
| bool & | get_init_done () |
| | whether allocate() has already run
|
| bool & | get_first_step () |
| | whether this is the first step of the relaxation
|
| void | bfgs_routine_for_testing (const double &lat0, const int istep, int &update_iter, std::ofstream &ofs, std::vector< double > &etot_info, const std::string &out_level, const int test_relax_method) |
| void | restart_bfgs_for_testing (const double &lat0, int &update_iter, std::ofstream &ofs, const int test_relax_method) |
| | BFGS_Basic () |
| | ~BFGS_Basic ()=default |
| std::vector< double > & | get_pos () |
| | 3N coordinates of the system ( x )
|
| std::vector< double > & | get_grad () |
| | 3N components of ( grad( V(x) ) )
|
| std::vector< double > & | get_move () |
| | the step taken, pos = pos_p + move
|
| std::vector< double > & | get_pos_p () |
| | coordinates of the previous step
|
| std::vector< double > & | get_grad_p () |
| | gradient of the previous step
|
| std::vector< double > & | get_move_p () |
| | step taken at the previous step
|
| bool & | get_save_flag () |
| | whether a bfgs state has been saved
|
| bool & | get_tr_min_hit () |
| | whether the trust radius already hit its minimum last step
|
| bool & | get_wolfe_flag () |
| | whether the Wolfe conditions were satisfied
|
| ModuleBase::matrix & | get_inv_hess () |
| | the inverse Hessian of the BFGS update
|
| int & | get_bfgs_ndim () |
| | number of previous steps kept by the BFGS update
|
| void | allocate_basic_for_testing () |
| void | new_step_for_testing (const double &lat0, int &update_iter, std::ofstream &ofs, std::vector< double > &etot_info, const int test_relax_method) |
| void | reset_hessian_for_testing () |
| void | save_bfgs_for_testing () |
| void | update_inverse_hessian_for_testing (const double &lat0, std::ofstream &ofs) |
| void | check_wolfe_conditions_for_testing (std::ofstream &ofs, std::vector< double > &etot_info) |
| void | compute_trust_radius_for_testing (std::ofstream &ofs, std::vector< double > &etot_info, const int test_relax_method) |