The deme of Z kept its population at 9687 until 9993.729 generations ago, when a linear reduction ensued until 6683.43, to size 6852. Subsequently, a linear decrease changed the numbers to 1069 individuals by 1402.63. Starting from 1402.63, the population has seen a change from 1069 to 647 at a linear pace, continuing to this day.
time_units: generations
demes:
  - name: Z
    start_time: .inf
    epochs:
      - start_size: 9687
        end_time: 9993.729
      - start_size: 9687
        end_size: 6852
        end_time: 6683.43
        size_function: linear
      - start_size: 6852
        end_time: 1402.63
        end_size: 1069
        size_function: linear
      - end_time: 0
        start_size: 1069
        end_size: 647
        size_function: linear