OcelotProject / Ocelot

Ocelot is open-source linking for life cycle assessment. See https://ocelot.space/ for more information.
Other
26 stars 7 forks source link

Find consumers of market groups #100

Closed cmutel closed 5 years ago

cmutel commented 8 years ago

This is a bit trickier. We first need to decompose all market groups to their basic inputs (i.e. unroll market groups within market groups). We then need to use some type of set logic to determine if the market group suppliers are all consumed by normal activities, with some degree of error (e.g. 0.1 %). If links to multiple market groups are possible, we need to choose the biggest one (or maybe the one with the highest production volume?).

@ecoinvent Any more rules to add here?

cmutel commented 7 years ago

So, there are two scenarios.

First, if an activity has direct links to specific providers (e.g. a European process links to x units of electricity from FR, y units of electricity from ES, etc.), then we can check to see which market groups intersects the largest number of inputs of the same flow (e.g. electricity). There could be multiple market groups to choose from (e.g. Western Europe and Europe). In theory, we could also choose a market group based not based on the number of similar exchanges, but rather the sum of similar exchanges, but given the way markets are constructed there should be no practical difference.

In a second case, without any direct links, we are thinking of changing not a set of exchanges, but rather one exchange. In this case, an input could come from a single market, or from one of group of geographically nested market groups. In this case, I propose the following rules:

  1. Market groups should only be linked if a market group is smaller than the market which would otherwise be the linked supplier.
  2. RoW is always presumed to be bigger than any regional market group. (Alternatively, we could resolve RoW, but I would rather avoid this if possible.)

However, I would love some feedback from @ecoinvent.

cmutel commented 7 years ago

OK, after some feedback from ecoinvent, we take a simpler approach. Instead of being clever and linking market groups before other things, we will just do normal linking, and then substitute market groups whenever possible.

cmutel commented 5 years ago

Fixed in #154.