Skip to content

Commit d7638b4

Browse files
committed
doc: clarification on possible plant-model mismatch with nh=1
1 parent 43d324b commit d7638b4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/controller/transcription.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@ Construct an implicit trapezoidal [`TranscriptionMethod`](@ref) with `nh`th orde
7171
This is the simplest collocation method. It supports continuous-time [`NonLinModel`](@ref)s
7272
only. The decision variables are the same as for [`MultipleShooting`](@ref), hence similar
7373
computational costs. The `nh` argument is `0` or `1`, for piecewise constant or linear
74-
manipulated inputs ``\mathbf{u}`` (`1` is slightly less computationally expensive).
74+
manipulated inputs ``\mathbf{u}`` (`nh=1` is slightly less expensive). Note that the various
75+
[`DiffSolver`](@ref) assume zero-order hold, so `nh=1` will induce a mismatch if the plant
76+
is simulated using these solvers.
7577
7678
This transcription computes the predictions by calling the continuous-time model in the
7779
equality constraint function and by using the implicit trapezoidal rule. It can handle

0 commit comments

Comments
 (0)