Skip to content

Commit 1d5eb31

Browse files
committed
tighter BFGS convergence criteria
1 parent 80402c7 commit 1d5eb31

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎kinbot/modify_geom.py‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,10 @@ def modify_coordinates(species, name, geom, changes, bond, write_files=0):
202202
gs += '{}, {:.8f}, {:.8f}, {:.8f}, \n'.format(at, x, y, z)
203203
logger.debug("For the following initial geometry:\n" + gs)
204204

205-
opt = bfgs.BFGS()
205+
# step_tol=1E-7, grad_tol=1E-7, line_tol=1E-10,
206+
# inhess=None, max_step=100, max_lin_step=1000,
207+
# use_grad_tol=1, use_step_tol=1
208+
opt = bfgs.BFGS(step_tol=1E-12, grad_tol=1E-12)
206209
x_opt, x_i, g_i = opt.optimize(cost_fct, x0)
207210

208211
new_geom = np.reshape(x_opt, (species.natom, 3))

0 commit comments

Comments
 (0)