The Q deme had a size of 8680 until 7063.2 generations ago. From 7063.2 generations to time 5790.0, its size changed exponentially to 6375 individuals. After that, until 4626.6, the population had a exponential change to 9000 individuals. It then decreased from 9000 to 3890, starting 4626.6 generations ago, until current times, at a linear rate.
time_units: generations
demes:
  - name: Q
    start_time: .inf
    epochs:
      - start_size: 8680
        end_time: 7063.2
      - start_size: 8680
        end_size: 6375
        end_time: 5790.0
        size_function: exponential
      - start_size: 6375
        end_time: 4626.6
        end_size: 9000
        size_function: exponential
      - end_time: 0
        start_size: 9000
        end_size: 3890
        size_function: linear