Commit 8bc7ee5d authored by Sebastian Hörl's avatar Sebastian Hörl
Browse files

fix

parent 3212e04e
......@@ -44,7 +44,7 @@ public abstract class BaseUtilityEstimator extends AbstractTripRouterEstimator {
List<TripCandidate> previousTrips, List<? extends PlanElement> routedTrip) {
PersonVariables personVariables = new PersonVariables();
personVariables.age_10a = 0.1 * (Double) person.getAttributes().getAttribute("age");
personVariables.age_10a = 0.1 * (double) (Integer) person.getAttributes().getAttribute("age");
personVariables.income_1000CHF = (Double) person.getAttributes().getAttribute("householdIncome") * 1e-3;
personVariables.isMale = ((String) person.getAttributes().getAttribute("sex")).equals("m");
personVariables.carAlwaysAvailable = ((String) person.getAttributes().getAttribute("carAvail"))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment