+ profile->props_yes[i]/=100;
+ profile->props_no [i] =1-profile->props_yes[i];
+
+ /* Squash the properties; selecting 60% preference without the sqrt() allows
+ routes 50% longer on highways with the property compared to ones without.
+ With the sqrt() function the ratio is only 22% allowing finer control. */
+
+ profile->props_yes[i] =sqrt(profile->props_yes[i]);
+ profile->props_no [i] =sqrt(profile->props_no[i] );
+
+ if(profile->props_yes[i]<0.0001)
+ profile->props_yes[i]=0.0001;
+
+ if(profile->props_no[i]<0.0001)
+ profile->props_no[i]=0.0001;