#define JOBS 12 #define TASKS 6 #define POP 20 // Number of individuals in population #define M 3 #define CURRENT 0 #define MUTATIONS 1 #define OFFSPRING 2 int population[POP][JOBS]; // The current population int variations[POP][JOBS]; // The mutations int crossover[POP][JOBS]; // The offspring int duration[JOBS][TASKS]; continuous Makespan; // The objective function continuous Ft[JOBS][TASKS]; // Finish time of task t of job j double fitness[M][POP]; // Evaluation of fitness #define ITERATIONS 10 // Number of generations 2lp_main() { data(); setup(); initialize(population,fitness[CURRENT]); and(int it=0;it= Ft[jb][TASKS-1]; }