function distance=get_consumption_equivalent(lambda,target,M_,options_,oo_)

M_.params(strmatch('lambda_utility',M_.param_names,'exact'))=lambda;
[info, oo_] = stoch_simul(M_, options_, oo_, {'Recursive_welfare1'});
if info==0
    second=oo_.mean(1);
else
    second=NaN;
end
distance = abs(target - second)
