# Why only 10 to 12 waypoints for optimization?

**URL:** <https://forums.eveonline.com/t/why-only-10-to-12-waypoints-for-optimization/143742>\
**Category:** General Discussion\
**Created:** [March 4, 2019, 2:24am UTC](https://forums.eveonline.com/t/why-only-10-to-12-waypoints-for-optimization/143742 "2019-03-04T02:24:42Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mark\_O\_Helm](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/mark_o_helm/32/154936_2.png) [@Mark\_O\_Helm](https://forums.eveonline.com/u/Mark_O_Helm)\
**Post date:** [March 4, 2019, 2:24am UTC](https://forums.eveonline.com/t/why-only-10-to-12-waypoints-for-optimization/143742/1 "2019-03-04T02:24:42Z")

</div>

When planning a route the waypoint limitation for optimization seems to be 10. Though i managed to fit 12 into it, but the calculation took a while.  
How can it be improved? On my side or on the server side?

Edit. SPOILER: fascinating technobabble ahead. 😁

---

<div class="post-metadata">

**Author:** ![Jint\_Hikaru](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/jint_hikaru/32/387656_2.png) [@Jint\_Hikaru](https://forums.eveonline.com/u/Jint_Hikaru)\
**Post date:** [March 4, 2019, 4:03am UTC](https://forums.eveonline.com/t/why-only-10-to-12-waypoints-for-optimization/143742/2 "2019-03-04T04:03:30Z")

</div>

[The Traveling Salesman Problem](https://en.wikipedia.org/wiki/Travelling_salesman_problem)

I think the calculation exponentially increases every time you add a waypoint, until you break the server 😀

---

<div class="post-metadata">

**Author:** ![Phrynohyas\_Tig-Rah](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/phrynohyas_tig-rah/32/420039_2.png) [@Phrynohyas\_Tig-Rah](https://forums.eveonline.com/u/Phrynohyas_Tig-Rah)\
**Post date:** [March 4, 2019, 8:31am UTC](https://forums.eveonline.com/t/why-only-10-to-12-waypoints-for-optimization/143742/3 "2019-03-04T08:31:03Z")

</div>

> [@Jint\_Hikaru](#):
>
> until you break the server

The route is calculated locally, not on the server

---

<div class="post-metadata">

**Author:** ![Solstice\_Projekt](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/solstice_projekt/32/503293_2.png) [@Solstice\_Projekt](https://forums.eveonline.com/u/Solstice_Projekt)\
**Post date:** [March 4, 2019, 9:06am UTC](https://forums.eveonline.com/t/why-only-10-to-12-waypoints-for-optimization/143742/4 "2019-03-04T09:06:53Z")

</div>

No, it isn’t. It’s calculated on the server.

Proof is the fact that you can use ESI to plot a course …  
… aka start, end, waypoints …  
… and ESI sends you back the route.

---

<div class="post-metadata">

**Author:** ![Phrynohyas\_Tig-Rah](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/phrynohyas_tig-rah/32/420039_2.png) [@Phrynohyas\_Tig-Rah](https://forums.eveonline.com/u/Phrynohyas_Tig-Rah)\
**Post date:** [March 4, 2019, 1:04pm UTC](https://forums.eveonline.com/t/why-only-10-to-12-waypoints-for-optimization/143742/5 "2019-03-04T13:04:27Z")

</div>

Hmm, prolly I missed smth here. I see only 2 endpoints:

- `GET /route/{origin}/{destination}/` - route between 2 system. These routes are static more ore less (guess they can be affected by user’s avoidance lists / automilot settings? - too lazy to check this)

- `POST /ui/autopilot/waypoint` - adds a waypoint to the end of already existing route

For server calcualtion there should be an endpoint that would accept a list of desired waypoints and return them in some “optimized” order and I don’t see such endpoint

---

<div class="post-metadata">

**Author:** ![Solstice\_Projekt](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/solstice_projekt/32/503293_2.png) [@Solstice\_Projekt](https://forums.eveonline.com/u/Solstice_Projekt)\
**Post date:** [March 4, 2019, 1:40pm UTC](https://forums.eveonline.com/t/why-only-10-to-12-waypoints-for-optimization/143742/6 "2019-03-04T13:40:44Z")

</div>

I’ve checked my webgl map code, which has routes implemented, and apparently you’re right! My memory tricked me into believing otherwise! Seems I’ve just connected seperate routes as if they had waypoints. To be fair, it’s been a while since I’ve been working on this.

The server still can be used to “solve” any particular travelling-salesman-problem, though.  
Thank you for the idea, I will try this some day. 😊

And it just hit me that you MUST be right, because in the end it’s the client that’s literally halting because of it. Ah, man, ■■■■■■ up this one really badly. 🙂

---

<div class="post-metadata">

**Author:** ![Mark\_O\_Helm](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/mark_o_helm/32/154936_2.png) [@Mark\_O\_Helm](https://forums.eveonline.com/u/Mark_O_Helm)\
**Post date:** [March 4, 2019, 1:44pm UTC](https://forums.eveonline.com/t/why-only-10-to-12-waypoints-for-optimization/143742/7 "2019-03-04T13:44:41Z")

</div>

> [@Solstice\_Projekt](#):
>
> The server still can be used to “solve” any particular travelling-salesman-problem, though.

But how?  
Btw. I tried dotlan, but the optimize button did nothing to help. Or did i do it wrong? And experiences?

Any other third party programs for that problem available?  
Or should i ask again in 10 years or so, to give the nerds time, to figure it out?

---

<div class="post-metadata">

**Author:** ![Jonah\_Gravenstein](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/jonah_gravenstein/32/386819_2.png) [@Jonah\_Gravenstein](https://forums.eveonline.com/u/Jonah_Gravenstein)\
**Post date:** [March 4, 2019, 1:44pm UTC](https://forums.eveonline.com/t/why-only-10-to-12-waypoints-for-optimization/143742/8 "2019-03-04T13:44:53Z")

</div>

Slightly offtopic.

If you set the right systems in the avoid list it’s possible to be 2,147,483,647 jumps from your destination. WH’s are always that far away from anywhere, confused the hell out of me first time I saw it.

32 bit integers ftw.

---

<div class="post-metadata">

**Author:** ![Steve\_Ronuken](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/steve_ronuken/32/373894_2.png) [@Steve\_Ronuken](https://forums.eveonline.com/u/Steve_Ronuken)\
**Post date:** [March 4, 2019, 1:48pm UTC](https://forums.eveonline.com/t/why-only-10-to-12-waypoints-for-optimization/143742/9 "2019-03-04T13:48:01Z")

</div>

If anyone works out how to do travelling salesman in linear time, UPS would like a word.

---

<div class="post-metadata">

**Author:** ![Mark\_O\_Helm](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/mark_o_helm/32/154936_2.png) [@Mark\_O\_Helm](https://forums.eveonline.com/u/Mark_O_Helm)\
**Post date:** [March 4, 2019, 1:48pm UTC](https://forums.eveonline.com/t/why-only-10-to-12-waypoints-for-optimization/143742/10 "2019-03-04T13:48:44Z")

</div>

😂😂😂😂😂

---

<div class="post-metadata">

**Author:** ![Solstice\_Projekt](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/solstice_projekt/32/503293_2.png) [@Solstice\_Projekt](https://forums.eveonline.com/u/Solstice_Projekt)\
**Post date:** [March 4, 2019, 1:49pm UTC](https://forums.eveonline.com/t/why-only-10-to-12-waypoints-for-optimization/143742/11 "2019-03-04T13:49:57Z")

</div>

I’ll try it out first, then talk about it later. Currently busy with other things, but when I need distraction, I’m going to try it. I do believe, though, that you can figure it out for yourself. The reason for this is not because I’m not going to try it, despite saying, but for the same reason I never released my script that’s downloading the war data from ESI.

I hog bandwidth, and processing power, like I own it. : - )

---

<div class="post-metadata">

**Author:** ![Solstice\_Projekt](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/solstice_projekt/32/503293_2.png) [@Solstice\_Projekt](https://forums.eveonline.com/u/Solstice_Projekt)\
**Post date:** [March 4, 2019, 1:50pm UTC](https://forums.eveonline.com/t/why-only-10-to-12-waypoints-for-optimization/143742/12 "2019-03-04T13:50:52Z")

</div>

I’d like to add that I didn’t mention anything about reasonable timeframes! 😊

---

<div class="post-metadata">

**Author:** ![Mark\_O\_Helm](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/mark_o_helm/32/154936_2.png) [@Mark\_O\_Helm](https://forums.eveonline.com/u/Mark_O_Helm)\
**Post date:** [March 4, 2019, 1:53pm UTC](https://forums.eveonline.com/t/why-only-10-to-12-waypoints-for-optimization/143742/13 "2019-03-04T13:53:05Z")

</div>

Sadly i have no idea how to use ESI(whatever that techno babble means) 😁 or the other technical stuff here.

---

<div class="post-metadata">

**Author:** ![Solstice\_Projekt](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/solstice_projekt/32/503293_2.png) [@Solstice\_Projekt](https://forums.eveonline.com/u/Solstice_Projekt)\
**Post date:** [March 4, 2019, 1:55pm UTC](https://forums.eveonline.com/t/why-only-10-to-12-waypoints-for-optimization/143742/14 "2019-03-04T13:55:30Z")

</div>

[https://esi.evetech.net/](https://esi.evetech.net/)

It’s the database and, indirectly, processing power available to players. There’s examples in every of these foldable/clickable thingies, see “Try it out”. Only needs a “curl”, which you need to download seperately for windows. It’s a command line utility.

I apologize for blindly assuming you’re using windows just because you don’t know ESI.

---

<div class="post-metadata">

**Author:** ![Mark\_O\_Helm](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/mark_o_helm/32/154936_2.png) [@Mark\_O\_Helm](https://forums.eveonline.com/u/Mark_O_Helm)\
**Post date:** [March 4, 2019, 2:00pm UTC](https://forums.eveonline.com/t/why-only-10-to-12-waypoints-for-optimization/143742/15 "2019-03-04T14:00:16Z")

</div>

Thanks. I’ll read into it.

---

<div class="post-metadata">

**Author:** ![Solstice\_Projekt](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/solstice_projekt/32/503293_2.png) [@Solstice\_Projekt](https://forums.eveonline.com/u/Solstice_Projekt)\
**Post date:** [March 4, 2019, 2:05pm UTC](https://forums.eveonline.com/t/why-only-10-to-12-waypoints-for-optimization/143742/16 "2019-03-04T14:05:04Z")

</div>

In any case would I advise against brute forcing it by hammering ESI. Which I would never do either and have never done. Nope. Not at all.

Pedro once challenged me with the travelling salesman problem, and I don’t think that there is a way of solving many jumps in reasonable a short time.

Why would you care anyway? It’s seems silly to think that throwing 1000s of hours of compute at the optimization of a route is going to help you, because it’s not worth it saving one or two jumps compared to the time wasted with this.

Still … fascinating topic. Now I hate you.

---

<div class="post-metadata">

**Author:** ![Mark\_O\_Helm](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/mark_o_helm/32/154936_2.png) [@Mark\_O\_Helm](https://forums.eveonline.com/u/Mark_O_Helm)\
**Post date:** [March 4, 2019, 2:14pm UTC](https://forums.eveonline.com/t/why-only-10-to-12-waypoints-for-optimization/143742/17 "2019-03-04T14:14:26Z")

</div>

😂😂😂  
I’m sorry to hear this, though it made me laugh pretty hard.

I looked into that esi thing and i decided to use, what the route planer allowes me to do with it.

Btw. the plan was a weekly trip to all ice systems in high sec for a new project. I’ll figure something out.

Thanks for the help. To all of you. 😊😊😊

---

<div class="post-metadata">

**Author:** ![Shai\_Hulud](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/shai_hulud/32/279251_2.png) [@Shai\_Hulud](https://forums.eveonline.com/u/Shai_Hulud)\
**Post date:** [March 4, 2019, 2:39pm UTC](https://forums.eveonline.com/t/why-only-10-to-12-waypoints-for-optimization/143742/18 "2019-03-04T14:39:34Z")

</div>

> [@Steve\_Ronuken](#):
>
> If anyone works out how to do travelling salesman in linear time, UPS would like a word.

I doubt anyone would “outbid” the NSA for such a method.

The image of Jesse at the end of Breaking Bad (on the leash) comes to mind…

---

<div class="post-metadata">

**Author:** ![Mark\_O\_Helm](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/mark_o_helm/32/154936_2.png) [@Mark\_O\_Helm](https://forums.eveonline.com/u/Mark_O_Helm)\
**Post date:** [March 4, 2019, 2:48pm UTC](https://forums.eveonline.com/t/why-only-10-to-12-waypoints-for-optimization/143742/19 "2019-03-04T14:48:57Z")

</div>

> [@Shai\_Hulud](#):
>
> The image of Jesse at the end of Breaking Bad (on the leash) comes to mind…

SPOILERS GODDAMMIT.

Oh, wait. I don’t care. Never watched it. 🕶

---

<div class="post-metadata">

**Author:** ![Solstice\_Projekt](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/solstice_projekt/32/503293_2.png) [@Solstice\_Projekt](https://forums.eveonline.com/u/Solstice_Projekt)\
**Post date:** [March 4, 2019, 4:27pm UTC](https://forums.eveonline.com/t/why-only-10-to-12-waypoints-for-optimization/143742/20 "2019-03-04T16:27:56Z")

</div>

> [@Shai\_Hulud](#):
>
> I doubt anyone would “outbid” the NSA for such a method.

Why the NSA now?

[Next page](https://forums.eveonline.com/t/why-only-10-to-12-waypoints-for-optimization/143742.md?page=2)
