Solving partial equilibrium models

I understand that dynare is useful in solving DSGE and OLG models. Is there any documentation/tutorial such as writing algorithm from scratch on how to simulate partial equilibrium models either in dynare or matlab. For example models of the genre of william barnett or others. Any information is highly appreciated.

Nothing prevents solving partial equilibrium in Dynare. In fact, many small open economy DSGE models actually are partial equilibrium models.