Skip to content

Commit

Permalink
testsing doctrings
Browse files Browse the repository at this point in the history
  • Loading branch information
waldemar-martens committed Jan 31, 2025
1 parent 2ce78d6 commit 6b1e42f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyoptgra/optgra.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ def __init__(
optimization_method: int = 2,
log_level: int = 0,
) -> None:
"""
r"""
Initialize a wrapper instance for the OPTGRA algorithm.
Some of the construction arguments, for example the scaling factors, depend on the dimension
Expand Down Expand Up @@ -413,7 +413,7 @@ def __init__(
satisfied, but the gradients near the bounds approach zero. By default False.
Pyoptgra uses a variant of the above method that additionally scales the
argument of the :math:`\sin` function such that the derivatives
:math:`\frac{x_{Khan}}{x}` are unity in the center of the box bounds.
:math:`\frac{d x_{Khan}}{d x}` are unity in the center of the box bounds.
optimization_method: select 0 for steepest descent, 1 for modified spectral conjugate
gradient method, 2 for spectral conjugate gradient method and 3 for conjugate
gradient method
Expand Down

0 comments on commit 6b1e42f

Please sign in to comment.