C++ source code of a program simulating populations with various level of fixed or dynamic heterogeneities, and applying the neutral simulation method on them