Skip to content
Snippets Groups Projects
Commit 714d2f38 authored by ferhat's avatar ferhat Committed by Sébastien Villemot
Browse files

Allows to use alternative algorithms to solve lyapunov equation

(cherry picked from commit 4e789452)
parent 034ffc7c
Branches
Tags
No related merge requests found
......@@ -116,7 +116,15 @@ if options_.lik_init == 1 % Kalman filter
if kalman_algo ~= 2
kalman_algo = 1;
end
Pstar = lyapunov_symm(T,R*Q*transpose(R),options_.qz_criterium,options_.lyapunov_complex_threshold);
if options_.lyapunov_fp == 1
Pstar = lyapunov_symm(T,Q,options_.lyapunov_fixed_point_tol,options_.lyapunov_complex_threshold, 3, R);
elseif options_.lyapunov_db == 1
Pstar = disclyap_fast(T,R*Q*R',options_.lyapunov_doubling_tol);
elseif options_.lyapunov_srs == 1
Pstar = lyapunov_symm(T,Q,options_.lyapunov_fixed_point_tol,options_.lyapunov_complex_threshold, 4, R);
else
Pstar = lyapunov_symm(T,R*Q*R',options_.qz_criterium,options_.lyapunov_complex_threshold);
end;
Pinf = [];
elseif options_.lik_init == 2 % Old Diffuse Kalman filter
if kalman_algo ~= 2
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment