Skip to main content

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 principal
  • data/ : fichiers de données (ex. data.json)
  • tests/ : tests unitaires

Installation

  1. Créez un environnement virtuel (recommandé) :
python -m venv .venv
source .venv/bin/activate   # Sur Windows: .venv\\Scripts\\activate
  1. 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.5 pour 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/ et tests/.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tsp_optimisation-0.1.0.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tsp_optimisation-0.1.0-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

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

Hashes for tsp_optimisation-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ef29be0a3166ee646d045f5f19652099321dd83d89bbc7a48d70cb086f302a21
MD5 df10e1bd4f2b3f89100a7f60de41fd6b
BLAKE2b-256 b1b6e65e3252ee719020a72e1f60c7e42d7ded1e9830c7e49e5c1fb302a70512

See more details on using hashes here.

File details

Details for the file tsp_optimisation-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for tsp_optimisation-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0cca6eac0f651b6f807d35b977ad5823224997939e8d996d4c07b87f9e7b93f6
MD5 6148ce7bc3a70dd0fa6f40e8177545cb
BLAKE2b-256 c7c519014026e1f01ec34b6a7bb7dbf80ac0b73367bf04dd6d19ef97ecbaca94

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page