From adece372b89d8753596e457a71fc35a51a40e105 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Adjemian=20=28Argos=29?= <stepan@adjemian.eu> Date: Mon, 24 Mar 2025 12:22:52 +0100 Subject: [PATCH] Always save initial value of the estimation objective. Under oo_.likelihood_at_initial_parameters. --- matlab/estimation/initial_estimation_checks.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/matlab/estimation/initial_estimation_checks.m b/matlab/estimation/initial_estimation_checks.m index cea50c9f2f..101014acda 100644 --- a/matlab/estimation/initial_estimation_checks.m +++ b/matlab/estimation/initial_estimation_checks.m @@ -235,9 +235,9 @@ else info=0; fval = 0; end -if options_.debug - oo_.likelihood_at_initial_parameters=fval; -end + +oo_.likelihood_at_initial_parameters=fval; + options_.analytic_derivation=ana_deriv; if options_.mode_compute==13 -- GitLab