<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<div style="direction: ltr; font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hi Andreas</div>
<div style="direction: ltr; font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="direction: ltr; font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
You can try to add  <a href="https://manual.cp2k.org/trunk/CP2K_INPUT/MOTION/GEO_OPT/LBFGS.html#CP2K_INPUT.MOTION.GEO_OPT.LBFGS.TRUST_RADIUS" data-outlook-id="617ad9b4-3c68-466f-9dd8-45f2c8490379">TRUST_RADIUS 0.1</a> in the &LBFGS section or increase MAX_H_RANK
 to 10 or more.</div>
<div style="direction: ltr; font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
If the system is not too large, you can also resort to BFGS which is more robust.</div>
<div style="direction: ltr; font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="direction: ltr; font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
HTH</div>
<div style="direction: ltr; font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="direction: ltr; font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Matthias</div>
<div style="direction: ltr; font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="mail-editor-reference-message-container">
<div class="ms-outlook-mobile-reference-message skipProofing" style="direction: ltr;">
</div>
<div class="ms-outlook-mobile-reference-message skipProofing" style="text-align: left; padding: 3pt 0in 0in; border-width: 1pt medium medium; border-style: solid none none; border-color: rgb(181, 196, 223) currentcolor currentcolor; font-family: Aptos; font-size: 12pt; color: black;">
<b>From: </b>cp2k@googlegroups.com <cp2k@googlegroups.com> on behalf of Andreas Döll <andreasm.doell@gmail.com><br>
<b>Date: </b>Wednesday, 4 February 2026 at 18:06<br>
<b>To: </b>cp2k <cp2k@googlegroups.com><br>
<b>Subject: </b>[CP2K:22085] Geometric optimization vs L-BFGS criteria<br>
<br>
</div>
<div class="ms-outlook-mobile-reference-message skipProofing">Hello,</div>
<div class="ms-outlook-mobile-reference-message skipProofing" style="direction: ltr;">
<br>
</div>
<div class="ms-outlook-mobile-reference-message skipProofing">I have the exact same script, but with different molecules and I am doing geometric optimization. One time it says Geometric optimization completed as usual, but for the other xyz file it says before
 reaching all convergence criteria at an optimization step (Max grad not converged) </div>
<div class="ms-outlook-mobile-reference-message skipProofing" style="direction: ltr;">
<br>
</div>
<div class="ms-outlook-mobile-reference-message skipProofing"> ***********************************************<br>
 * Specific L-BFGS convergence criteria<br>
 * WANTED_PROJ_GRADIENT and WANTED_REL_F_ERROR<br>
 * satisfied .... run CONVERGED!<br>
 ***********************************************</div>
<div class="ms-outlook-mobile-reference-message skipProofing" style="direction: ltr;">
<br>
</div>
<div class="ms-outlook-mobile-reference-message skipProofing">and it stops the optimization.</div>
<div class="ms-outlook-mobile-reference-message skipProofing" style="direction: ltr;">
<br>
</div>
<div class="ms-outlook-mobile-reference-message skipProofing">I found https://groups.google.com/g/cp2k/c/ERSHqK6yAHg/m/iQEhlX57AAAJ where "Tomas Kuehne" explains that LBFGS optimizer is working as intended and does not use RMS/MAX values, but what can I change
 to reach my geo opt criterion before the optimizer terminates? Just making other geo opt criteria tighter should lead to the desired result? Anything else?</div>
<div class="ms-outlook-mobile-reference-message skipProofing" style="direction: ltr;">
<br>
</div>
<div class="ms-outlook-mobile-reference-message skipProofing">Cheers, </div>
<div class="ms-outlook-mobile-reference-message skipProofing">Andreas</div>
<div class="ms-outlook-mobile-reference-message skipProofing">--<br>
You received this message because you are subscribed to the Google Groups "cp2k" group.<br>
To unsubscribe from this group and stop receiving emails from it, send an email to
<a href="mailto:cp2k+unsubscribe@googlegroups.com" data-outlook-id="4ed4bb01-d53f-4ebf-a41d-79957c2ce768">
cp2k+unsubscribe@googlegroups.com</a>.<br>
To view this discussion visit <a href="https://groups.google.com/d/msgid/cp2k/f1495f1c-4534-4475-9cb3-07256b928293n%40googlegroups.com?utm_medium=email&utm_source=footer" data-outlook-id="56cebe68-0a7c-426f-acc4-88160e8fb287">
https://groups.google.com/d/msgid/cp2k/f1495f1c-4534-4475-9cb3-07256b928293n%40googlegroups.com</a>.</div>
</div>
</body>
</html>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups "cp2k" group.<br />
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:cp2k+unsubscribe@googlegroups.com">cp2k+unsubscribe@googlegroups.com</a>.<br />
To view this discussion visit <a href="https://groups.google.com/d/msgid/cp2k/ZR2P278MB1146A36DC7301E871143E33BF498A%40ZR2P278MB1146.CHEP278.PROD.OUTLOOK.COM?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/cp2k/ZR2P278MB1146A36DC7301E871143E33BF498A%40ZR2P278MB1146.CHEP278.PROD.OUTLOOK.COM</a>.<br />