--
You received this message because you are subscribed to the Google Groups "GAMA" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gama-platfor...@googlegroups.com.
To post to this group, send email to gama-p...@googlegroups.com.
Visit this group at http://groups.google.com/group/gama-platform.
For more options, visit https://groups.google.com/d/optout.
map<road,float> weights_map <- road as_map(each::(each.shape.perimeter * step / each.max_speed)) ;
do goto target: dest on: le_graphe; //speed = 1
--
Hi,Just some questions to give me a better idea of your model:- did you define a specific speed limit per road?
- do trucks have a constant speed? do they all drive at the same speed?
- if they do not have a constant speed:- is their speed the speed limit of each road (or something like alpha * limit_speed_road with alpha a constant)?
- something else?Note that with GAMA 1.6.1, a new traffic skill will be available. This traffic skill allows realist simulations of traffic but is more adapted to 1 second/per step simulation : http://agents.fel.cvut.cz/att2014/att2014_paper_3.pdf
float step <- 30°mn;
map weights <- road as_map (each::(each.shape.perimeter / (each.maxspeed °km/°h) /step));
road_graph <- as_edge_graph(road) with_weights weights;
do goto target: target on: road_graph speed: 1.0;
4. you could also use another simple logic = by using free flow travel time, more time is less speed. So you can try each::(each.free_flow_time) // where you calculate free_flow_time as perimeter/speed)regards,Srirama
map<road,float> weights_map <- road as_map(each::(each.shape.perimeter * 1000) / each.max_speed / step );