% Main Program for the version that uses multiple objectives + levels,
% without variable length

% APRENDIZAJE AUTOMÁTICO (G. Pajares y J. M. de la Cruz, Eds.)
% Editorial: RA-MA
% Capítulo 9: El Aprendizaje con Algoritmos Genéticos
% Autores: Bonifacio de Andres y Toro


NGENER=50; %Number of generation of the algorithm
storehowoften=10; %It will store the results every number of generations
Hours=150; %Hours used in the beer process 
waittime=1; %time between two displays when drawing after the optimization

GACerveza(Hours,NGENER,storehowoften); %Run genetic algorithm, saving results in files
DrawFinal(Hours,storehowoften:storehowoften:NGENER,waittime); %Observe the results graphically