Division by Zero error
Posted: Wed May 06, 2020 6:13 pm
Dear Members,
I hope you are well and keeping safe.
This is to request for your assistance in resolving this execution error. I am a basic GAMS user and have encountered the error: “Division by zero”. I have read the GAMS guide and some posts on the forum but I have not yet found the solution. The error is located at line 847-Division by zero.
847 KDO(k,j) = RKDO(k,j)/RO(k,j);
Here is the genesis of that computation in the model code:
alpha = SUM[(k,j),RKDO(k,j)*{(n1+delta(k,j))
/(delta(k,j)+IRO)}
/(ITO-SUM[i,PCO(i)*VSTKO(i)])];
RO(k,j) = alpha*UO(k,j);
KDO(k,j) = RKDO(k,j)/RO(k,j);
I am attaching the zipped model file in case you need to run through it, in order to assist me. In the project file: Ug-CGE.gpr, I am running the model: PEP_1-t-b_v2_1.gms, which calls the files: SAM-V2_0.xlxs and VAL_PAR.
Thanking you for your kind assistance in advance.
Best wishes,
Judith
I hope you are well and keeping safe.
This is to request for your assistance in resolving this execution error. I am a basic GAMS user and have encountered the error: “Division by zero”. I have read the GAMS guide and some posts on the forum but I have not yet found the solution. The error is located at line 847-Division by zero.
847 KDO(k,j) = RKDO(k,j)/RO(k,j);
Here is the genesis of that computation in the model code:
alpha = SUM[(k,j),RKDO(k,j)*{(n1+delta(k,j))
/(delta(k,j)+IRO)}
/(ITO-SUM[i,PCO(i)*VSTKO(i)])];
RO(k,j) = alpha*UO(k,j);
KDO(k,j) = RKDO(k,j)/RO(k,j);
I am attaching the zipped model file in case you need to run through it, in order to assist me. In the project file: Ug-CGE.gpr, I am running the model: PEP_1-t-b_v2_1.gms, which calls the files: SAM-V2_0.xlxs and VAL_PAR.
Thanking you for your kind assistance in advance.
Best wishes,
Judith