709709
710710@doc raw """
711711 init_defectmat(
712- model::SimModel, ::StateEstimator, ::TranscriptionMethod, Hp, Hc, _
712+ model::SimModel, estim ::StateEstimator, ::TranscriptionMethod, Hp, Hc, _
713713 ) -> ES, GS, JS, KS, VS, BS
714714
715715Init the matrices for computing the defects of the stochastic states only.
@@ -751,7 +751,8 @@ The matrices ``\mathbf{E_S}`` and ``\mathbf{K_S}`` are defined in the Extended H
751751 - else ``\m athbf{E_S} = [\b egin{smallmatrix} \m athbf{E_{S}^{Δu}} & \m athbf{E_{S}^{x̂}} \e nd{smallmatrix}]``
752752"""
753753function init_defectmat (
754- model:: SimModel , estim:: StateEstimator{NT} , transcription:: TranscriptionMethod , Hp, Hc, _
754+ model:: SimModel , estim:: StateEstimator{NT} , transcription:: TranscriptionMethod ,
755+ Hp, Hc, _
755756) where {NT<: Real }
756757 nu, nx, nd, nx̂, nxs = model. nu, model. nx, model. nd, estim. nx̂, estim. nxs
757758 nZ = get_nZ (estim, transcription, Hp, Hc)
@@ -780,20 +781,20 @@ end
780781
781782"""
782783 init_defectmat(
783- model::SimModel , estim::InternalModel, ::TranscriptionMethod, Hp, Hc, _
784+ model::NonLinModel , estim::InternalModel, ::TranscriptionMethod, Hp, Hc, _
784785 ) -> ES, GS, JS, KS, VS, BS
785786
786787Return empty matrices for [`InternalModel`](@ref) (the state vector is not augmented).
787788"""
788789function init_defectmat (
789- :: SimModel , estim:: InternalModel , transcription:: TranscriptionMethod , Hp, Hc, _
790+ :: NonLinModel , estim:: InternalModel , transcription:: TranscriptionMethod , Hp, Hc, _
790791)
791792 return init_defectmat_empty (estim, transcription, Hp, Hc)
792793end
793794
794795"""
795796 init_defectmat(
796- model::SimModel, estim::StateEstimator, ::TranscriptionMethod , Hp, Hc, nb
797+ model::SimModel, estim::StateEstimator, transcription::SingleShooting , Hp, Hc, _
797798 ) -> ES, GS, JS, KS, VS, BS
798799
799800Return empty matrices for [`SingleShooting`](@ref) transcription (N/A).
@@ -805,11 +806,12 @@ function init_defectmat(
805806end
806807
807808function init_defectmat (
808- :: SimModel , estim:: InternalModel , transcription:: SingleShooting , Hp, Hc, _
809+ :: NonLinModel , estim:: InternalModel , transcription:: SingleShooting , Hp, Hc, _
809810)
810811 return init_defectmat_empty (estim, transcription, Hp, Hc)
811812end
812813
814+
813815function init_defectmat_empty (
814816 estim:: StateEstimator{NT} , transcription:: TranscriptionMethod , Hp, Hc
815817) where {NT<: Real }
@@ -1067,10 +1069,10 @@ function linconstrainteq!(
10671069 return nothing
10681070end
10691071" No linear equality constraints for [`InternalModel`](@ref) (state is not augmented)."
1070- linconstrainteq! (:: PredictiveController , :: SimModel , :: InternalModel , :: TranscriptionMethod ) = nothing
1072+ linconstrainteq! (:: PredictiveController , :: NonLinModel , :: InternalModel , :: TranscriptionMethod ) = nothing
10711073" No linear equality constraints for [`SingleShooting`(@ref) (N/A).]"
1072- linconstrainteq! (:: PredictiveController , :: SimModel , :: StateEstimator , :: SingleShooting ) = nothing
1073- linconstrainteq! (:: PredictiveController , :: SimModel , :: InternalModel , :: SingleShooting ) = nothing
1074+ linconstrainteq! (:: PredictiveController , :: SimModel , :: StateEstimator , :: SingleShooting ) = nothing
1075+ linconstrainteq! (:: PredictiveController , :: NonLinModel , :: InternalModel , :: SingleShooting ) = nothing
10741076
10751077@doc raw """
10761078 set_warmstart!(mpc::PredictiveController, ::SingleShooting, Z̃var) -> Z̃s
0 commit comments