Looping over an exogenous variable

In your case, you would need to modify oo_.exo_simul and oo_.endo_simul in between runs of perfect_foresight_solver.