Returns the matrix api the optimized path


#1

Hello,

Returns the matrix api the optimized path or have i to optimize it by me, if i have to do how can i do that if path look like attachment, every node have to be visited but on the special node the distance to the one will be smaller tgan to the other but it would be smarter to visit reversed.

It would be clever to visit from D to E than go to A, can someone help me?


#2

Uff, sorry, not understanding anything
Anyways, it doesn’t optimize, it’s just a precursor for optimization as all optimization engines expect a symmetrical matrix. Look at vroom, jsprit or ortools. All of them do what you want.