Résolution du problème du voyageur de commerce (TSP) avec contraintes et affichage du parcours optimal.
Project description
Projet_TSP
Ce dépôt contient une implémentation pour un projet sur le Problème du Voyageur de Commerce (TSP).
Structure
src/: code source principaldata/: fichiers de données (ex.data.json)tests/: tests unitaires
Installation
- Créez un environnement virtuel (recommandé) :
python -m venv .venv
source .venv/bin/activate # Sur Windows: .venv\\Scripts\\activate
- Installez les dépendances :
pip install -r requirements.txt
Exécution
- Lancer le script principal :
python src/main.py
- Lancer les tests :
pytest -q
Format des données
- Les heures doivent être exprimées en valeur décimale (par exemple
1.5pour 1 heure 30 minutes). - Les distances doivent être exprimées en km.
Remarques
- Les points d'entrée, les classes et les tests se trouvent dans
src/ettests/.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tsp_optimisation-0.1.0.tar.gz.
File metadata
- Download URL: tsp_optimisation-0.1.0.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ef29be0a3166ee646d045f5f19652099321dd83d89bbc7a48d70cb086f302a21
|
|
| MD5 |
df10e1bd4f2b3f89100a7f60de41fd6b
|
|
| BLAKE2b-256 |
b1b6e65e3252ee719020a72e1f60c7e42d7ded1e9830c7e49e5c1fb302a70512
|
File details
Details for the file tsp_optimisation-0.1.0-py3-none-any.whl.
File metadata
- Download URL: tsp_optimisation-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0cca6eac0f651b6f807d35b977ad5823224997939e8d996d4c07b87f9e7b93f6
|
|
| MD5 |
6148ce7bc3a70dd0fa6f40e8177545cb
|
|
| BLAKE2b-256 |
c7c519014026e1f01ec34b6a7bb7dbf80ac0b73367bf04dd6d19ef97ecbaca94
|