Skip to content

Commit

Permalink
corrected signature
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter230655 committed Jan 20, 2025
1 parent 790d9c0 commit 673b9b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions opty/direct_collocation.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def __init__(self, obj, obj_grad, equations_of_motion, state_symbols,

# this is added only to correct the docstring, which is a bit different with
# opty compared to cyipopt.
def solve(self, free):
def solve(self, free, lagrange=[], zl=[], zu=[]):
"""Returns the optimal solution and an info dictionary.
Solves the posed optimization problem starting at point x.
Expand Down Expand Up @@ -243,7 +243,7 @@ def solve(self, free):
"""

return super().solve(free)
return super().solve(free, lagrange=[], zl=[], zu=[])

def _generate_bound_arrays(self):
lb = -self.INF * np.ones(self.num_free)
Expand Down

0 comments on commit 673b9b0

Please sign in to comment.