In a New Keynesian model, under the assumption of sticky prices, we need to express the monetary policy through an equation in order to close the model made of New-Keynesian Phillips curve and dynamic IS curve.
I've read that an easy choice is to use the so called Taylor rule, which express the interest rate as a function of inflation (and possibly a random component). But, I've read that it is a suboptimal choice because it is something exogenous, whereas if we endogenously compute the optimal monetary policy we can reach a better result.
My question is why using a Taylor rule when we know it is not optimal to do that?