Example #1
0
    void Start()
    {
        Config.SetIndividualsPerPopulation(14);
        Config.SetElite(4);
        Config.SetMutationRate(4.5f);
        Config.SetJumps(30);
        Config.SetMinMaxJumpFrames(0, 80);

        PopulationHelper.Init();
        PopulationHelper.StartIndividual(0);
    }
    void Start()
    {
        Config.SetLogFile("log.json");
        Config.SetIndividualsPerPopulation(20);
        Config.SetElite(4);
        Config.SetCrossover(Config.CrossoverAlgorithm.OneOfEach);
        Config.SetMutation(10.5f, Config.MutationAlgorithm.ModifiedValue);
        Config.SetJumps(30);
        Config.SetMinMaxJumpFrames(0, 65);

        PopulationHelper.Init();
        PopulationHelper.StartIndividual(0);
    }