See below comment from #1319
I've figured out the problem with the marginal and marginal_average models. These were actually using shadow pricing for heat, because the patch wasn't configured properly (fixed in #1324). The problem with this is that if heat uses shadow pricing and electricity etc use cost-based pricing, then heat ends up underpriced compared to the other commodities in the system (shadow prices are set without any context of the cost-based prices we later calculate).
When it comes to investment appraisal, assets that were active in the previous year dispatch choose not to be active in the appraisal because they're not profitable with the price of heat that's given to them.
I've rebased on top of #1324 and these two models now work.
The circularity model still fails, possibly because it's still using shadow prices for some commodities, although hopefully that will be fixed up with #1322.* (Edit: still fails)
Overall, I think this reveals an inherent issue with mixing shadow pricing and cost-based pricing. I think we have to either use shadow pricing throughout or cost-based pricing throughout, but not mix and match (although it would probably be fine if all the shadow-priced commodities were upstream of the cost-based commodities in the price calculation order).
*I still have doubts about this though. I think what this shows is the importance of commodity prices being consistent with one another, and in the current approach of iterating just once, rather than aiming for an equilibrium, it's possible that prices won't be consistent with one another.
Originally posted by @tsmbland in #1319 (comment)
See below comment from #1319
I've figured out the problem with the
marginalandmarginal_averagemodels. These were actually using shadow pricing for heat, because the patch wasn't configured properly (fixed in #1324). The problem with this is that if heat uses shadow pricing and electricity etc use cost-based pricing, then heat ends up underpriced compared to the other commodities in the system (shadow prices are set without any context of the cost-based prices we later calculate).When it comes to investment appraisal, assets that were active in the previous year dispatch choose not to be active in the appraisal because they're not profitable with the price of heat that's given to them.
I've rebased on top of #1324 and these two models now work.
The circularity model still fails,
possibly because it's still using shadow prices for some commodities, although hopefully that will be fixed up with #1322.* (Edit: still fails)Overall, I think this reveals an inherent issue with mixing shadow pricing and cost-based pricing. I think we have to either use shadow pricing throughout or cost-based pricing throughout, but not mix and match (although it would probably be fine if all the shadow-priced commodities were upstream of the cost-based commodities in the price calculation order).
*I still have doubts about this though. I think what this shows is the importance of commodity prices being consistent with one another, and in the current approach of iterating just once, rather than aiming for an equilibrium, it's possible that prices won't be consistent with one another.
Originally posted by @tsmbland in #1319 (comment)