From 7c89cd27c4d471b78a70a6d0cff09a695471c483 Mon Sep 17 00:00:00 2001 From: Daniel Weindl Date: Wed, 8 Jan 2025 11:26:23 +0100 Subject: [PATCH] Doc: IpoptOptimizer (#1543) Fix incorrect package URL. Link available options. --- pypesto/optimize/optimizer.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pypesto/optimize/optimizer.py b/pypesto/optimize/optimizer.py index 659303aed..7a6d83488 100644 --- a/pypesto/optimize/optimizer.py +++ b/pypesto/optimize/optimizer.py @@ -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): """ @@ -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 @@ -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." )