clear;
close;

lambda_app = linspace(0,0.99,10);

i = 1;



while i<= length(lambda_app)

        dynare market_economy_benchmark;
        %app1 = oo_.irfs.Recursive_welfare_eps_t1f;
        %first = mean(app1);
        first = oo_.irfs.Recursive_welfare_eps_t1f(1);

        dynare ramsey_policy;
        %app2 = oo_.irfs.Recursive_welfare1_eps_t1f;
        %second = mean(app2);
        second = oo_.irfs.Recursive_welfare1_eps_t1f(1);

    get_lambda = first - second;

    if abs(get_lambda) < 1e-6
        break
    else 
        i = i+1;
    end
end
  -0.006201980495666