Optimal Simple Rules

Is there any way in Dynare to find optimal simple rules, when the welfare function contains quadratic as well as linear terms?