public override void Initialize(Population population, Type rootType) { _generatorFull.InstructionSetRepository = InstructionSetRepository; for (int i = 0; !population.IsFull; i++) { var syntaxTree = new SyntaxTree(); var rootStatements = RandomValueGenerator.Instance.GetInt(SyntaxConfiguration.Current.RootMaxStatements) + 1; for (int j = 0; j < rootStatements; j++) { TreeNode root; root = _generatorFull.GetSyntaxTree(MaxTreeDepth, rootType); syntaxTree.AddRootNode(root); } population.Add(new Individual(syntaxTree)); } }