Unfortunately I've been a bit too hasty. Indeed, simulation does not hang any longer, but the result returned is simply null ?
This surprises me, as I have taken care to localize all agents on the roadnetwork itself, as follows :
create carrier number: nb_carriers
{
point tmp <- any_location_in(one_of(arrondissements)) ;
location <- point(road closest_to tmp) ;
}
create retailer number: nb_retailers
{
point tmp <- any_location_in(one_of(quartiers));
location <- point(road closest_to tmp) ;
do extract_init_data_retailers() ;
}
Am I missing something ? My road network is perhaps simply to big and should be down-sized ?
Thanks a lot for your help,
Thomas
P.S.
With regard to the zip-file, I've found another bug at line 312 (and 330). I expected the "self" keyword to behave as "this" in Java when passed as a parameter in a dotted functioncall :
int home_time_needed <- world.compute_traveltime(self,(currentgene.delivery_route at 0)) ;
but this was not the case and I have corrected into the following :
int home_time_needed <- 0 ;
ask world
{
set home_time_needed <- compute_traveltime(myself,(currentgene.delivery_route at 0)) ;
}