Skip to content

Commit

Permalink
Implemtacao das classes AG,Individuo,Cidade e Main em java, seguindo …
Browse files Browse the repository at this point in the history
…a base da implementacao em python
  • Loading branch information
Davi committed Dec 10, 2024
1 parent 0fee68f commit 50445c1
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 11 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
4 changes: 2 additions & 2 deletions src/python/src/delivery_ag/ag.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from random import random

from src.delivery_ag.individuo import Individuo
import individuo


class AlgoritmoGenetico:
Expand Down Expand Up @@ -57,7 +57,7 @@ def inicializa_populacao(
"""
for _ in range(self.tamanho_populacao):
self.populacao.append(
Individuo(
individuo.Individuo(
cidades,
rotas,
caminho,
Expand Down
6 changes: 3 additions & 3 deletions src/python/src/delivery_ag/exemplo_aleatorio.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from random import random

from src.delivery_ag.cidade import Cidade
from src.delivery_ag.ag import AlgoritmoGenetico
from src.delivery_ag.view import Estatistica
from cidade import Cidade
from ag import AlgoritmoGenetico
from view import Estatistica

cidades = []
rotas = []
Expand Down
6 changes: 3 additions & 3 deletions src/python/src/delivery_ag/exemplo_simples.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from src.delivery_ag.cidade import Cidade
from src.delivery_ag.ag import AlgoritmoGenetico
from src.delivery_ag.view import Estatistica
from cidade import Cidade
from ag import AlgoritmoGenetico
from view import Estatistica

cidades = [
Cidade("X"),
Expand Down
6 changes: 3 additions & 3 deletions src/python/src/delivery_ag/view.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import os

import matplotlib.pyplot as plt
import networkx as nx
from PIL import Image
import matplotlib.pyplot as plt
import networkx as nx
from PIL import Image


class Estatistica:
Expand Down

0 comments on commit 50445c1

Please sign in to comment.