I’m interested in adding a decision to install rooftop solar on top of a house in LifeCycleModel35semiz.
I’ve added installpv as a binary choice and solarpv as a scalable generation asset (scalable from 0 to 30 kWh).
n_d=[11,101,5,2]; % Decisions: riskyshare, savings, buyhouse (note, SemiExoStateFn hardcodes that buyhouse is 5 points), installpv
n_a=[3,21,7]; % Endogenous housing, asset, and solarpv holdings (0-30kW generation)
I’m now stuck on the proper definition of refine_d
vfoptions.refine_d=[0,1,1,1]; % tell the code how many d1, d2, d3 and d4 there are
If I add to d1 I get a message that riskyasset+semiz with d1 not yet implemented.
If I add to d4, I get an error about incompatibly-shaped arrays. I do pass installpv to the SemiExoStateFn (mainly to keep the price of the house from falling when installing PV). And I use solarpv in the return function (where it adds to income, like an asset).
Do I need to wait for the new feature or should I reshape what I’m doing to better fit with the existing system?