Use group affinities in discomfort calculator #215
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "discomfort-calculation-revamp"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
We've recently included the concept of group affinities, which allows users specify the affinity between groups for the seating distribution. However, these values were not used thus far.
In this PR, we're modifying the calculator to take these values into account, instead of the previous distance-based affinity.
We're also making the
AffinityGroupsHierarchy
not a singleton anymore, as that doesn't quite fit a multi-tenant system. Additionally, memoized variables would never be removed by the GC, leading to a memory leak at some point.