File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 129129Construct an orthogonal collocation on finite elements [`TranscriptionMethod`](@ref).
130130
131131Also known as pseudo-spectral method. It supports continuous-time [`NonLinModel`](@ref)s
132- only. The `h` argument is the hold order for ``\m athbf{u}``, and the `no` argument, the
133- number of collocation points ``n_o``. The decision variable is similar to [`MultipleShooting`](@ref),
134- but it also includes the collocation points:
132+ only. The `h` argument is the hold order for ``\m athbf{u}`` (`0` or `1`) , and the `no`
133+ argument, the number of collocation points ``n_o``. The decision variable is similar to
134+ [`MultipleShooting`](@ref), but it also includes the collocation points:
135135```math
136136\m athbf{Z} = \b egin{bmatrix} \m athbf{ΔU} \\ \m athbf{X̂_0} \\ \m athbf{K} \e nd{bmatrix}
137137```
Original file line number Diff line number Diff line change @@ -877,10 +877,11 @@ end
877877 @test isa (nmpc15. optim, JuMP. GenericModel{Float64}) # Ipopt does not support Float32
878878
879879 @test_throws ArgumentError NonLinMPC (nonlinmodel)
880- @test_throws ArgumentError NonLinMPC (nonlinmodel, Hp= 2 , transcription= TrapezoidalCollocation ())
881- @test_throws ArgumentError NonLinMPC (nonlinmodel, Hp= 2 , transcription= TrapezoidalCollocation (2 ))
882880 @test_throws ArgumentError NonLinMPC (nonlinmodel, Hp= 2 , Wy= [1 0 ;0 1 ])
881+ @test_throws ArgumentError NonLinMPC (nonlinmodel, Hp= 2 , transcription= TrapezoidalCollocation ())
882+ @test_throws ArgumentError TrapezoidalCollocation (2 )
883883 @test_throws ArgumentError OrthogonalCollocation (roots= :gausslobatto )
884+ @test_throws ArgumentError OrthogonalCollocation (2 )
884885end
885886
886887@testitem " NonLinMPC moves and getinfo (LinModel)" setup= [SetupMPCtests] begin
You can’t perform that action at this time.
0 commit comments