TSP Solver

Program na hľadanie optimálnej trasy pre problém obchodného cestujúceho

Program for finding the optimal route for the travelling salesman problem

Čo je TSP Solver?

What is TSP Solver?

TSP Solver je program určený na hľadanie optimálnej trasy tzv. problému obchodného cestujúceho (TSP- Travelling Salesman Problem). Tento problém patrí medzi najznámejšie problémy kombinatorickej optimalizácie. Úlohou je nájsť najkratšiu možnú trasu, ktorá prechádza všetkými zadanými bodmi (mestami) práve raz a vráti sa do východiskového bodu.

TSP Solver is a program designed to find the optimal route for the travelling salesman problem (TSP). This problem is one of the most famous problems in combinatorial optimization. The task is to find the shortest possible route that passes through all given points (cities) exactly once and returns to the starting point.

Program bol vyvinutý Ing. Robertom Polákom a obsahuje niekoľko originálnych algoritmov, vrátane Robopol algoritmu a jeho presnejšej verzie Robopol Precise, ktoré dosáhujú vynikajúce výsledky porovnateľné s najlepšími algoritmami ako je LKH.

The program was developed by Ing. Robert Polák and includes several original algorithms, including the Robopol algorithm and its more accurate version Robopol Precise, which achieve excellent results comparable to the best algorithms such as LKH.

Optimalizácia trasy

Route Optimization

Nájdite najkratšiu možnú trasu medzi ľubovoľným počtom bodov až do 50 000 bodov.

Find the shortest possible route between any number of points up to 50,000 points.

TSP Art

TSP Art

Vytvárajte umelecké diela pomocou jednej spojitej čiary prechádzajúcej cez tisíce bodov.

Create artwork using a single continuous line passing through thousands of points.

Pokročilé algoritmy

Advanced Algorithms

Využíva originálne algoritmy Robopol a Robopol Precise, ako aj špičkový LKH algoritmus.

Uses original Robopol and Robopol Precise algorithms, as well as the state-of-the-art LKH algorithm.

Import a Export

Import and Export

Importujte body z textových súborov, exportujte trasy, uložte projekty a vytvárajte obrázky z výsledkov.

Import points from text files, export routes, save projects, and create images from results.

Ukážky programu

Program Screenshots

TSP Solver - hlavné okno programu s náhodne generovanými bodmi TSP Solver - main program window with randomly generated points

Hlavné okno programu s náhodne generovanými bodmi

Main program window with randomly generated points

TSP Solver - vizualizácia trasy pre mestá v Českej republike TSP Solver - route visualization for cities in the Czech Republic

Vizualizácia optimálnej trasy pre mestá v Českej republike

Optimal route visualization for cities in the Czech Republic

TSP Solver - nastavenia algoritmu TSP Solver - algorithm settings

Nastavenia algoritmu a parametre optimalizácie

Algorithm settings and optimization parameters

TSP Solver - TSP Art - Eiffelova veža TSP Solver - TSP Art - Eiffel Tower

TSP Art - Eiffelova veža (40 000 bodov)

TSP Art - Eiffel Tower (40,000 points)

TSP Solver - TSP Art - auto TSP Solver - TSP Art - car

TSP Art - auto (40 000 bodov)

TSP Art - car (40,000 points)

TSP Solver - TSP Art - portrét TSP Solver - TSP Art - portrait

TSP Art - portrét (50 000 bodov)

TSP Art - portrait (50,000 points)

Ako to funguje

How It Works

1

Zadanie bodov

Input Points

Zadajte body (mestá) buď manuálne, importom zo súboru alebo kliknutím na mapu.

Enter points (cities) either manually, by importing from a file, or by clicking on the map.

2

Výber algoritmu

Algorithm Selection

Zvoľte si algoritmus a jeho parametre podľa veľkosti problému a požadovanej presnosti.

Choose an algorithm and its parameters based on the problem size and required accuracy.

3

Výpočet

Calculation

Program vypočíta optimálnu trasu pomocou vybraného algoritmu.

The program calculates the optimal route using the selected algorithm.

4

Výsledky

Results

Prehliadnite si výsledky vrátane grafickej vizualizácie trasy a štatistík.

View the results including graphical route visualization and statistics.

Technické detaily

Technical Details

Použité algoritmy

Algorithms Used

TSP Solver využíva kombináciu nasledujúcich algoritmov:

TSP Solver uses a combination of the following algorithms:

  • LKH algoritmus - jeden z najlepších algoritmov pre riešenie TSP, založený na Lin-Kernighan heuristike
  • Robopol algoritmus - originálny algoritmus vyvinutý autorom Ing. Robertom Polákom
  • Robopol algoritmus Precise - vylepšená verzia s vyššou presnosťou, ktorá dosáhne takmer optimálne výsledky
  • Najbližší sused (Nearest Neighbor) - rýchly, ale menej presný algoritmus pre veľké inštancie
  • LKH algorithm - one of the best algorithms for solving TSP, based on the Lin-Kernighan heuristic
  • Robopol algorithm - original algorithm developed by the author Ing. Robert Polák
  • Robopol Precise algorithm - improved version with higher accuracy that achieves nearly optimal results
  • Nearest Neighbor - fast but less accurate algorithm for large instances

Výkonnosť

Performance

Program dokáže efektívne riešiť:

The program can efficiently solve:

  • Malé inštancie (do 100 bodov) - exaktné riešenie
  • Stredné inštancie (100-1000 bodov) - takmer optimálne riešenia pomocou LKH a Robopol Precise algoritmov
  • Veľké inštancie (1000-10000 bodov) - kvalitné heuristické riešenia
  • Veľmi veľké inštancie (10000-50000 bodov) - TSP Art a špecializé aplikácie
  • Small instances (up to 100 points) - exact solution
  • Medium instances (100-1000 points) - near-optimal solutions using LKH and Robopol Precise algorithms
  • Large instances (1000-10000 points) - quality heuristic solutions
  • Very large instances (10000-50000 points) - TSP Art and specialized applications

Systémové požiadavky

System Requirements

  • Windows 7/8/10/11
  • Minimálne 2GB RAM
  • 100MB voľného miesta na disku
  • Rozlíšenie obrazovky aspoň 1024x768
  • Windows 7/8/10/11
  • Minimum 2GB RAM
  • 100MB free disk space
  • Screen resolution at least 1024x768

Stiahnuť TSP Solver

Download TSP Solver

TSP Solver - Demo verzia

TSP Solver - Demo Version

Bezplatná verzia na vyskúšanie.

Free trial version.

  • Vytvárať body, výpočet do 100 bodov
  • Exportovať trasu ako obrázok
  • Meniť grafické nastavenia
  • Testovať metódy výpočtu do 5000 náhodných bodov
  • TSP Art do 10 000 bodov
  • Create points, calculate up to 100 points
  • Export route as an image
  • Change graphical settings
  • Test calculation methods up to 5000 random points
  • TSP Art up to 10,000 points
Stiahnuť zadarmo Download for free

TSP Solver - Základná licencia

TSP Solver - Basic License

Vhodná pre cestovateľské účely a menšie projekty.

Suitable for travel purposes and smaller projects.

  • Vytvárať body
  • Importovať body z .txt súboru
  • Výpočet do 500 bodov
  • Exportovať trasy
  • Importovať, exportovať obrázky
  • TSP Art (generovanie umeleckých obrázkov)
  • Create points
  • Import points from .txt file
  • Calculate up to 500 points
  • Export routes
  • Import, export images
  • TSP Art (generating artistic images)
Kúpiť licenciu (49 €) Buy license (49 €)
Odporúčané
Recommended

TSP Solver - Profesionál licencia

TSP Solver - Professional License

Vhodná pre firmy v oblasti dopravy a priemyslu.

Suitable for companies in transportation and industry.

  • Vytvárať body
  • Importovať body z .txt súboru
  • Výpočet pre neobmedzený počet bodov
  • Exportovať trasy
  • Importovať, exportovať obrázky
  • TSP Art (generovanie umeleckých obrázkov)
  • Create points
  • Import points from .txt file
  • Calculate for unlimited number of points
  • Export routes
  • Import, export images
  • TSP Art (generating artistic images)
Kúpiť licenciu (129 €) Buy license (129 €)

Často kladené otázky

Frequently Asked Questions

Čo je problém obchodného cestujúceho?

What is the traveling salesman problem?

Problém obchodného cestujúceho (TSP) je úloha nájsť najkratšiu možnú trasu, ktorá prechádza všetkými zadanými bodmi (mestami) práve raz a vráti sa do východiskového bodu. Tento problém patrí medzi NP-ťažké problémy, čo znamená, že pre veľké inštancie neexistuje efektívny algoritmus, ktorý by našiel presné riešenie v rozumnom čase.

The traveling salesman problem (TSP) is the task of finding the shortest possible route that passes through all given points (cities) exactly once and returns to the starting point. This problem belongs to the NP-hard problems, which means that for large instances there is no efficient algorithm that would find an exact solution in a reasonable time.

Aký je rozdiel medzi základnou a profesionálnou verziou?

What is the difference between the basic and professional version?

Základná verzia je obmedzená na maximálne 100 bodov. Profesionálna verzia nemá žiadne obmedzenia počtu bodov, obsahuje všetky algoritmy vrátane pokročilých, ponúka rozšírené možnosti importu/exportu a prioritnú technickú podporu.

The basic version is limited to a maximum of 100 points. The professional version has no limitations on the number of points, includes all algorithms including advanced ones, offers extended import/export options, and priority technical support.

Ako dlho trvá výpočet optimálnej trasy?

How long does it take to calculate the optimal route?

Doba výpočtu závisí od počtu bodov a zvoleného algoritmu. Všetky algoritmy sú vysoko optimalizované:

Calculation time depends on the number of points and the selected algorithm. All algorithms are highly optimized:

  • Prvé spustenie algoritmov je pomalšie z technických dôvodov: Robopol algoritmus využíva knižnicu NUMBA, ktorá pri prvom spustení prekladá Python kód do optimalizovaného strojového kódu (JIT kompilácia), čo výrazne zrýchľuje následné výpočty. Podobne LKH algoritmus, ktorý je implementovaný ako wrapper okolo natívneho kódu, potrebuje pri prvom spustení inicializovať prostredie a načítať potrebné knižnice. Všetky ďalšie výpočty už prebiehajú plnou rýchlosťou.
  • Pre malé inštancie (do 100 bodov) je výpočet takmer okamžitý
  • Pre stredné inštancie (100-1000 bodov) Robopol algoritmus zvláda výpočet v sekundách, LKH algoritmus tiež zvláda výpočet do 1000 bodov v sekundách
  • Pre veľké inštancie (1000-10000 bodov) Robopol algoritmus potrebuje len sekundy na výpočet
  • Pre veľmi veľké inštancie (10000-50000 bodov) ako napríklad TSP Art môže výpočet trvať dlhšie (minuty), ale stále je výrazne rýchlejší ako konkurencia
  • The first run of algorithms is slower for technical reasons: The Robopol algorithm uses the NUMBA library, which translates Python code into optimized machine code (JIT compilation) on first run, significantly speeding up subsequent calculations. Similarly, the LKH algorithm, which is implemented as a wrapper around native code, needs to initialize the environment and load necessary libraries on first run. All subsequent calculations already run at full speed.
  • For small instances (up to 100 points), the calculation is almost instantaneous
  • For medium instances (100-1000 points), the Robopol algorithm handles calculation in seconds, the LKH algorithm also handles calculation up to 1000 points in seconds
  • For large instances (1000-10000 points), the Robopol algorithm needs only seconds for calculation
  • For very large instances (10000-50000 points) such as TSP Art, the calculation may take longer (minutes), but is still significantly faster than competitors

Môžem importovať body z externých zdrojov?

Can I import points from external sources?

Áno, TSP Solver podporuje import bodov z TXT formátov. Presnejšie informácie nájde užívateľ v dokumentácii - help.

Yes, TSP Solver supports importing points from TXT formats. More precise information can be found in the documentation - help.

Aké algoritmy program používa a čím sú výnimočné?

What algorithms does the program use and what makes them special?

TSP Solver používa niekoľko špičkových algoritmov. Medzi najlepšie patria:

TSP Solver uses several cutting-edge algorithms. Among the best are:

  • LKH algoritmus - jeden z najlepších algoritmov pre riešenie TSP, založený na Lin-Kernighan heuristike, ktorý dosáhuje takmer optimálne výsledky aj pre veľké inštancie.
  • Robopol algoritmus - originálny algoritmus vyvinutý autorom Ing. Robertom Polákom, ktorý kombinuje rýchlosť a presnosť.
  • Robopol algoritmus Precise - vylepšená verzia s vyššou presnosťou, ktorá dosáhne takmer optimálne výsledky porovnateľné s LKH algoritmom.
  • LKH algorithm - one of the best algorithms for solving TSP, based on the Lin-Kernighan heuristic, which achieves near-optimal results even for large instances.
  • Robopol algorithm - original algorithm developed by the author Ing. Robert Polák, which combines speed and accuracy.
  • Robopol Precise algorithm - improved version with higher accuracy that achieves near-optimal results comparable to the LKH algorithm.

Tieto algoritmy sú implementované s dôrazom na výkon a efektivitu, čo umožňuje riešiť aj veľmi veľké inštancie TSP problému vrátane TSP Art s desiatkam tisíc bodov.

These algorithms are implemented with an emphasis on performance and efficiency, which allows solving very large instances of the TSP problem including TSP Art with tens of thousands of points.

Čo robiť, keď Windows zobrazí bezpečnostné upozornenie pri inštalácii?

What to do when Windows displays a security warning during installation?

Po stiahnutí inštalačného súboru Vám Windows môže zobraziť okno, že nepozná vydavateľa programu. TSP Solver nie je malware, ide len o bezpečnostné opatrenie Windows pre menších vývojárov. Postupujte nasledovne:

After downloading the installation file, Windows may display a window stating that it doesn't recognize the program publisher. TSP Solver is not malware, this is just a Windows security measure for smaller developers. Proceed as follows:

  1. Kliknite na odkaz "Ďalšie informácie" v bezpečnostnom okne
  2. Potom kliknite na tlačidlo "Napriek tomu spustiť"
  3. Program sa spustí a môžete pokračovať v inštalácii
  1. Click on the "More info" link in the security window
  2. Then click on the "Run anyway" button
  3. The program will start and you can continue with the installation

Toto upozornenie sa zobrazuje, pretože program nie je digitálne podpísaný certifikátom od Microsoft, čo je bežné pre menšie aplikácie.

This warning appears because the program is not digitally signed with a Microsoft certificate, which is common for smaller applications.

Je program vhodný pre reálne logistické úlohy?

Is the program suitable for real logistic tasks?

Áno, TSP Solver je navrhnutý pre praktické použitie v logistike, plánovaní trás, optimalizácii doručovania a podobných úlohách.

Yes, TSP Solver is designed for practical use in logistics, route planning, delivery optimization, and similar tasks.