Ejemplo n.º 1
0
        private static void CheckMinimum(int myVar)
        {
            var logger = new ExcelHelper();
            var task   = new MinimumFinder(logger);

            for (int i = 2; i < 8; i++)
            {
                task.RunAll(Data[myVar], Math.Pow(10, -i));
            }

            logger.ProcessChart();
            logger.SaveDoc($"result{myVar + 1}.xlsx");
        }
Ejemplo n.º 2
0
        private static void CheckSegmentWithMinimum(InitialData data)
        {
            var task = new MinimumFinder(Methods.Brent);

            //var segment = task.GetSegmentWithMinimum(data.Func);
            //Console.WriteLine($"Segment with minimum: {segment}");
            var test = task.GetMinimum(data);

            Console.WriteLine($"Ans: {test.Res} Iterations: {test.IterationCount}");

            //data.From = segment.From;
            //data.To = segment.To;
            //Console.WriteLine(task.GetMinimum(data).Res);
            Console.WriteLine();
        }