Hi Members,
I am using a SAM Balancing Program in GAMS, released Dec 2013 distributed by PEP, to balance the SAM.
I am running this file: sambal_2013_JK in the attached zipped folder. The GAMS version I am using is: 24.3.3.
I have encountered the following execution error.
**** Exec Error at line 364: division by zero (0)
364 SAM0(INT,JNT) = SAM0(INT,JNT)/TOTO;
The error line is traced to this section:
Initial matrix values transformed in proportion ===============
PARAMETER
TOTO initial matrix total ;
TOTO = SUM((INT,JNT), SAM0(INT,JNT));
SAM0(INT,JNT) = SAM0(INT,JNT)/TOTO;
I find it illogical that TOTO can be zero. What could be the source of this error? How can I overcome it?
I have tried several solutions suggested in documentation but have not succeeded yet.
GAMS_code & files.zip (197 KB)