Skip to content

Commit 4732d8c

Browse files
committed
Removed useless unconstrained_solution function
1 parent 0877fd2 commit 4732d8c

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/predictive_control.jl

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -737,13 +737,6 @@ end
737737
"Return the quadratic programming objective function, see [`init_quadprog`](@ref)."
738738
obj_quadprog(ΔŨ, P̃, q̃) = 0.5*ΔŨ'**ΔŨ +'*ΔŨ
739739

740-
741-
"Calc the analytical unconstrained minimum of ``J`` for [`LinModel`](@ref)."
742-
unconstrained_solution(mpc::PredictiveController, model::LinModel) = -mpc.\mpc.
743-
744-
"When model is not a `LinModel`(@ref), returns a null vector ``\\mathbf{0}``."
745-
unconstrained_solution(mpc::PredictiveController, ::SimModel) = zeros(size(mpc.ΔŨ))
746-
747740
"""
748741
init_defaultcon(model, C, S_Hp, S_Hc, N_Hc, E) -> con, S̃_Hp, Ñ_Hc, Ẽ
749742

0 commit comments

Comments
 (0)