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

improved HTML rendering #305

Merged
merged 1 commit into from
Jan 22, 2025
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
22 changes: 11 additions & 11 deletions opty/direct_collocation.py
Original file line number Diff line number Diff line change
Expand Up @@ -601,21 +601,12 @@ def parse_free(self, free):
"""Parses the free parameters vector and returns it's components.

Parameters
----------
==========
free : ndarray, shape(n*N + q*N + r + s)
The free parameters of the system.

where:

- N : number of collocation nodes
- n : number of unknown state trajectories
- q : number of unknown input trajectories
- r : number of unknown parameters
- s : number of unknown time intervals (s=1 if variable duration, else s=0)


Returns
-------
=======
states : ndarray, shape(n, N)
The array of n states through N time steps.
specified_values : ndarray, shape(q, N) or shape(N,), or None
Expand All @@ -626,6 +617,15 @@ def parse_free(self, free):
The time between collocation nodes. Only returned if
``variable_duration`` is ``True``.

Notes
=====

- N : number of collocation nodes
- n : number of unknown state trajectories
- q : number of unknown input trajectories
- r : number of unknown parameters
- s : number of unknown time intervals (s=1 if ``variable duration`` is ``True`` else s=0)

"""

n = self.collocator.num_states
Expand Down
Loading