mkao006 / sws_standardization

The repository for computing the SUA standardization
1 stars 1 forks source link

Implement average path rather than shortest path for computing the direct extraction rate #13

Closed mkao006 closed 10 years ago

mkao006 commented 11 years ago

Although the shortest path works at the moment, it assumes there is only one path. It is bests to allow multiple path and take the average weighted path to compute the direct extraction rate.

mkao006 commented 10 years ago

This is not a problem any more, there should be only one path for everything. Process cheese should be split into trim milk processed cheese and fresh cream processed cheese before standardization. Furthermore, if the extraction rates/shares were correct, then the final result would have been the same regardless which path was taken under the assumption of equal waste.

mkao006 commented 10 years ago

The function simplify in the igraph library can collapse multiple path into a single path.