The deme of K kept its population at 4954 until 5782.783 generations ago, when a linear change ensued until 3948.725, to size 7911. Subsequently, a linear reduction changed the numbers to 1230 individuals by 2578.5. Starting from 2578.5, the population has seen a change from 1230 to 9906 at a exponential pace, continuing to this day.
time_units: generations
demes:
  - name: K
    start_time: .inf
    epochs:
      - start_size: 4954
        end_time: 5782.783
      - start_size: 4954
        end_size: 7911
        end_time: 3948.725
        size_function: linear
      - start_size: 7911
        end_time: 2578.5
        end_size: 1230
        size_function: linear
      - end_time: 0
        start_size: 1230
        end_size: 9906
        size_function: exponential