% Main Program for the version that uses multiple leves + restrictions +
% variable lenght individuals

% 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
LimitHours=[100,150]; %Upper and lower limit of the hours used in the beer process
waittime=1; %time between two displays when drawing after the optimization

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