/*************************************************************************/ /* */ /* Copyright 2003, Living Circuit LLC. */ /* */ /* For academic use with the following condition: */ /* */ /* Material is provided "as is" and "as available", without any */ /* warranty, and if you use it you do it at your own risk, with no */ /* support agreement expressed or implied. */ /* */ /* Any other use of this software is contingent on having a valid and */ /* signed license agreement with Living Circuit (livingCircuit.com) */ /* */ /* All other rights reserved. */ /* */ /*************************************************************************/ /********************************************/ /********************************************/ /** **/ /** **/ /** "pop_gen" reads does a long- **/ /** term population simulation based **/ /** on relative fitnesses and **/ /** mutation probabilities. **/ /** **/ /** Written by Michael Molla **/ /** September, 2003 **/ /** **/ /** **/ /** **/ /*******************************************/ /*******************************************/ //#define GENERATION_SIZE 10000 #define OUTPUT_PERIOD 200 #define DEFAULT_SEED 2222 #define PARAM_FILE_SUFFIX ".params" #define TMP_FILE_SUFFIX ".new" #define NUM_ALLILES 3 #define NUM_GENOTYPES 81 #define NUM_HAPLOID_GENOTYPES 9 #define MAX_FNAME 1024 #define MAX_LINE 4096 #define A_MUTATION_RATE 0 #define B_MUTATION_RATE 1 #define ONE_TO_TWO 0 #define TWO_TO_THREE 1 #define ONE_TO_THREE 2 #define RESEED_ADDITION 100 #define RESEED_FREQUENCY 1000000000 // <- This (large) number is in generations * pop_size