CTFlowsODE
Index
CTFlowsODE.AbstractFlow
CTFlowsODE.CoTangent
CTFlowsODE.DCoTangent
CTFlowsODE.__autonomous
CTFlowsODE.__create_hamiltonian
CTFlowsODE.__variable
CTFlowsODE.ctgradient
CTFlowsODE.rg
In the examples in the documentation below, the methods are not prefixed by the module name even if they are private.
julia> using CTFlows
julia> x = 1
julia> private_fun(x) # throw an error
must be replaced by
julia> using CTFlows
julia> x = 1
julia> CTFlows.private_fun(x)
However, if the method is reexported by another package, then, there is no need of prefixing.
julia> module OptimalControl
import CTFlows: private_fun
export private_fun
end
julia> using OptimalControl
julia> x = 1
julia> private_fun(x)
Documentation
CTFlowsODE.CoTangent
— TypeAlias for CTFlows.ctVector
, representing cotangent vectors in continuous-time systems.
Used for denoting adjoint states or costates in optimal control formulations.
CTFlowsODE.DCoTangent
— TypeAlias for CTFlows.ctVector
, representing derivative cotangent vectors.
Useful in contexts where second-order information or directional derivatives of costates are required.
CTFlowsODE.AbstractFlow
— TypeAbstract supertype for continuous-time flows.
AbstractFlow{D,U}
defines the interface for any flow system with:
D
: the type of the differential (typically a vector or matrix),U
: the type of the state variable.
Subtypes should define at least a right-hand side function for the system's dynamics.
CTFlowsODE.__autonomous
— FunctionAlias for CTFlows.__autonomous
, a tag indicating that a flow is autonomous.
Used internally to specify behavior in constructors or when composing flows.
CTFlowsODE.__create_hamiltonian
— FunctionAlias for CTFlows.__create_hamiltonian
.
Constructs the Hamiltonian function for a given continuous-time optimal control problem. This internal function typically takes an objective, dynamics, and control constraints.
CTFlowsODE.__variable
— FunctionAlias for CTFlows.__variable
, a tag indicating that a flow depends on external variables or is non-autonomous.
Used to distinguish time-dependent systems or flows with control/state parameterization.
CTFlowsODE.ctgradient
— FunctionAlias for CTFlows.ctgradient
, a method to compute the gradient of a scalar function with respect to a state.
It dispatches appropriately depending on whether the input is a scalar or a vector, and uses ForwardDiff.jl
.
CTFlowsODE.rg
— MethodCreates a range i:j
, unless i == j
, in which case returns i
as an integer.
Useful when indexing or slicing arrays with optional single-element flexibility.