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
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. Program podporuje 2D aj 3D súradnice (x, y, z) s interaktívnou 3D vizualizáciou. Je vhodný nielen pre logistiku a plánovanie trás, ale aj pre plánovanie trás pre drony, robotiku, a priemyselné aplikácie ako laserové gravírovanie, vŕtanie DPS (plošných spojov) či 3D tlač a CNC stroje, kde optimalizácia trasy výrazne skracuje čas výroby.
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. The program supports both 2D and 3D coordinates (x, y, z) with interactive 3D visualization. It is suitable not only for logistics and route planning, but also for drone flight path planning, robotics, and industrial applications such as laser engraving, PCB drilling (printed circuit boards), or 3D printing and CNC machines, where route optimization significantly reduces production time.
Program bol vyvinutý Ing. Robertom Polákom a obsahuje niekoľko originálnych algoritmov, vrátane Robopol Fast algoritmu s turbo režimom (zvládne aj milióny bodov - 100 000 bodov za cca 1 minútu, omnoho rýchlejší ako LKH) a jeho presnejšej verzie Robopol Precise. Najnovším prírastkom je metóda Robopol Refined, ktorá slúži na hľadanie optimálnych riešení pre male a stredne velke inštancie. Je pomalší ako ostatné heuristiky, ale omnoho rýchlejší ako exaktné algoritmy. Ak LKH nenájde optimum, Refined ho môže nájsť.
The program was developed by Ing. Robert Polák and includes several original algorithms, including the Robopol Fast algorithm with turbo mode (handles even millions of points - 100,000 points in ~1 minute, much faster than LKH) and its more accurate version Robopol Precise. The latest addition is the Robopol Refined method, designed for finding optimal solutions for small and medium-sized instances. It is slower than other heuristics, but much faster than exact algorithms. If LKH doesn't find the optimum, Refined can find it.
Na obrázku nižšie je ukážka, kde metóda Robopol Refined našla výrazne lepšie riešenie ako algoritmus LKH. Tento príklad demonštruje silu ILS (Iterated Local Search) prístupu pri hľadaní globálneho optima.
Robopol Refined dosiahol kratšiu trasu ako LKH pri rovnakom vstupe.
The image below shows an example where the Robopol Refined method found a significantly better solution than the LKH algorithm. This example demonstrates the power of the ILS (Iterated Local Search) approach in finding the global optimum.
Robopol Refined achieved a shorter route than LKH with the same input.
Nájdite najkratšiu možnú trasu medzi ľubovoľným počtom bodov. S turbo režimom zvládne aj milióny bodov.
Find the shortest possible route between any number of points. With turbo mode it handles even millions of points.
Pracujte s 3D súradnicami (x, y, z) pre priestorové optimalizácie. Ideálne pre plánovanie letových trás pre drony, optimalizáciu pohybu robotických ramien, navigáciu v viacposchodových skladoch či optimalizáciu dráhy pre 3D tlač a CNC stroje. Interaktívna 3D vizualizácia umožňuje rotáciu a priblíženie výslednej trasy.
Work with 3D coordinates (x, y, z) for spatial optimizations. Ideal for drone flight path planning, optimizing movement of robotic arms, navigation in multi-floor warehouses, or path optimization for 3D printing and CNC machines. Interactive 3D visualization allows rotation and zoom of the resulting route.
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.
Využíva originálne algoritmy Robopol Fast (s turbo režimom pre milióny bodov), Robopol Precise a Robopol Refined, ako aj špičkový LKH algoritmus.
Uses original Robopol Fast (with turbo mode for millions of points), Robopol Precise, and Robopol Refined algorithms, as well as the state-of-the-art LKH algorithm.
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.
Vypočítajte optimálnu trasu s rešpektovaním cestnej siete. Výslednú trasu môžete otvoriť priamo v Google Mapách a odoslať do navigácie vo vašom telefóne.
Calculate the optimal route respecting the actual road network. Open the resulting route directly in Google Maps and send it to your phone for navigation.
Rozdeľte trasu medzi viac vozidiel pomocou LKH algoritmu. Podporuje AIR 2D, AIR 3D aj cestné vzdialenosti. Nastavte počet vozidiel, depot, cieľ optimalizácie (MINSUM/MINMAX) a limity zastávok na vozidlo. Dostupné v Professional licencii.
Split routes between multiple vehicles using LKH algorithm. Supports AIR 2D, AIR 3D and road distances. Set number of vehicles, depot, optimization objective (MINSUM/MINMAX) and stops limits per vehicle. Available in Professional license.
Aplikácia je plne responzívna a optimalizovaná pre pohodlné používanie na tabletoch a smartfónoch. Navyše je teraz dostupná aj online na tspsolver.robopol.sk bez nutnosti inštalácie.
The application is fully responsive and optimized for convenient use on tablets and smartphones. Additionally, it is now also available online at tspsolver.robopol.sk without requiring installation.
Sledujte, ako algoritmus Robopol Fast spojí 100 000 bodov do jedinej čiary a vytvorí
portrét Johna Wicka.
Viac
o TSP Art →
Watch how the Robopol Fast algorithm connects 100,000 points into a single continuous
line to create a John Wick portrait.
More
about TSP Art →
Hlavné okno programu s náhodne generovanými bodmi
Main program window with randomly generated points
Vizualizácia optimálnej trasy pre mestá v Českej republike
Optimal route visualization for cities in the Czech Republic
TSP Traveling Salesman Problem - Trasa cez Paríž
TSP Traveling Salesman Problem - Route through Paris
TSP Traveling Salesman Problem - Trasa cez Finsko
TSP Traveling Salesman Problem - Route through Finland
Zadajte body (mestá) buď manuálne kliknutím na plátno, importom zo súboru, alebo zadaním adries pre geocoding (cestné vzdialenosti).
Enter points (cities) either manually by clicking on the canvas, by importing from a file, or by entering addresses for geocoding (road distances).
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.
Program vypočíta optimálnu trasu pomocou vybraného algoritmu.
The program calculates the optimal route using the selected algorithm.
Prehliadnite si výsledky vrátane grafickej vizualizácie trasy a štatistík.
View the results including graphical route visualization and statistics.
TSP Solver využíva kombináciu nasledujúcich algoritmov:
TSP Solver uses a combination of the following algorithms:
Pri optimalizovanom nastavení parametrov pre n < 1000 (Num Runs>1, Beam Width> 3, ILS Iterations ≥ 2000, Perturbation Candidates = 16, Candidate Edges/Node = 10) dokáže metóda Robopol Refined nájsť lepšie riešenia ako LKH, ak LKH nenájde optimum.
With optimized parameter settings for n < 1000 (Num Runs>1, Beam Width> 3, ILS Iterations ≥ 2000, Perturbation Candidates = 16, Candidate Edges/Node = 10), the Robopol Refined method can find better solutions than LKH when LKH doesn't find the optimum.
Program dokáže efektívne riešiť:
The program can efficiently solve:
Najnovšia verzia: TSP Solver 2.0.5 - s vylepšenými funkciami a optimalizovanými algoritmami
Latest version: TSP Solver 2.0.5 - with improved features and optimized algorithms
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.
Základná verzia je obmedzená na maximálne 5000 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 5000 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.
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:
Á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.
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:
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 miliónmi 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 millions of points.
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:
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.
Áno, TSP Solver je navrhnutý pre praktické použitie v logistike, plánovaní trás a optimalizácii doručovania. Okrem toho je vhodný aj pre priemyselné aplikácie ako laserové gravírovanie alebo vŕtanie DPS (plošných spojov), kde sú často tisíce až milióny bodov a optimalizácia trasy výrazne skracuje čas výroby.
Yes, TSP Solver is designed for practical use in logistics, route planning, and delivery optimization. Additionally, it is suitable for industrial applications such as laser engraving or PCB drilling (printed circuit boards), where there are often thousands to millions of points and route optimization significantly reduces production time.