<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Just looked at the write up for the
tsp, ok the answer will be in the range 0-(X-1) where X is the
number of points provided, the returned index starts of at zero in
set as one as found in postgres arrays. But I do not understand
the remark id, 'index into the matrix' the matrix is a two
dimension so I I don't understand how the index is desgined to
work!<br>
<br>
<br>
On 23/06/13 10:04, Dave Potts wrote:<br>
</div>
<blockquote cite="mid:51C6BA06.4020708@pinan.co.uk" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
I having some problems with the tsp<br>
<br>
I have a matrix
{{0,31,22,42},{31,0,90,2},{22,90,0,27},{42,2,27,0}}, starting at
node 2, I get the answer <br>
seq | id <br>
-----+----<br>
0 | 2<br>
1 | 3<br>
2 | 1<br>
3 | 0<br>
(4 rows)<br>
using the matrix <br>
<br>
{{0,22,42,31},{22,0,27,90},{42,27,0,2},{31,90,2,0}} starting at
node 4 I get the answer<br>
seq | id <br>
-----+----<br>
0 | 0<br>
1 | 1<br>
2 | 2<br>
3 | 3
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<br>
The matrix is topological identicial, I start off at the same
topological node, so I was expecting the same answer, also I was
expecting all nodes to be in the result set ie nodes 1,2,3 and 4,
for some strange reason I get 0.<br>
<br>
Is there some mistake in my data?<br>
<br>
regards<br>
<br>
<br>
Dave.<br>
<br>
<br>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
pgrouting-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:pgrouting-dev@lists.osgeo.org">pgrouting-dev@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/pgrouting-dev">http://lists.osgeo.org/mailman/listinfo/pgrouting-dev</a>
</pre>
</blockquote>
<br>
</body>
</html>