From ec73b5623576b7d88cf0bcda195fe200ff352e97 Mon Sep 17 00:00:00 2001 From: Lucas Hernan Bruzzone Rodriguez <lucas.bruzzone@fing.edu.uy> Date: Thu, 6 Sep 2018 21:45:35 -0300 Subject: [PATCH] Update newGA.hh --- malva/rep/GA/newGA.hh | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/malva/rep/GA/newGA.hh b/malva/rep/GA/newGA.hh index a6e8c26..168348f 100644 --- a/malva/rep/GA/newGA.hh +++ b/malva/rep/GA/newGA.hh @@ -1,7 +1,7 @@ /********************************************************************************************************* *** *** *** new Genetic Algorithm Skeleton v1.5 *** -*** Developed by: Gabriel Jesús Luque Polo *** +*** Developed by: Gabriel Jesús Luque Polo *** *** Last Update: 27-01-2003 *** *** *** *** tabular size = 4 *** @@ -13,9 +13,9 @@ skeleton newGA { -// Si se definen más de 5 nuevos operadores por parte del usuario, se debe cambiar esta constante. +// Si se definen más de 5 nuevos operadores por parte del usuario, se debe cambiar esta constante. #define MAX_OP_USER 5 -// Si se algún operador tiene más de 5 parámetros se debe modificar esta variable +// Si se algún operador tiene más de 5 parámetros se debe modificar esta variable #define MAX_PROB_PER_OP 5 provides class SetUpParams; @@ -63,10 +63,15 @@ skeleton newGA Direction direction () const; int dimension() const; + int cantEmpleados() const; + Rarray<Empleado>& Empleados(); + Rarray<int>& tareasDias(); private: - + int _cantEmpleados; int _dimension; + Rarray<Empleado> empleadoss(); + Rarray<int> tareasDiass(); }; //Solution ---------------------------------------------------------------------------- @@ -100,7 +105,7 @@ skeleton newGA Rarray<int>& array_var(); private: - Rarray<int> _var; + Rarray<int> tareasSolucion; const Problem& _pbm; }; -- GitLab