fn update_net_demand_map(
demand: &mut IndexMap<(CommodityID, RegionID, TimeSliceID), Flow>,
flows: &FlowMap,
assets: &[AssetRef],
)Expand description
Update net demand map with flows from a set of assets
Non-primary output flows are ignored. This way, demand profiles aren’t affected by production of side-products from other assets. The result is that all commodity demands must be met by assets with that commodity as their primary output. Effectively, agents do not see production of side-products from other assets when making investment decisions.
TODO: this is a very flawed approach. The proper solution might be for agents to consider multiple commodities simultaneously, but that would require substantial work to implement.