Skip to content
Snippets Groups Projects
Commit 93fa8a6c authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Bug fix. Definition of the penalty when the updated parameters are complex.

parent 746fb8ca
No related branches found
No related tags found
No related merge requests found
...@@ -148,7 +148,7 @@ function [ys,params,info] = evaluate_steady_state(ys_init,M,options,oo,steadysta ...@@ -148,7 +148,7 @@ function [ys,params,info] = evaluate_steady_state(ys_init,M,options,oo,steadysta
if options.steadystate_flag && updated_params_flag && ~isreal(params) if options.steadystate_flag && updated_params_flag && ~isreal(params)
info(1) = 23; info(1) = 23;
info(2) = sum(imag(M.params).^2); info(2) = sum(imag(params).^2);
return return
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment