コード例 #1
0
 protected Problem(ProblemStats stats, IReadOnlyCollection <City> cities, List <Item> items)
 {
     Stats              = stats;
     CityIds            = cities.Select(city => city.Id).ToList();
     InterCityDistances = BuildInterCityDistances(cities);
     Items              = items;
 }
コード例 #2
0
 protected Problem(ProblemStats stats, List <int> cityIds, Dictionary <CityCity, double> interCityDistances,
                   List <Item> items)
 {
     Stats              = stats;
     CityIds            = cityIds;
     InterCityDistances = interCityDistances;
     Items              = items;
 }