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
......@@ -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)
info(1) = 23;
info(2) = sum(imag(M.params).^2);
info(2) = sum(imag(params).^2);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment