5.15.9. minimizer.pclm

eminus.minimizer.pclm(scf, Nit, cost=scf_step, grad=get_grad, condition=check_convergence, betat=3e-5, precondition=True, **kwargs)[source]

Preconditioned line minimization algorithm.

Parameters:
  • scf – SCF object.

  • Nit – Maximum number of SCF steps.

Keyword Arguments:
  • cost – Function that will run every SCF step.

  • grad – Function that calculates the respective gradient.

  • condition – Function to check and log the convergence condition.

  • betat – Step size.

  • precondition – Whether to use a preconditioner.

  • **kwargs – Throwaway arguments.

Returns:

Total energies per SCF cycle.