The present invention relates to a carbon metering method for optimizing the allocation of
carbon flow in a power
system based on a
decision tree C4.5, and belongs to the field of carbon metering in a power
system. The method is: combining a
carbon source layer C, a hub layer S, a
branch layer F, and a terminal layer Z, and then optimizing the allocation of
carbon flow in a power
system based on a
decision tree C4.5, to determine the optimization path of the
carbon flow; specifically as follows: defining power plants in a specified area as a
carbon source layer C, a hub layer S, a
branch layer F, and a terminal layer Z; calculating the information entropy H(C) of the
carbon source layer C; calculating the information entropy H(S) of the hub layer S; calculating the
conditional entropy H(C|S) of the attribute splitting at the substation; calculating the
information gain g(C,S) of the hub layer to the carbon source layer; calculating the intermediate information entropy H(C) of the carbon source layer to the hub layer S (C); Calculate the
information gain ratio g from the carbon source layer to each hub layer node R (C,S), select the smallest one as the preferred direction of carbon flow from the carbon source layer to the hub layer.