The X deme had a size of 1836 until 8560.2 generations ago. From 8560.2 generations to time 5392.65, its size increased linearly to 5347 individuals. After that, until 1427.49, the population had a linear change to 7849 individuals. It then reduced from 7849 to 3861, starting 1427.49 generations ago, until current times, at a exponential rate.
time_units: generations
demes:
  - name: X
    start_time: .inf
    epochs:
      - start_size: 1836
        end_time: 8560.2
      - start_size: 1836
        end_size: 5347
        end_time: 5392.65
        size_function: linear
      - start_size: 5347
        end_time: 1427.49
        end_size: 7849
        size_function: linear
      - end_time: 0
        start_size: 7849
        end_size: 3861
        size_function: exponential