Riccati solution for the minimum model error algorithm