Historical Traffic Data Attributes

Discussion created by aredsell on Jan 10, 2013
Latest reply on Jan 11, 2013 by rgarrity-esristaff
I am trying to make a road network that uses the location allocation within network analyst.
This network needs to use historical traffic data to determine travel time but optimise on transport cost.

To do this I have a number of attributes, including:
TrafficTime - the travel time based on historical traffic data
FallbackTime - the travel time based on the road speed limit
TimeCost - the time component of transport cost

Time cost is a script evaluator with an hourly rate (~$50) as a parameter (HourlyCost)
I have written the evaluator as:
TimeCost = Edge.AttributeValueByName("TrafficTime")*ParameterValueByName("HouryCost")

I know that the TrafficTime and FallbackTime evaluators are working correctly.
When I run this I get a TrafficTime of 3.3 hours and a FallbackTime of 1.1 hours.

The problem is with the TimeCost evaluator. No matter how I write it, the FallbackTime is always used, not the TrafficTime.
e.g. I always get $55 (1.1*50) instead of $165 (3.3 * 50)

Can someone please tell me what I have done wrong? Why is the FallbackTime always being used? Is there a way around this?