both exactly identified and underidentified shocks, occasionally binding constraints on interest rates, anticipated shocks … rational expectations. This algorithm can be used for a wide range of cases, including for models with occasionally binding … constraints, or for forecasting with models in which some variables must satisfy a certain path. In this paper I propose …