Skip to content

Commit 78292bd

Browse files
committed
doc: minor modification
1 parent 3726017 commit 78292bd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/controller/construct.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ Get move blocking vector `nb` and actual control horizon from `Hp` and `Hc` argu
465465
The argument `Hc` is in fact the move blocking vector `nb` provided by the user. The `nb`
466466
vector is modified in these two cases:
467467
468-
- If `sum(nb) < Hp`, a new element is added to `nb` with the value `Hp - sum(nb)`.
468+
- If `sum(nb) < Hp`, a new element is pushed to `nb` with the value `Hp - sum(nb)`.
469469
- If `sum(nb) > Hp`, the intervals are truncated until the sum is `Hp`. For example, if
470470
`Hp = 10` and `nb = [1, 2, 3, 6, 7]`, then `nb` is truncated to `[1, 2, 3, 4]`.
471471
"""

src/controller/transcription.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ function init_ZtoU(
176176
return Pu, Tu
177177
end
178178

179-
init_PUmat( _ , transcription::SingleShooting, _ , _ , PUdagger) = PUdagger
179+
init_PUmat( _ , ::SingleShooting, _ , _ , PUdagger) = PUdagger
180180
function init_PUmat(estim, ::MultipleShooting, Hp, _ , PUdagger)
181181
return [PUdagger zeros(eltype(PUdagger), estim.model.nu*Hp, estim.nx̂*Hp)]
182182
end

0 commit comments

Comments
 (0)