Thank you very much! Now I get it<br /><br /><div class="gmail_quote"><div dir="auto" class="gmail_attr">Krack, Matthias schrieb am Mittwoch, 4. Februar 2026 um 18:31:49 UTC+1:<br/></div><blockquote class="gmail_quote" style="margin: 0 0 0 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div>
<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" target="_blank" rel="nofollow" data-saferedirecturl="https://www.google.com/url?hl=de&q=https://manual.cp2k.org/trunk/CP2K_INPUT/MOTION/GEO_OPT/LBFGS.html%23CP2K_INPUT.MOTION.GEO_OPT.LBFGS.TRUST_RADIUS&source=gmail&ust=1770372317425000&usg=AOvVaw3PA8RciDt3_9cnqbI_i5P_">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></div></div><div><div>
<div style="direction:ltr">
</div>
<div 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><a href data-email-masked rel="nofollow">cp...@googlegroups.com</a> <<a href data-email-masked rel="nofollow">cp...@googlegroups.com</a>> on behalf of Andreas Döll <<a href data-email-masked rel="nofollow">andreas...@gmail.com</a>><br>
<b>Date: </b>Wednesday, 4 February 2026 at 18:06<br>
<b>To: </b>cp2k <<a href data-email-masked rel="nofollow">cp...@googlegroups.com</a>><br>
<b>Subject: </b>[CP2K:22085] Geometric optimization vs L-BFGS criteria<br>
<br>
</div>
<div>Hello,</div>
<div style="direction:ltr">
<br>
</div>
<div>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 style="direction:ltr">
<br>
</div>
<div> ***********************************************<br>
* Specific L-BFGS convergence criteria<br>
* WANTED_PROJ_GRADIENT and WANTED_REL_F_ERROR<br>
* satisfied .... run CONVERGED!<br>
***********************************************</div>
<div style="direction:ltr">
<br>
</div>
<div>and it stops the optimization.</div>
<div style="direction:ltr">
<br>
</div>
<div>I found <a href="https://groups.google.com/g/cp2k/c/ERSHqK6yAHg/m/iQEhlX57AAAJ" target="_blank" rel="nofollow" data-saferedirecturl="https://www.google.com/url?hl=de&q=https://groups.google.com/g/cp2k/c/ERSHqK6yAHg/m/iQEhlX57AAAJ&source=gmail&ust=1770372317425000&usg=AOvVaw1c_pnfQxcDTgLhp9N0bca5">https://groups.google.com/g/cp2k/c/ERSHqK6yAHg/m/iQEhlX57AAAJ</a> 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 style="direction:ltr">
<br>
</div>
<div>Cheers, </div>
<div>Andreas</div>
</div></div><div><div><div>--<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 data-email-masked rel="nofollow">
cp2k+uns...@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" target="_blank" rel="nofollow" data-saferedirecturl="https://www.google.com/url?hl=de&q=https://groups.google.com/d/msgid/cp2k/f1495f1c-4534-4475-9cb3-07256b928293n%2540googlegroups.com?utm_medium%3Demail%26utm_source%3Dfooter&source=gmail&ust=1770372317425000&usg=AOvVaw0X0J5_RSGM8TxxW2UX3Ndz">
https://groups.google.com/d/msgid/cp2k/f1495f1c-4534-4475-9cb3-07256b928293n%40googlegroups.com</a>.</div>
</div>
</div>
</blockquote></div>
<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/dcb0c998-92fe-4f25-9b12-208e6ff2c5d9n%40googlegroups.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/cp2k/dcb0c998-92fe-4f25-9b12-208e6ff2c5d9n%40googlegroups.com</a>.<br />