Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify that the objective should not contain any known symbols #137

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading