Tracking stock attributes
Posted: Tue May 06, 2025 3:22 pm
Reposting a question from metasd.com:
How do I add a variable that tracks the “age of a stock”? I am looking at an energy system dynamics model where tax incentives are offered for the first 10 years of an installed capacity operation. I have stock representing the installed capacity but need to setup an IF-THEN restriction for the tax credit (IF age of the installed capacity <=10 years, tax credits is X, otherwise is 0).
For example, if a capacity is installed in 2026, the tax credit will be applicable until 2036, and for capacity installed in 2033 the tax credit will apply until 2043.
How do I add a variable that tracks the “age of a stock”? I am looking at an energy system dynamics model where tax incentives are offered for the first 10 years of an installed capacity operation. I have stock representing the installed capacity but need to setup an IF-THEN restriction for the tax credit (IF age of the installed capacity <=10 years, tax credits is X, otherwise is 0).
For example, if a capacity is installed in 2026, the tax credit will be applicable until 2036, and for capacity installed in 2033 the tax credit will apply until 2043.