Dynare has tools to compute optimal policies for quadratic objectives. You can either solve for optimal policy under commitment with olr or for optimal simple rule with osr.
olr
olr_inst
optim_weights
osr
osr_params