Beispiel #1
0
        protected override PopInitInstruction <P, S> LoadDefaultInstruction()
        {
            GEPPopInitInstruction_Random <P, S> instruction = new GEPPopInitInstruction_Random <P, S>();

            instruction.ChromosomeLengthRequested += () =>
            {
                return(ChromosomeLengthRequested());
            };
            return(instruction);
        }
Beispiel #2
0
 protected override PopInitInstruction <P, S> LoadInstructionFromXml(string selected_strategy, XmlElement xml_level1)
 {
     if (selected_strategy == "random")
     {
         GEPPopInitInstruction_Random <P, S> instruction = new GEPPopInitInstruction_Random <P, S>(xml_level1);
         instruction.ChromosomeLengthRequested += () =>
         {
             return(ChromosomeLengthRequested());
         };
         return(instruction);
     }
     else
     {
         throw new NotImplementedException();
     }
 }
        public override PopInitInstruction <P, S> Clone()
        {
            GEPPopInitInstruction_Random <P, S> clone = new GEPPopInitInstruction_Random <P, S>();

            return(clone);
        }