public void LoadGeneration(int generationIndex, float[,] floatArr) { UIO.LoadFloatArray(GeneratePath() + generationIndex, "/population.gene", floatArr); population = Matrix <float> .Build.DenseOfArray(floatArr); //population.SetSubMatrix(rowIndex, 0, Matrix<float>.Build.DenseOfArray(floatArr)); }
/** * \brief Load the generation * \details load the complete population and the best individual in two files. The path depends on GeneratePath() */ public void LoadGeneration(string path, int generationIndex, float[,] floatArr, int rowIndex) { UIO.LoadFloatArray(path + generationIndex, "/population.gene", floatArr); Matrix <float> partialPopulation = Matrix <float> .Build.DenseOfArray(floatArr); population.SetSubMatrix(rowIndex, 0, partialPopulation); }
public static void LoadBest(string path, int generationIndex, float[] floatArr) { UIO.LoadFloatArray(path + generationIndex, "/best.gene", floatArr); }
/** * \brief Load the best individual * \details load the complete population and the best individual in two files. The path depends on GeneratePath() */ public void LoadBest(int generationIndex, float[] floatArr) { UIO.LoadFloatArray(GeneratePath() + generationIndex, "/best.gene", floatArr); }