You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If $g = 0$, the cost is said to be in **Lagrange form**; if $f^0 = 0$, it is in **Mayer form**.
72
+
73
+
### Free times and extra variables
74
+
75
+
The initial time $t_0$ and the final time $t_f$ may also be free, that is part of the optimisation variables:
76
+
77
+
```math
78
+
J(x, u, t_0, t_f) \to \min.
79
+
```
80
+
81
+
More generally, a vector $v \in \mathbb{R}^k$ of $k$ additional variables can be introduced (it may contain $t_0$, $t_f$, or any other free parameter). The cost, dynamics, and constraints then all depend on $v$:
Copy file name to clipboardExpand all lines: docs/src/manual-initial-guess.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -565,7 +565,7 @@ nothing # hide
565
565
566
566
!!! tip "Interactions with an optimal control solution"
567
567
568
-
Please check [`state`](@ref), [`costate`](@ref), [`control`](@ref) and [`variable`](@ref variable(::Solution)) to get data from the solution. The functions `state`, `costate` and `control` return functions of time and `variable` returns a vector.
568
+
Please check [`state`](@ref), [`costate`](@ref), [`control`](@ref) and [`variable`](@ref CTModels.OCP.variable) to get data from the solution. The functions `state`, `costate` and `control` return functions of time and `variable` returns a vector.
0 commit comments