indus basin model optimization

hello all
i am working on indus basin model.it is available in gams library.
i want to add reservoirs data in model and optimize power generation.i.e. i want add it in cps.plz can anyone help me to derive this type of equation.
code is available in GAMS library.
thanks all.