You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
change BFGS name and make lattice_change_cg and ions_move_cg shorter (#6517)
* change BFGS name and make lattice_change_cg and ions_move_cg shorter
* change input parameters
* change BFGS name and make lattice_change_cg and ions_move_cg shorter
* change input parameters
* change input parameters
* change input parameters
* change input parameters
* change input parameters
* fix INPUT problem
* fix INPUT problem
* fix INPUT problem
* fix INPUT problem
* fix INPUT problem
* fix INPUT problem
* fix INPUT problem
* fix INPUT problem
* fix INPUT problem
---------
Co-authored-by: Fei Yang <[email protected]>
Copy file name to clipboardExpand all lines: docs/advanced/input_files/input-main.md
+9-4Lines changed: 9 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1487,15 +1487,20 @@ These variables are used to control the geometry relaxation.
1487
1487
1488
1488
### relax_method
1489
1489
1490
-
-**Type**: String
1490
+
-**Type**: Vector of string
1491
1491
-**Description**: The methods to do geometry optimization.
1492
+
the first element:
1492
1493
- cg: using the conjugate gradient (CG) algorithm. Note that there are two implementations of the conjugate gradient (CG) method, see [relax_new](#relax_new).
1493
-
- bfgs: using the Broyden–Fletcher–Goldfarb–Shanno (BFGS) algorithm.
1494
-
-bfgs_trad: using the traditional Broyden–Fletcher–Goldfarb–Shanno (BFGS) algorithm.
1494
+
- bfgs: using the Broyden–Fletcher–Goldfarb–Shanno (BFGS) algorithm.
1495
+
-lbfgs: using the Limited-memory Broyden–Fletcher–Goldfarb–Shanno (LBFGS) algorithm.
1495
1496
- cg_bfgs: using the CG method for the initial steps, and switching to BFGS method when the force convergence is smaller than [relax_cg_thr](#relax_cg_thr).
1496
1497
- sd: using the steepest descent (SD) algorithm.
1497
1498
- fire: the Fast Inertial Relaxation Engine method (FIRE), a kind of molecular-dynamics-based relaxation algorithm, is implemented in the molecular dynamics (MD) module. The algorithm can be used by setting [calculation](#calculation) to `md` and [md_type](#md_type) to `fire`. Also ionic velocities should be set in this case. See [fire](../md.md#fire) for more details.
1498
-
-**Default**: cg
1499
+
1500
+
the second element:
1501
+
when the first element is bfgs, if the second parameter is 1, it indicates the use of the new BFGS algorithm; if the second parameter is not 1, it indicates the use of the old BFGS algorithm.
1502
+
-**Default**: cg 1
1503
+
-**Note**:In the 3.10-LTS version, the type of this parameter is std::string. It can be set to "cg","bfgs","cg_bfgs","bfgs_trad","lbfgs","sd","fire".
0 commit comments