How to specify a multi-staged production function?

Prof. Pfeifer,

thanks for your reply.
I have managed to work around that particular equation and written up a code for the model.
However, a new, more pressing problem emerged, so I would be very thankful if you maybe could have a look at the file :wink:
The post can be found here: [Two big open economy model).

Thank you!
Jan