[pgrouting-users] tsp_dijkstra

Emre Koc emrekoch at gmail.com
Wed Jan 26 04:25:31 EST 2011


Hi Anton,

There is also something that I did not understand. We are using both cost
and reverse_cost in tsp_dijkstra_directed when we call dijkstra. but we only
define reverse_cost after calling tsp in the query

query := 'SELECT vertex_id FROM tsp(''select distinct source::integer as
source_id, '||
    'x(startpoint(the_geom)), y(startpoint(the_geom))';

IF rc THEN query := query || ' , *reverse_cost *';

why do we use only reverse_cost and not the cost ?

/emre


On Wed, Jan 26, 2011 at 5:08 AM, Anton Patrushev <
anton.patrushev at georepublic.de> wrote:

> Hi Emre,
>
> Oh my! Thank you for reporting this. It must be fixed.
> I don't remember now what I meant by this, so please give me few days to
> fix it.
>
> Sorry,
> Anton.
> _______________________________________________
> Pgrouting-users mailing list
> Pgrouting-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/pgrouting-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/pgrouting-users/attachments/20110126/2909b2f6/attachment-0001.html


More information about the Pgrouting-users mailing list