diff options
| author | Mitsuo Tokumori <[email protected]> | 2022-05-31 11:49:37 -0500 |
|---|---|---|
| committer | Mitsuo Tokumori <[email protected]> | 2022-05-31 11:49:37 -0500 |
| commit | fa1b0cbb95e0579991686bb0da1237704e70f02e (patch) | |
| tree | 76eca5c61b1654282eb317fd0e5ecf5aea179566 /VRP/src/Algoritmo/VRP.java | |
| parent | 8de97e6433aedec8390c9f080b1b40fffbf036bc (diff) | |
| parent | a9b520b0d51db85cec0c11c11d22ee70414e5034 (diff) | |
| download | DP1_project-fa1b0cbb95e0579991686bb0da1237704e70f02e.tar.gz DP1_project-fa1b0cbb95e0579991686bb0da1237704e70f02e.tar.bz2 DP1_project-fa1b0cbb95e0579991686bb0da1237704e70f02e.zip | |
Merge branch 'dayana' into mitsuo (and also gabs)
Primero hice merge con gabs, luego dayana
Diffstat (limited to 'VRP/src/Algoritmo/VRP.java')
| -rw-r--r-- | VRP/src/Algoritmo/VRP.java | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/VRP/src/Algoritmo/VRP.java b/VRP/src/Algoritmo/VRP.java new file mode 100644 index 0000000..a512e40 --- /dev/null +++ b/VRP/src/Algoritmo/VRP.java @@ -0,0 +1,57 @@ + +package Algoritmo; + +/** + * + * @author DAYANA + */ + + +public class VRP { + + + public static void genetic_algorithm(int max_iter){ + //generar poblacion inicial aleatoria + PlanTransporte poblacion[] = new PlanTransporte[200]; + PlanTransporte nueva_generacion[] = new PlanTransporte[200]; + + poblacion = init_population(); + + //evaluar fitness de la poblacion + evaluar(poblacion); + + for(int i=1;i<max_iter;i++){ + nueva_generacion = generar_nueva_generacion(poblacion); + //aplicar operadores geneticos a la nueva generacion + poblacion = survive(poblacion, nueva_generacion); + } + + } + + private static PlanTransporte[] generar_nueva_generacion(PlanTransporte[] poblacion) { + return null; + } + + private static PlanTransporte[] survive(PlanTransporte[] poblacion, PlanTransporte[] nueva_generacion) { + return null; + } + + public static PlanTransporte[] init_population(){ + + + for(int i=1;i<10;i++){ + + } + + return null; + } + + public static void evaluar(PlanTransporte[] poblacion){ + + + } + + public static void init_data() { + + } +} |
