Skip to content

Commit

Permalink
Merge pull request #137 from tjstienstra/clarify-know-syms-in-objective
Browse files Browse the repository at this point in the history
Clarify that the objective should not contain any known symbols
  • Loading branch information
moorepants authored Mar 13, 2024
2 parents a8824e1 + 91f22cc commit 98b01ac
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions opty/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,9 +238,10 @@ def create_objective_function(
Parameters
----------
objective : sympy.Expr
The objective function to be minimized, which is a function of the
states and inputs. The objective function can contain non-nested
indefinite integrals of time, e.g. ``Integral(f(t)**2, t)``.
The objective function to be minimized. It should solely depend on the
states, inputs, and unknown symbols. Any known symbols should be
substituted beforehand. Additionally, the objective function can contain
non-nested indefinite integrals of time, e.g. ``Integral(f(t)**2, t)``.
state_symbols : iterable of symbols
The state variables.
input_symbols : iterable of symbols
Expand Down

0 comments on commit 98b01ac

Please sign in to comment.