[CP2K-user] [CP2K:17374] Geometry Optimization with Brent's Algorithm: CP2K and VASP

Krack Matthias (PSI) matthias.krack at psi.ch
Mon Jul 25 15:58:48 UTC 2022


Hi Nick

Such convergence problems are usually caused by noisy forces and/or a very flat PES. Did you also try a smaller trust radius (e.g. 0.1) and/or rational function optimization with BFGS?

Matthias

From: "cp2k at googlegroups.com" <cp2k at googlegroups.com> on behalf of Nicholas Winner <nwinner at berkeley.edu>
Reply to: "cp2k at googlegroups.com" <cp2k at googlegroups.com>
Date: Sunday, 24 July 2022 at 21:29
To: "cp2k at googlegroups.com" <cp2k at googlegroups.com>
Subject: Re: [CP2K:17365] Geometry Optimization with Brent's Algorithm: CP2K and VASP

Hi Matthias, normally I use BFGS.  In my case of an adsorbate on metal, BFGS just hops around the minimum with no clear progress. CG (2pnt) does slowly work toward the minimum which is why I switched to it, its just slower.

I disabled USE_MODEL_HESSIAN and the convergence become much worse.

Still looking at some variations of the settings in "GOLD" line search to match Filipe's recommendation, but to no avail. So, so far, 2 point line search seems the best option, but there's something better hiding in the settings I can feel.
On Friday, July 22, 2022 at 3:44:39 AM UTC-7 Matthias Krack wrote:
Hi Nick

According to my experience BFGS works best (fastest) in GEO_OPT and CELL_OPT runs. I suggest to disable the default USE_MODEL_HESSIAN with BFGS. For larger systems (>3000 atoms), I suggest LBFGS.

Matthias

From: "cp... at googlegroups.com" <cp... at googlegroups.com> on behalf of Nicholas Winner <nwi... at berkeley.edu>
Reply to: "cp... at googlegroups.com" <cp... at googlegroups.com>
Date: Friday, 22 July 2022 at 01:13
To: "cp... at googlegroups.com" <cp... at googlegroups.com>
Subject: [CP2K:17348] Geometry Optimization with Brent's Algorithm: CP2K and VASP

Hi all,

I'm working with some people that are using VASP while I am using CP2K. While CP2K has really fast SCF procedure, it seems to be slower when it comes to geometry optimization for some reason.

I've dug into VASP's manual and they claim that their CG method uses "a modified version of Brent's algorithm." No further details are given. Normally with CP2K, I use 2PNT line search with my CG minimizations, and I think this is pretty standard for everyone else. I do know that CP2K supports FIT and GOLD line search options which use Brent's algorithm (actually I don't 100% know how FIT and Brent's Algorithm are related, but gold uses it at least). However, GOLD line search is very slow in CP2K, as we are warned in the manual.

So, my hunch, is that CP2K with some type of gold or fit line search would be able to match this "modified Brent's algorithm" and provide faster minimization than what I am currently getting. Are there some insights that people can provide for choosing settings for gold line search that can give decent results? To remind, the flags we have to play with are:

BRACK_LIMIT {Real}
Limit in 1D bracketing during line search in Conjugate Gradients Optimization.
Default value: 1.00000000E+002


BRENT_MAX_ITER {Integer}
Maximum number of iterations in brent algorithm (used for the line search in Conjugated Gradients Optimization)
Default value: 100

BRENT_TOL {Real}
Tolerance requested during Brent line search in Conjugate Gradients Optimization.
Default value: 1.00000000E-002

INITIAL_STEP {Real}
Initial step size used, e.g. for bracketing or minimizers. Might need to be reduced for systems with close contacts
Default value: 2.00000000E-001

Could it be that VASP uses a loose value for BRENT_TOL, or maybe a small number of max steps? Furthermore, what is the tolerance in the algorithm? Tolerance for the atomic position refinement, or forces?


If anyone has any ideas, it would be much appreciated.

-Nick
--
You received this message because you are subscribed to the Google Groups "cp2k" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cp2k+uns... at googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cp2k/c3f8726c-7587-4240-8e97-c2a97f3ebdafn%40googlegroups.com<https://groups.google.com/d/msgid/cp2k/c3f8726c-7587-4240-8e97-c2a97f3ebdafn%40googlegroups.com?utm_medium=email&utm_source=footer>.
--
You received this message because you are subscribed to the Google Groups "cp2k" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cp2k+unsubscribe at googlegroups.com<mailto:cp2k+unsubscribe at googlegroups.com>.
To view this discussion on the web visit https://groups.google.com/d/msgid/cp2k/b4d40576-d050-4d64-944c-37d9aad53ae5n%40googlegroups.com<https://groups.google.com/d/msgid/cp2k/b4d40576-d050-4d64-944c-37d9aad53ae5n%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
You received this message because you are subscribed to the Google Groups "cp2k" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cp2k+unsubscribe at googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cp2k/2C3EB3EE-4A6F-43B2-92DC-4913F48CF9EA%40psi.ch.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cp2k.org/archives/cp2k-user/attachments/20220725/47f0c580/attachment-0001.htm>


More information about the CP2K-user mailing list