Hi there,
I am calibrating the IFPRI standard CGE model and while running the model I got Execution error like division by zero error. Below equations are found division error from the lst file.
ERRSAMFLOW(A,‘GOV’)$SAM(A,‘GOV’) = 1/0;
ERRSAMFLOW(A,‘ROW’)$SAM(A,‘ROW’) = 1/0;
I want your assistance for the error. Advance thanks for your reply.
BR
Syed
I think it is explained in the comments of the IFPRI Standard CGE model, in the file diagnostics.inc:
Error messages will be generated if data are missing or incorrect.
*Government (GOV) and the rest of the world (ROW) are not permitted to
*pay to activities (A).
Therefore, as far as I can see, the model deliberately generates those division by zero errors, whenever GOV or ROW is assumed to pay to activities A (by having some values defined for SAM(A,‘GOV’) or SAM(A,‘ROW’)).
Many thanks for your suggestion. I will recheck the SAM again.
BR
Syed