The part that I'm suspicious of is the order of mathematical operations or something related to that. The equation for 'POLCM pollution from capital multiplier' is given by:
Code: Select all
min16 + ((max16-min16)/(1+((max16-ry16)/(ry16-min16))^(("CIR capital-investment ratio"/CIR normal-M16)/(rx16-M16))))
In the .cin file I've shared, I think dll throws the error when r_x_16 = M_16 = 1. I'm not sure why the error isn't raised in Vensim itself. There could be something else I'm missing (even in other parts of the mode), but inconsistent order of operations was the first thing that came to my mind. I would appreciate any feedback.