Ejemplo n.º 1
0
        public void Init(string path, Random gen)
        {
            functionA = new FunctionApproximation();
            functionA.LoadKnownValuesFromFile(path);

            int headSize = 5;

            gp               = new GeneticProgramming(gen, headSize, new string[] { "x" });
            gp.PopSize       = 1000;
            gp.ElitismCount  = 10;
            gp.MateCount     = 50;
            gp.MutationCount = 1000;
            gp.Inputs        = functionA.knownValues;
        }
Ejemplo n.º 2
0
 public HillClimbing()
 {
     fa = new FunctionApproximation();
     fa.LoadKnownValuesFromFile("FuncAppr1.txt");
 }