Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
liwt31 committed Jan 10, 2024
1 parent c00ca70 commit 08b2794
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: ci
on: [push, pull_request]
permissions:
contents: write
jobs:
test:
runs-on: ubuntu-latest
Expand Down
26 changes: 26 additions & 0 deletions tencirchem/utils/optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,32 @@


def soap(fun, x0, args=(), maxfev=2000, callback=None, **kwargs):
"""
Scipy Optimizer interface for sequantial optimization with
approximate parabola (SOAP)
Parameters
----------
fun : callable ``f(x, *args)``
Function to be optimized.
x0 : ndarray, shape (n,)
Initial guess. Array of real elements of size (n,),
where 'n' is the number of independent variables.
args : tuple, optional
Extra arguments passed to the objective function.
maxfev : int
Maximum number of function evaluations to perform.
Default: 2000.
callback : callable, optional
Called after each iteration.
Returns
-------
res : OptimizeResult
The optimization result represented as a SciPy ``OptimizeResult`` object.
Important attributes are: ``x`` the solution array.
"""

nfev = 0
nit = 0

Expand Down

0 comments on commit 08b2794

Please sign in to comment.