Skip to content

Commit

Permalink
cambiado rango de mutación para el cambio de perfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
metantonio committed Jul 15, 2021
1 parent 33eda25 commit d8aab61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/views/calculus.js
Original file line number Diff line number Diff line change
Expand Up @@ -3132,7 +3132,7 @@ function Calculus() {
var numeroAleatorio2;
numeroAleatorio2 = aleatorio(0, codigoGeneticoP1.length - 1);
if (codigoGeneticoP1[numeroAleatorio2].tipo != "Diagonal") {
var item = listaIPN[aleatorio(0, listaIPN.length-1)]; //de donde copiará los perfiles aleatorios
var item = listaIPN[aleatorio(0, listaIPN.length - 1)]; //de donde copiará los perfiles aleatorios

codigoGeneticoP1[numeroAleatorio2]["elemento"] = item["designacion"];
codigoGeneticoP1[numeroAleatorio2]["inercia"] = item["ix"];
Expand Down Expand Up @@ -3185,7 +3185,7 @@ function Calculus() {
//console.log("hubo mutación tipo 2: Cambio de Perfil");
return codigoGeneticoP1;
} else {
var item = listUPL[aleatorio(0, listUPL.length-1)]; //de donde copiará los perfiles aleatorios
var item = listUPL[aleatorio(0, listUPL.length - 1)]; //de donde copiará los perfiles aleatorios

codigoGeneticoP1[numeroAleatorio2]["elemento"] = item["designacion"];
codigoGeneticoP1[numeroAleatorio2]["inercia"] = item["ix"];
Expand Down

0 comments on commit d8aab61

Please sign in to comment.