Function Help: recsSolveDeterministicPb View code for recsSolveDeterministicPb Function Reference
recsSolveDeterministicPb
```  recsSolveDeterministicPb Solves a perfect foresight problem

X = recsSolveDeterministicPb(MODEL,S0,T,XSS,ZSS,SSS) tries to find the perfect
foresight solution of the model defined in the object MODEL. The initial
values of state variable are provided by the 1-by-d vector S0. Time horizon
(number of periods) is given by the integer T. XSS, ZSS and SSS are,
respectively, a 1-by-m vector containing the values of response variables at the
deterministic steady state, a 1-by-p vector containing the values of expectations
variables at steady state, and a 1-by-d vector containing the values of the state
variables at steady state. recsSolveDeterministicPb returns X, a T-by-m matrix,
the value of response variables over the time horizon.

X = recsSolveDeterministicPb(MODEL,S0,T,XSS,ZSS,SSS,OPTIONS) solves the problem with the
parameters defined by the structure OPTIONS. The fields of the structure are
eqsolver         : 'fsolve', 'lmmcp' (default), 'ncpsolve' or 'path'
eqsolveroptions  : options structure to be passed to eqsolver (default:
empty structure)

[X,S] = recsSolveDeterministicPb(MODEL,S0,T,XSS,ZSS,SSS,...) returns S, a T-by-d
matrix, containing the value of state variables over the time horizon.

[X,S,Z] = recsSolveDeterministicPb(MODEL,S0,T,XSS,ZSS,SSS,...) returns Z, a
T-by-p matrix, containing the value of expectations variables over the time
horizon.

[X,S,Z,F] = recsSolveDeterministicPb(MODEL,S0,T,XSS,ZSS,SSS,...) returns F, a
T-by-m matrix, containing the values of equilibrium equations over the time
horizon.

[X,S,Z,F,EXITFLAG] = recsSolveDeterministicPb(MODEL,S0,T,XSS,ZSS,SSS,...)

[X,S,Z,F,EXITFLAG,N] = recsSolveDeterministicPb(MODEL,S0,T,XSS,ZSS,SSS,...)```