Skip to content

Commit

Permalink
Doc: IpoptOptimizer (#1543)
Browse files Browse the repository at this point in the history
Fix incorrect package URL. Link available options.
  • Loading branch information
dweindl authored Jan 8, 2025
1 parent e31852b commit 7c89cd2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pypesto/optimize/optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ def get_default_options(self):


class IpoptOptimizer(Optimizer):
"""Use IpOpt (https://pypi.org/project/ipopt/) for optimization."""
"""Use Ipopt (https://pypi.org/project/cyipopt/) for optimization."""

def __init__(self, options: dict = None):
"""
Expand All @@ -560,6 +560,9 @@ def __init__(self, options: dict = None):
options:
Options are directly passed on to `cyipopt.minimize_ipopt`, except
for the `approx_grad` option, which is handled separately.
For a list of available options, see the Ipopt documentation
(https://coin-or.github.io/Ipopt/OPTIONS.html).
"""
super().__init__()
self.approx_grad = False
Expand Down Expand Up @@ -599,7 +602,7 @@ def minimize(
jac = objective.get_grad
else:
raise ValueError(
"For IPOPT, the objective must either be able to return "
"For Ipopt, the objective must either be able to return "
"gradients or the `approx_grad` must be set to True."
)

Expand Down

0 comments on commit 7c89cd2

Please sign in to comment.