LOOKUP
Posted: Fri Oct 06, 2006 11:20 pm
Hi,
I have a question, please if anybody has any answer, would be great, thank you! I try to explain it:
In my model I have subscripts (S1, S2, S3).
I want to implement a new variable (NW) in the model, where all the subscripts would have a lookup function. That means that I have all the values for the subscripts from the past years, so the "Input" in the lookup are the years and the "Output" I can fill in manually. It would be easy to do, because in this new variable (NW) I can choose the "Type" as lookup, and I can choose each subscript elements, and write the data given.
BUT!
In case of S2, the value of this variable is NOT a constant given for the past years, BUT it is coming from the model itself, it is an OUTPUT variable. That means that I would need to connect a variable containing the needed S2 info to the NW, and the "output" in the lookup should be another model variable.
Is it possible to do this?
To build a lookup, where the output is another variable?
Or I will have to change the strucutre?
Thank you very much,
all my best,
Cathy
I have a question, please if anybody has any answer, would be great, thank you! I try to explain it:
In my model I have subscripts (S1, S2, S3).
I want to implement a new variable (NW) in the model, where all the subscripts would have a lookup function. That means that I have all the values for the subscripts from the past years, so the "Input" in the lookup are the years and the "Output" I can fill in manually. It would be easy to do, because in this new variable (NW) I can choose the "Type" as lookup, and I can choose each subscript elements, and write the data given.
BUT!
In case of S2, the value of this variable is NOT a constant given for the past years, BUT it is coming from the model itself, it is an OUTPUT variable. That means that I would need to connect a variable containing the needed S2 info to the NW, and the "output" in the lookup should be another model variable.
Is it possible to do this?
To build a lookup, where the output is another variable?
Or I will have to change the strucutre?
Thank you very much,
all my best,
Cathy