# luizcarlxs/tcc architecture

> Architecture diagram of the GitHub repository luizcarlxs/tcc, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-10). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/luizcarlxs/tcc
- Repository: https://github.com/luizcarlxs/tcc

## Overview

This is a desktop tool for optimizing precast structural-building designs. The principal workflow is to enter building and genetic-algorithm parameters, evolve candidate designs, evaluate structural fitness, inspect the leading design, and generate drawings or saved results. The repository also contains a separate genetic-algorithm implementation and a crossover operator. The README documents only the product’s broad purpose; several UI and evaluation details are unsampled, so uncertain connections are omitted or marked unverified.

Main entry points: [`SATD/Interface.py`](https://github.com/luizcarlxs/tcc/blob/main/SATD/Interface.py) (Design UI), [`SATD/AG.py`](https://github.com/luizcarlxs/tcc/blob/main/SATD/AG.py) (Alternate optimizer), [`SATD/AG_DEAP.py`](https://github.com/luizcarlxs/tcc/blob/main/SATD/AG_DEAP.py) (DEAP optimizer), [`SATD/building_design.py`](https://github.com/luizcarlxs/tcc/blob/main/SATD/building_design.py) (Building parameters)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["Desktop interface"]
  node_launcher["Application launcher<br/>[main.py]"]
  node_design_ui["Design UI<br/>[Interface.py]"]
end

subgraph group_optimization["Design optimization"]
  node_parameters["Building parameters<br/>[building_design.py]"]
  node_deap_ga["DEAP optimizer<br/>[AG_DEAP.py]"]
  node_legacy_ga["Alternate optimizer<br/>[AG.py]"]
  node_evaluation["Structural evaluation<br/>[AvaliaIndF.py]"]
  node_crossover["Uniform crossover<br/>[CruzUniforme.py]"]
end

subgraph group_outputs["Design outputs"]
  node_floor_drawing["Floor-plan drawing<br/>[DwgGenerator.py]"]
  node_beam_drawing["Beam drawing<br/>[DwgGenerator.py]"]
  node_file_manager["Result file manager"]
  node_saved_files["Saved result files"]
end

node_engineer(("Design engineer"))

node_engineer -.->|"enters design"| node_design_ui
node_launcher -->|"creates UI"| node_design_ui
node_design_ui -.->|"configures"| node_parameters
node_design_ui -->|"runs optimizer"| node_deap_ga
node_deap_ga -->|"reads parameters"| node_parameters
node_deap_ga -->|"evaluates candidates"| node_evaluation
node_legacy_ga -->|"reads parameters"| node_parameters
node_legacy_ga -.->|"evaluates candidates"| node_evaluation
node_legacy_ga -->|"creates offspring"| node_crossover
node_design_ui -.->|"requests plan drawing"| node_floor_drawing
node_design_ui -.->|"requests beam drawing"| node_beam_drawing
node_design_ui -.->|"saves results"| node_file_manager
node_file_manager -->|"writes files"| node_saved_files

click node_launcher "https://github.com/luizcarlxs/tcc/blob/main/SATD/main.py"
click node_design_ui "https://github.com/luizcarlxs/tcc/blob/main/SATD/Interface.py"
click node_parameters "https://github.com/luizcarlxs/tcc/blob/main/SATD/building_design.py"
click node_deap_ga "https://github.com/luizcarlxs/tcc/blob/main/SATD/AG_DEAP.py"
click node_legacy_ga "https://github.com/luizcarlxs/tcc/blob/main/SATD/AG.py"
click node_evaluation "https://github.com/luizcarlxs/tcc/blob/main/SATD/AvaliaIndF.py"
click node_crossover "https://github.com/luizcarlxs/tcc/blob/main/SATD/CruzUniforme.py"
click node_floor_drawing "https://github.com/luizcarlxs/tcc/blob/main/SATD/DwgGenerator.py"
click node_beam_drawing "https://github.com/luizcarlxs/tcc/blob/main/SATD/DwgGenerator.py"
click node_file_manager "https://github.com/luizcarlxs/tcc/blob/main/SATD/ImpressaoEmArquivo.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_launcher,node_design_ui toneBlue
class node_parameters,node_deap_ga,node_legacy_ga,node_evaluation,node_crossover toneAmber
class node_floor_drawing,node_beam_drawing,node_file_manager,node_saved_files toneMint
class node_engineer toneIndigo
```

## Components

### Desktop interface

- [Application launcher](https://github.com/luizcarlxs/tcc/blob/main/SATD/main.py): `SATD/main.py`
- [Design UI](https://github.com/luizcarlxs/tcc/blob/main/SATD/Interface.py): `SATD/Interface.py`

### Design optimization

- [Building parameters](https://github.com/luizcarlxs/tcc/blob/main/SATD/building_design.py): `SATD/building_design.py`
- [DEAP optimizer](https://github.com/luizcarlxs/tcc/blob/main/SATD/AG_DEAP.py): `SATD/AG_DEAP.py`
- [Alternate optimizer](https://github.com/luizcarlxs/tcc/blob/main/SATD/AG.py): `SATD/AG.py`
- [Structural evaluation](https://github.com/luizcarlxs/tcc/blob/main/SATD/AvaliaIndF.py): `SATD/AvaliaIndF.py`
- [Uniform crossover](https://github.com/luizcarlxs/tcc/blob/main/SATD/CruzUniforme.py): `SATD/CruzUniforme.py`

### Design outputs

- [Floor-plan drawing](https://github.com/luizcarlxs/tcc/blob/main/SATD/DwgGenerator.py): `SATD/DwgGenerator.py`
- [Beam drawing](https://github.com/luizcarlxs/tcc/blob/main/SATD/DwgGenerator.py): `SATD/DwgGenerator.py`
- [Result file manager](https://github.com/luizcarlxs/tcc/blob/main/SATD/ImpressaoEmArquivo.py): `SATD/ImpressaoEmArquivo.py`
- **Saved result files**

### Other components

- **Design engineer**

## Connections

- Design engineer → Design UI: enters design
- Application launcher → Design UI: creates UI (evidence: `SATD/main.py`)
- Design UI → Building parameters: configures (evidence: `SATD/Interface.py`)
- Design UI → DEAP optimizer: runs optimizer (evidence: `SATD/Interface.py`)
- DEAP optimizer → Building parameters: reads parameters (evidence: `SATD/AG_DEAP.py`)
- DEAP optimizer → Structural evaluation: evaluates candidates (evidence: `SATD/AG_DEAP.py`)
- Alternate optimizer → Building parameters: reads parameters (evidence: `SATD/AG.py`)
- Alternate optimizer → Structural evaluation: evaluates candidates (evidence: `SATD/AG.py`)
- Alternate optimizer → Uniform crossover: creates offspring (evidence: `SATD/AG.py`)
- Design UI → Floor-plan drawing: requests plan drawing (evidence: `SATD/Interface.py`)
- Design UI → Beam drawing: requests beam drawing (evidence: `SATD/Interface.py`)
- Design UI → Result file manager: saves results (evidence: `SATD/Interface.py`)
- Result file manager → Saved result files: writes files (evidence: `SATD/ImpressaoEmArquivo.py`)
