Skip to content

Commit e362734

Browse files
committed
wip: linear constraint for stochastic defect
1 parent c06273f commit e362734

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

src/controller/transcription.jl

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -704,6 +704,33 @@ function init_defectmat(
704704
return Eŝ, Gŝ, Jŝ, Kŝ, Vŝ, Bŝ
705705
end
706706

707+
function init_defectmat(
708+
model::NonLinModel, estim::StateEstimator{NT}, transcription::CollocationMethod, Hp, Hc, _
709+
)
710+
711+
end
712+
713+
"""
714+
init_defectmat(
715+
model::NonLinModel, estim::IntenalModel{NT}, transcription::CollocationMethod, Hp, Hc, _
716+
) -> Eŝ, Gŝ, Jŝ, Kŝ, Vŝ, Bŝ
717+
718+
Return empty matrices for [`InternalModel`](@ref) (state vector is not augmented).
719+
"""
720+
function init_defectmat(
721+
model::NonLinModel, estim::IntenalModel{NT}, transcription::CollocationMethod, Hp, Hc, _
722+
) where {NT<:Real}
723+
nx̂, nu, nd = estim.nx̂, model.nu, model.nd
724+
nZ = get_nZ(estim, transcription, Hp, Hc)
725+
Eŝ = zeros(NT, 0, nZ)
726+
Gŝ = zeros(NT, 0, nd)
727+
Jŝ = zeros(NT, 0, nd*Hp)
728+
Kŝ = zeros(NT, 0, nx̂)
729+
Vŝ = zeros(NT, 0, nu)
730+
Bŝ = zeros(NT, 0)
731+
return Eŝ, Gŝ, Jŝ, Kŝ, Vŝ, Bŝ
732+
end
733+
707734
"""
708735
init_defectmat(
709736
model::SimModel, estim, transcription::TranscriptionMethod, Hp, Hc, nb

0 commit comments

Comments
 (0)