Population genetics simulation: variable population size

Starting conditions:

number AA: number Aa: number aa:
population size variation amplitude:     number of generations per period:
viability AA:     viability Aa:     viability aa:    
selfing frequency:     number of generations:     report every generations
   
   
   

   
Results:

generation:     
number AA:     
number Aa:     
number aa:     
total population:     
frequency a: