private double EvaluateHousehold(ITashaHousehold household)
        {
            double fitness = 0;

            foreach (var p in household.Persons)
            {
                foreach (var chain in p.TripChains)
                {
                    foreach (var trip in chain.Trips)
                    {
                        var value = Math.Log((EvaluateTrip(trip) + 1.0) / (HouseholdIterations + 1.0));
                        Array.Clear(trip.ModesChosen, 0, trip.ModesChosen.Length);
                        fitness += value;
                    }
                    chain.Release();
                }
                p.Release();
            }
            household.Release();
            return(fitness);
        }
 private double EvaluateHousehold(ITashaHousehold household)
 {
     double fitness = 0;
     foreach(var p in household.Persons)
     {
         foreach(var chain in p.TripChains)
         {
             foreach(var trip in chain.Trips)
             {
                 var value = Math.Log((EvaluateTrip(trip) + 1.0) / (HouseholdIterations + 1.0));
                 Array.Clear(trip.ModesChosen, 0, trip.ModesChosen.Length);
                 fitness += value;
             }
             chain.Release();
         }
         p.Release();
     }
     household.Release();
     return fitness;
 }