I would like to write the following function in Pyomo but I am struggling. See function here https://i.stack.imgur.com/waTd6.png
I wrote it in GAMS as follows it work