Hi Johannes,
I modified my model since last time we talked and ran into a new problem with violated BK conditions. I do not know why they are violated, so I was hoping you could inform me how to check the diagnostics -- I tried typing that command, but nothing came up -- to find out what's wrong. I attached my code and model equations; the equilibrium condition on energy is extremely nonlinear and big -- to get it, I used an external matlab analytical derivative solver.
Thank you for your help!