Help with Simplification?

Hello all, any help simplifying the last two equations would be greatly appreciated.
TestCode.gms (699 Bytes)
Best,

Sef