Skip to content
Snippets Groups Projects
Verified Commit 42f24a9b authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Add header docs.

parent 14b68ee3
No related branches found
No related tags found
No related merge requests found
Pipeline #11407 failed
function [res, A, info] = ep_problem_0(y, x, pfm) function [res, A, info] = ep_problem_0(y, x, pfm)
% Evaluate the residuals and stacked jacobian of a stochastic perfect
% foresight, considering sequences of future innovations in a perfect n-ary tree.
%
% INPUTS:
% - y [double] m×1 vector (endogenous variables in all periods and future worlds).
% - x [double] q×1 vector of exogenous variables.
% - pfm [struct] Definition of the perfect foresight model to be solved.
%
% OUTPUTS:
% - res [double] m×1 vector, residuals of the stacked equations.
% - A [double] m×m sparse matrix, jacobian of the stacked equations.
% - info [logical] scalar
%
% REMARKS:
% [1] The structure pfm holds the given initial condition for the states (pfm.y0) and the terminal condition
info = false; info = false;
params = pfm.params; params = pfm.params;
......
function [res,A,info] = ep_problem_1(y, x, pfm) function [res, A, info] = ep_problem_1(y, x, pfm)
% Evaluate the residuals and stacked jacobian of a stochastic perfect
% foresight, considering sequences of future innovations in a sparse tree.
%
% INPUTS:
% - y [double] m×1 vector (endogenous variables in all periods and future worlds).
% - x [double] q×1 vector of exogenous variables.
% - pfm [struct] Definition of the perfect foresight model to be solved.
%
% OUTPUTS:
% - res [double] m×1 vector, residuals of the stacked equations.
% - A [double] m×m sparse matrix, jacobian of the stacked equations.
% - info [logical] scalar
%
% REMARKS:
% [1] The structure pfm holds the given initial condition for the states (pfm.y0) and the terminal condition
info = false; info = false;
A = []; A = [];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment