I need your help. I need to compute the perfect-foresight transition path (deterministic simulation) between an initial steady state and a final one.
I was wondering whether it is possible to use the steady state function to load into dynare both steady states. I know I could use the initval and endval command right after the model block, but my model is complicated that I want to avoid doing that.

Here is the sketch (in a much simpler model) of the steady state function that I currently use to load the initial steady state.

function [ys,check1] = rbc_steadystate(junk,ys);

global M_
%LOAD PARAMETERS AND INITIAL STEADY STATE VALUES
load PARAM.mat
load SSrbc_INIT.mat

Unfortunately, this is not easily possible. Your best option is to trick Dynare. If I see it correctly, Dynare 4.4.3 will write the initval contents to

ys0_= oo_.steady_state;
ex0_ = oo_.exo_steady_state;
and the endval-contents to oo_.steady_state.
Try defining almost empty initval and endval-block and then use the verbatim-block to call the steady state file and then assign the steady states to ys0_ and oo_.steady_state.
If it works or not, please provide feedback.

Unless I include oo_.steady_state = ysINIT; in the first block the code does not converge properly.

I verified that all equations at each point in time hold, so it seems that what dynare finds is the correct deterministic simulation from one steady state to the other.

would it be possible to use the same “trick” you suggested before when the deterministic simulation is performed under histval?
I was trying to find where dynare stores the initial states from where to start the simulation, but with no success.

Could you please tell me where to look to find what is the name of the vector of the states I need to fill to perform the simulation with histval.