Optimal discretionary policy

Hello, could someone please help me to figure out how to solve the following error: “Unable to perform assignment because the size of the left side is 18-by-18 and the size of the right side is 17-by-18.”
optimal.mod (6.2 KB)


Your model is not properly linearized. It features constant terms that should not be there. The problematic equation is the second one.