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; }
public HillClimbing() { fa = new FunctionApproximation(); fa.LoadKnownValuesFromFile("FuncAppr1.txt"); }