How to develop a recursive dynamic model which is NLP form

Hi!!

I am trying to develop a recursive dynamic price endogenous mathematical programming model. I am new to modeling and therefore facing lots of difficulties. In my model Price is endogenously determined. Therefore I am confused about how to provide a command for the model to solve dynamically. The base year of the model is 2011 and I want to solve the model up to 2030 with every 5-year interval.

If anyone can help me through this it will be of great help. I am hereby attaching the GAMS code file.

Dynamic1.gms (136 KB)