예제 #1
0
 public PopulationGenerator(IProblemDecoder problemDecoder, int nonProfitDestinations)
 {
     ProblemDecoder = problemDecoder;
     AmountOfDestinations = problemDecoder.Provider.GetAmountOfDestinations();
     PopulationSize = 8;
     Generation = 0;
     NonProfitDestinations = nonProfitDestinations;
 }
예제 #2
0
 public EncodedSolution(IProblemDecoder problemDecoder, List<RandomKey> randomKeys)
 {
     ProblemDecoder = problemDecoder;
     RandomKeys = randomKeys;
 }