Cream.DefaultSolver.GetGeneratedSolution C# (CSharp) Method

GetGeneratedSolution() private method

private GetGeneratedSolution ( ) : void
return void
        private void GetGeneratedSolution()
        {
            var solutionWeight = GetSolutionWeight();

            // timeSpentToCheck = DateTime.Now.Ticks - timeSpentToCheck;
            if ((!IsBetterSolution(solutionWeight) || SolverStrategy != StrategyMethod.Soft) &&
                SolverStrategy == StrategyMethod.Soft) return;
            solution = new Solution(network) {Weight = solutionWeight, Time = GetElapsedTime()};
            //Console.WriteLine("solution: " + solution);
            //File.AppendAllText("c:\\test.out", "---------------------------------------\n");
            //File.AppendAllText("c:\\test.out", network.ToString());
            Success();
        }