mirror of
https://github.com/QuantumPackage/qp2.git
synced 2025-04-25 17:54:44 +02:00
Change for Powell in geom_opt
This commit is contained in:
parent
1775df957c
commit
ad0c807a53
@ -107,7 +107,16 @@ def optimize_geometry(file, state, arguments):
|
|||||||
else:
|
else:
|
||||||
tolerance = 1.e-3
|
tolerance = 1.e-3
|
||||||
|
|
||||||
result = minimize(energy_function, x0, args=(file, state, arguments), method='BFGS', jac=None, tol=tolerance, options={'eps': 1.e-3})
|
result = minimize(energy_function, x0, args=(file, state, arguments),
|
||||||
|
method='Powell',
|
||||||
|
tol=tolerance,
|
||||||
|
options={'xtol': tolerance, 'ftol': tolerance})
|
||||||
|
|
||||||
|
# result = minimize(energy_function, x0, args=(file, state, arguments),
|
||||||
|
# method='BFGS',
|
||||||
|
# jac=None,
|
||||||
|
# tol=tolerance,
|
||||||
|
# options={'eps': 1.e-3})
|
||||||
|
|
||||||
if result.success:
|
if result.success:
|
||||||
print("Optimization successful!")
|
print("Optimization successful!")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user