Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Quantum Tinkerer
miniff
Commits
e4e98846
Commit
e4e98846
authored
Dec 27, 2021
by
Artem Pulkin
Browse files
minimize: accept string methods in openmx
parent
b72c9804
Pipeline
#87039
failed with stages
in 14 minutes and 13 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
miniff/minimize.py
View file @
e4e98846
...
...
@@ -355,11 +355,19 @@ def minimize_openmx(f, x0, jac, qn_method=None, qn_kwargs=None, sd_method=None,
if
qn_method
is
None
:
qn_method
=
minimize_ase
qn_kwargs
=
{
"method"
:
"BFGSLineSearch"
,
**
qn_kwargs
}
elif
qn_method
==
"ase"
:
qn_method
=
minimize_ase
elif
qn_method
==
"scipy"
:
qn_method
=
minimize_scipy
sd_kwargs
=
{
"fun_budget"
:
sd_steps
,
**
kwargs
,
**
sd_kwargs
}
if
sd_method
is
None
:
sd_method
=
minimize_ase
sd_kwargs
=
{
"method"
:
"FIRE"
,
**
sd_kwargs
}
elif
sd_method
==
"ase"
:
sd_method
=
minimize_ase
elif
sd_method
==
"scipy"
:
sd_method
=
minimize_scipy
if
stability_checker
is
None
:
stability_checker
=
descending_trend
(
10
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment