Ramsey with exogenous path

Good morning Professor Pfeiffer,

is it generally possible to find an optimal Ramsey policy for a model with an exogenous path for one of the variables (e.g., debt level)? My model fails when I implement the Ramsey component (initval too far from ss), but works without it. In the current version, I’m using a path for shocks, but maybe there is a better way.

Best wishes

If the model is well-defined that should be possible.