Simulation outside of the range of the data
Posted: Mon Nov 27, 2017 9:51 pm
In https://www.vensim.com/documentation/21170.htm, the manual says, "When the simulation is outside of the range of the data the closest value of the data will be used. This means that before 1938 the first value for atmospheric CFC 11 releases will be used and that in 1994 and beyond the last value will be used."
I'm creating a forecasting model, and, in one section, I care about three variables: the simulated value of a particular flow over the historical and forecast periods, the actual value in the historical period, and the actual value in the forecast period. The first exists over from INITIAL TIME to FINAL TIME, but the second only exists from INITIAL TIME to the start of the actual forecast, and the third from the start of the actual forecast until FINAL TIME. The first is simulated; the second and third are read using GET XLS DATA() and currently only used for a visual comparison with the simulated values in the historical and forecast periods. (At some time, I might use them to optimize other model parameters to make the distance between these get smaller.)
Normally, that works just fine: I can create a graph with the graph tool that shows all three, and they each appear in their own domains ("ranges" in the language of the manual).
However, I am reading the input data in metric units, and I am converting them to "customary" units for ease of interpretation by some users. When I do that, the quoted sentence applies, each of the data variables appears to have valid, constant (and erroneous) values over the entire domain, and the graph becomes confusing.
Is there a trick to make the above quote not apply--that is, to have the calculated variables retain the domain they had when read by GET XLS DATA() and be undefined elsewhere?
I'm creating a forecasting model, and, in one section, I care about three variables: the simulated value of a particular flow over the historical and forecast periods, the actual value in the historical period, and the actual value in the forecast period. The first exists over from INITIAL TIME to FINAL TIME, but the second only exists from INITIAL TIME to the start of the actual forecast, and the third from the start of the actual forecast until FINAL TIME. The first is simulated; the second and third are read using GET XLS DATA() and currently only used for a visual comparison with the simulated values in the historical and forecast periods. (At some time, I might use them to optimize other model parameters to make the distance between these get smaller.)
Normally, that works just fine: I can create a graph with the graph tool that shows all three, and they each appear in their own domains ("ranges" in the language of the manual).
However, I am reading the input data in metric units, and I am converting them to "customary" units for ease of interpretation by some users. When I do that, the quoted sentence applies, each of the data variables appears to have valid, constant (and erroneous) values over the entire domain, and the graph becomes confusing.
Is there a trick to make the above quote not apply--that is, to have the calculated variables retain the domain they had when read by GET XLS DATA() and be undefined elsewhere?