Optimal Monetary Policy with nonlinear loss function

Just set the respective entry in

oo_.exo_simul

in the loop and then call

perfect_foresight_solver