OT

References: VandeVondele2003, Weber2008

Sets the various options for the orbital transformation (OT) method. Default settings already provide an efficient, yet robust method. Most systems benefit from using the FULL_ALL preconditioner combined with a small value (0.001) of ENERGY_GAP. Well-behaved systems might benefit from using a DIIS minimizer.

Advantages: It’s fast, because no expensive diagonalisation is performed. If preconditioned correctly, method guaranteed to find minimum.

Disadvantages: Sensitive to preconditioning. A good preconditioner can be expensive. No smearing, or advanced SCF mixing possible: POOR convergence for metallic systems. [Edit on GitHub]

Keywords

Keyword descriptions

SECTION_PARAMETERS

Type: logical
Default: F
Lone keyword: T
Usage: &OT T

Description: controls the activation of the ot method

[Edit on GitHub]

ALGORITHM

Type: enum
Default: STRICT
Usage: ALGORITHM STRICT

Description: Algorithm to be used for OT

Valid values:

  • STRICT Strict orthogonality: Taylor or diagonalization based algorithm.

  • IRAC Orbital Transformation based Iterative Refinement of the Approximative Congruence transformation (OT/IR).

References: VandeVondele2003, VandeVondele2005, Weber2008

[Edit on GitHub]

BROYDEN_ADAPTIVE_SIGMA

Type: logical
Default: T
Lone keyword: T
Usage: BROYDEN_ADAPTIVE_SIGMA ON

Description: Enable adaptive curvature estimation

[Edit on GitHub]

BROYDEN_BETA

Type: real
Default: 9.00000000E-001
Usage: BROYDEN_BETA 0.9

Description: Underrelaxation for the broyden mixer

[Edit on GitHub]

BROYDEN_ENABLE_FLIP

Type: logical
Default: T
Lone keyword: T
Usage: BROYDEN_ENABLE_FLIP ON

Description: Ensure positive definite update

[Edit on GitHub]

BROYDEN_ETA

Type: real
Default: 7.00000000E-001
Usage: BROYDEN_ETA 0.7

Description: Dampening of estimated energy curvature.

[Edit on GitHub]

BROYDEN_FORGET_HISTORY

Type: logical
Default: F
Lone keyword: T
Usage: BROYDEN_FORGET_HISTORY OFF

Description: Forget history on bad approximation

[Edit on GitHub]

BROYDEN_GAMMA

Type: real
Default: 5.00000000E-001
Usage: BROYDEN_GAMMA 0.5

Description: Backtracking parameter

[Edit on GitHub]

BROYDEN_OMEGA

Type: real
Default: 1.10000000E+000
Usage: BROYDEN_OMEGA 1.1

Description: Growth limit of curvature.

[Edit on GitHub]

BROYDEN_SIGMA

Type: real
Default: 2.50000000E-001
Usage: BROYDEN_SIGMA 0.25

Description: Curvature of energy functional.

[Edit on GitHub]

BROYDEN_SIGMA_DECREASE

Type: real
Default: 7.00000000E-001
Usage: BROYDEN_SIGMA_DECREASE 0.7

Description: Reduction of curvature on bad approximation.

[Edit on GitHub]

BROYDEN_SIGMA_MIN

Type: real
Default: 5.00000000E-002
Usage: BROYDEN_SIGMA_MIN 0.05

Description: Minimum adaptive curvature.

[Edit on GitHub]

CHOLESKY

Type: enum
Default: REDUCE
Usage: CHOLESKY REDUCE

Description: If FULL_ALL the cholesky decomposition of the S matrix is used. Options on the algorithm to be used.

Valid values:

  • OFF The cholesky algorithm is not used

  • REDUCE Reduce is called

  • RESTORE Reduce is replaced by two restore

  • INVERSE Restore uses operator multiply by inverse of the triangular matrix

  • INVERSE_DBCSR Like inverse, but matrix stored as dbcsr, sparce matrix algebra used when possible

[Edit on GitHub]

ENERGIES

Type: logical
Default: F
Lone keyword: T
Usage: ENERGIES

Description: Optimize orbital energies for use in Fermi-Dirac smearing (requires ROTATION and FD smearing to be active).

[Edit on GitHub]

ENERGY_GAP

Type: real
Default: -1.00000000E+000
Usage: ENERGY_GAP 0.001

Description: Should be an estimate for the energy gap [a.u.] (HOMO-LUMO) and is used in preconditioning, especially effective with the FULL_ALL preconditioner, in which case it should be an underestimate of the gap (can be a small number, e.g. 0.002). FULL_SINGLE_INVERSE takes it as lower bound (values below 0.05 can cause stability issues). In general, higher values will tame the preconditioner in case of poor initial guesses. A negative value will leave the choice to CP2K depending on type of preconditioner.

[Edit on GitHub]

EPS_IRAC

Type: real
Default: 1.00000000E-010
Usage: EPS_IRAC 1.0E-5

Description: Targeted accuracy during the refinement iteration.

[Edit on GitHub]

EPS_IRAC_FILTER_MATRIX

Type: real
Default: 0.00000000E+000
Usage: EPS_IRAC_FILTER_MATRIX 1.0E-5

Description: Sets the threshold for filtering the matrices.

[Edit on GitHub]

EPS_IRAC_QUICK_EXIT

Type: real
Default: 1.00000000E-005
Usage: EPS_IRAC_QUICK_EXIT 1.0E-2

Description: Only one extra refinement iteration is done when the norm is below this value.

[Edit on GitHub]

EPS_IRAC_SWITCH

Type: real
Default: 1.00000000E-002
Usage: EPS_IRAC_SWITCH 1.0E-3

Description: The algorithm switches to the polynomial refinement when the norm is below this value.

[Edit on GitHub]

EPS_TAYLOR

Type: real
Default: 1.00000000E-016
Aliases: EPSTAYLOR
Usage: EPS_TAYLOR 1.0E-15

Description: Target accuracy of the taylor expansion for the matrix functions, should normally be kept as is.

[Edit on GitHub]

GOLD_TARGET

Type: real
Default: 1.00000000E-002
Usage: GOLD_TARGET 0.1

Description: Target relative uncertainty in the location of the minimum for LINESEARCH GOLD

[Edit on GitHub]

IRAC_DEGREE

Type: integer
Default: 4
Usage: IRAC_DEGREE 4

Description: The refinement polynomial degree (2, 3 or 4).

[Edit on GitHub]

LINESEARCH

Type: enum
Default: 2PNT
Aliases: LINE_SEARCH
Usage: LINESEARCH GOLD

Description: 1D line search algorithm to be used with the OT minimizer, in increasing order of robustness and cost. MINIMIZER CG combined with LINESEARCH GOLD should always find an electronic minimum. Whereas the 2PNT minimizer is almost always OK, 3PNT might be needed for systems in which successive OT CG steps do not decrease the total energy.

Valid values:

  • ADAPT extrapolates usually based on 3 points, uses additional points on demand, very robust.

  • NONE always take steps of fixed length

  • 2PNT extrapolate based on 2 points

  • 3PNT extrapolate based on 3 points

  • GOLD perform 1D golden section search of the minimum (very expensive)

[Edit on GitHub]

MAX_IRAC

Type: integer
Default: 50
Usage: MAX_IRAC 5

Description: Maximum allowed refinement iteration.

[Edit on GitHub]

MAX_SCF_DIIS

Type: integer
Default: 0
Usage: MAX_SCF_DIIS 20

Description: Maximum DIIS SCF inner loop cycles. This can be used to extend SCF cycles after a switch to DIIS (see eps_diis).

[Edit on GitHub]

MAX_TAYLOR

Type: integer
Default: 4
Usage: MAX_TAYLOR 5

Description: Maximum order of the Taylor expansion before diagonalisation is preferred, for large parallel runs a slightly higher order could sometimes result in a small speedup.

[Edit on GitHub]

MINIMIZER

Type: enum
Default: CG
Usage: MINIMIZER DIIS

Description: Minimizer to be used with the OT method

Valid values:

  • SD Steepest descent: not recommended

  • CG Conjugate Gradients: most reliable, use for difficult systems. The total energy should decrease at every OT CG step if the line search is appropriate.

  • DIIS Direct inversion in the iterative subspace: less reliable than CG, but sometimes about 50% faster

  • BROYDEN Broyden mixing approximating the inverse Hessian

[Edit on GitHub]

NONDIAG_ENERGY

Type: logical
Default: F
Lone keyword: T
Usage: NONDIAG_ENERGY

Description: Add a non-diagonal energy penalty (FD smearing)

[Edit on GitHub]

NONDIAG_ENERGY_STRENGTH

Type: real
Default: 1.00000000E+000
Usage: NONDIAG_ENERGY_STRENGTH

Description: The prefactor for the non-diagonal energy penalty (FD smearing)

[Edit on GitHub]

N_HISTORY_VEC

Type: integer
Default: 7
Aliases: NDIIS, N_DIIS, N_BROYDEN
Usage: N_DIIS 4

Description: Number of history vectors to be used with DIIS or BROYDEN

[Edit on GitHub]

OCCUPATION_PRECONDITIONER

Type: logical
Default: F
Lone keyword: T
Usage: OCCUPATION_PRECONDITIONER

Description: Preconditioner with the occupation numbers (FD smearing)

[Edit on GitHub]

ON_THE_FLY_LOC

Type: logical
Default: F
Usage: ON_THE_FLY_LOC T

Description: On the fly localization of the molecular orbitals. Can only be used with OT/IRAC.

[Edit on GitHub]

ORTHO_IRAC

Type: enum
Default: CHOL
Usage: ORTHO_IRAC POLY

Description: The orthogonality method.

Valid values:

  • CHOL Cholesky.

  • POLY Polynomial.

  • LWDN Loewdin.

[Edit on GitHub]

PRECONDITIONER

Type: enum
Default: FULL_KINETIC
Usage: PRECONDITIONER FULL_ALL

Description: Type of preconditioner to be used with all minimization schemes. They differ in effectiveness, cost of construction, cost of application. Properly preconditioned minimization can be orders of magnitude faster than doing nothing.

Valid values:

  • FULL_ALL Most effective state selective preconditioner based on diagonalization, requires the ENERGY_GAP parameter to be an underestimate of the HOMO-LUMO gap. This preconditioner is recommended for almost all systems, except very large systems where make_preconditioner would dominate the total computational cost.

  • FULL_SINGLE_INVERSE Based on H-eS cholesky inversion, similar to FULL_SINGLE in preconditioning efficiency but cheaper to construct, might be somewhat less robust. Recommended for large systems.

  • FULL_SINGLE Based on H-eS diagonalisation, not as good as FULL_ALL, but somewhat cheaper to apply.

  • FULL_KINETIC Cholesky inversion of S and T, fast construction, robust, and relatively good, use for very large systems.

  • FULL_S_INVERSE Cholesky inversion of S, not as good as FULL_KINETIC, yet equally expensive.

  • NONE skip preconditioning

References: VandeVondele2003, Weber2008, Schiffmann2015

[Edit on GitHub]

PRECOND_SOLVER

Type: enum
Default: DEFAULT
Usage: PRECOND_SOLVER DIRECT

Description: How the preconditioner is applied to the residual.

Valid values:

  • DEFAULT the default

  • DIRECT Cholesky decomposition followed by triangular solve (works for FULL_KINETIC/SINGLE_INVERSE/S_INVERSE)

  • INVERSE_CHOLESKY Cholesky decomposition followed by explicit inversion (works for FULL_KINETIC/SINGLE_INVERSE/S_INVERSE)

  • INVERSE_UPDATE Performs a Hotelling update of the inverse if a previous preconditioner is present. Mainly useful for GPU accelerated systems (works for FULL_KINETIC/SINGLE_INVERSE/S_INVERSE)

[Edit on GitHub]

ROTATION

Type: logical
Default: F
Lone keyword: T
Usage: ROTATION

Description: Introduce additional variables so that rotations of the occupied subspace are allowed as well, only needed for cases where the energy is not invariant under a rotation of the occupied subspace such as non-singlet restricted calculations or fractional occupations.

[Edit on GitHub]

SAFE_DIIS

Type: logical
Default: T
Aliases: SAFER_DIIS
Usage: SAFE_DIIS ON

Description: Reject DIIS steps if they point away from the minimum, do SD in that case.

[Edit on GitHub]

STEPSIZE

Type: real
Default: -1.00000000E+000
Usage: STEPSIZE 0.4

Description: Initial stepsize used for the line search, sometimes this parameter can be reduced to stabilize DIIS or to improve the CG behavior in the first few steps. The optimal value depends on the quality of the preconditioner. A negative values leaves the choice to CP2K depending on the preconditioner.

[Edit on GitHub]