For the S deme, the population size remained at 2028 until 3480.5 generations ago, at which point a exponential growth took place until 3026.44 generations for size 8886. Afterward, the population saw an linear change to 3338 by 2911.8143. From 2911.8143 generations ago to today, there's been a linear change from 3338 to 5159.
time_units: generations
demes:
  - name: S
    start_time: .inf
    epochs:
      - start_size: 2028
        end_time: 3480.5
      - start_size: 2028
        end_size: 8886
        end_time: 3026.44
        size_function: exponential
      - start_size: 8886
        end_time: 2911.8143
        end_size: 3338
        size_function: linear
      - end_time: 0
        start_size: 3338
        end_size: 5159
        size_function: linear