Compute trajectory between an initial and final conditions.
Compute a feasible trajectory for a differentially flat system between an initial condition and a final condition.
FlatSystem
object
Description of the differentially flat system. This object must define a function forward
that takes the system state and produces the flag of flat outputs and a function reverse
that takes the flag of the flat output and produces the state and input.
The list of points for evaluating cost and constraints, as well as the time horizon. If given as a float, indicates the final time for the trajectory (corresponding to xf)
Initial state for the system. Defaults to zero.
Initial input for the system. Defaults to zero.
Final state for the system. Defaults to zero.
Final input for the system. Defaults to zero.
The initial time for the trajectory (corresponding to x0). If not specified, its value is taken to be zero.
BasisFamily
object, optional
The basis functions to use for generating the trajectory. If not specified, the PolyFamily
basis family will be used, with the minimal number of elements required to find a feasible trajectory (twice the number of system states)
Function that returns the integral cost given the current state and input. Called as integral_cost(x, u)
.
List of constraints that should hold at each point in the time vector. Each element of the list should consist of a tuple with first element given by scipy.optimize.LinearConstraint
or scipy.optimize.NonlinearConstraint
and the remaining elements of the tuple are the arguments that would be passed to those functions. The following tuples are supported:
(LinearConstraint, A, lb, ub): The matrix A is multiplied by stacked vector of the state and input at each point on the trajectory for comparison against the upper and lower bounds.
(NonlinearConstraint, fun, lb, ub): a user-specific constraint function fun(x, u)
is called at each point along the trajectory and compared against the upper and lower bounds.
The constraints are applied at each time point along the trajectory.
Initial guess for the trajectory coefficients (not implemented).
Parameter values for the system. Passed to the evaluation functions for the system as default values, overriding internal defaults.
SystemTrajectory
object
The system trajectory is returned as an object that implements the eval
function, we can be used to compute the value of the state and input and a given time t.
Set the method used by scipy.optimize.minimize
.
Set the options keyword used by scipy.optimize.minimize
.
Pass additional keywords to scipy.optimize.minimize
.
Notes
Additional keyword parameters can be used to fine tune the behavior of the underlying optimization function. See minimize_*
keywords in OptimalControlProblem
for more information.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4