Compilation Error

Hello! I am a newbie in GAMS modeling, I am modeling our system but it is not running because the objective is not a variable. Can someoneone help me fix this :frowning:
tag1.png
tag2.png

In GAMS you optimize an objective variable which is equivalent to an objective function, so replace timeobj by zgoal.

-Michael