We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b3452f commit 4849a4bCopy full SHA for 4849a4b
aerosandbox/optimization/opti.py
@@ -564,7 +564,7 @@ def solve(
564
parameter_mapping: dict[cas.MX, float] | None = None,
565
max_iter: int = 1000,
566
max_runtime: float = 1e20,
567
- callback: Callable[[int], Any] = None,
+ callback: Callable[[int], Any] | None = None,
568
verbose: bool = True,
569
jit: bool = False, # TODO document, add unit tests for jit
570
detect_simple_bounds: bool = False, # TODO document
@@ -1143,7 +1143,7 @@ def constrain_derivative(
1143
with_respect_to: np.ndarray | cas.MX,
1144
method: str = "trapezoidal",
1145
_stacklevel: int = 1,
1146
- ) -> None:
+ ) -> cas.MX | None | list[cas.MX]:
1147
"""
1148
Adds a constraint to the optimization problem such that:
1149
0 commit comments