Пример #1
0
        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));
        }
Пример #2
0
        /**
         * \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);
        }
Пример #3
0
 public static void LoadBest(string path, int generationIndex, float[] floatArr)
 {
     UIO.LoadFloatArray(path + generationIndex, "/best.gene", floatArr);
 }
Пример #4
0
        /**
         * \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);
        }