<div dir="ltr">Hi Steve,<div>It is nice to hear that finally the vrp-basic is getting merged. I have may thesis defense ahead. I hope I will be free within next three weeks. I will have look at the issues regarding vrp then. Also, I remember some error checking and some improvement was pending.</div>
<div><br></div><div>- Razequl<br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Apr 25, 2014 at 3:44 AM, 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 Razequl,<br>
<br>
I am trying to merge your gsoc-vrp branch into develop and it seems to have come over without a problem, except I'm having a problem creating a repeatable test case for our test tools.<br>
<br>
I need a way to create a test case that will always return the same result for the same input.<br>
<br>
Things I have tried so far are:<br>
<br>
1. set seed for the random number generator. Although rand() starts with a a seed of 1 so I'm not sure it matters but in CVRPSolver::getSolution() I have added srand(1726354); but this does not help.<br>
<br>
2. in the test sql I changed it to:<br>
<br>
select * from pgr_vrpOneDepot(<br>
'select * from vrp_orders order by id'::text,<br>
'select * from vrp_vehicles order by vehicle_id'::text,<br>
'select * from vrp_distance order by src_id, dest_id'::text,<br>
1 ) ORDER BY vid, opos;<br>
<br>
So I order the inputs and the outputs so there is not chance that the queries to fetch data get loaded in a different order ot that the results re ordered differently.<br>
<br>
Obviously there is some other randomness in the TABU search that is not obvious to me.<br>
<br>
Can you help me understand this and point out how I might be able to get this to work to return consistent results from run to run?<br>
<br>
Best regards and many thanks if you can help,<br>
-Steve<br>
<br>
PS: I hope you are doing well. We just got 2 new students approved for GSoC again this year. I hope you will stop by the list and say how when you have some free time and let us know what you are doing these days.<br>
</blockquote></div><br></div>