<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jun 14, 2013 at 10:07 PM, Stephen Woodbridge <span dir="ltr"><<a href="mailto:woodbri@swoodbridge.com" target="_blank">woodbri@swoodbridge.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Dave,<br>
<br>
I'm not totally opposed to this, but I would like to discuss how you plan to structure the data and what your query would look like.<br>
<br>
There is another possibility that I like better and that would be to write stored procedure that takes you sql query and returns a matrix.<br>
<br>
matrix[][] pgr_matrix(sql text)<br>
<br>
Then you can do something like:<br>
<br>
select * from pgr_tsp(pgr_matrix('select * from matrix_table'), 27);<br>
<br></blockquote><div><br></div><div style>This idea I really like, because we might also be able to use it then for Razequl's VRP solver.</div><div style><br></div><div style>Daniel</div><div><br></div><div><br></div>
<div><br></div><div><br></div><div> </div></div>-- <br><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse">Georepublic UG & Georepublic Japan<br>eMail: <a href="mailto:daniel.kastl@georepublic.de" style="color:rgb(66,99,171)" target="_blank">daniel.kastl@georepublic.de</a><br>
Web: <a href="http://georepublic.de/" style="color:rgb(66,99,171)" target="_blank">http://georepublic.de</a></span>
</div></div>