Example #1
0
        public static void RunWraper(List <Tuple <int, int> > botPoses, List <Tuple <int, int> > taskPoses)
        {
            // Generate Matrix from Input
            int[][] costs = BotAssignerSAT.BuildCostMatrix(taskPoses, botPoses);

            var stopwatch = new Stopwatch();

            stopwatch.Start();
            Console.WriteLine(" *** Check for the best total cost: ");
            long bestCost = Run(costs);

            stopwatch.Stop();
            Console.WriteLine(" *** All Cases time {0}", stopwatch.Elapsed);
            Console.WriteLine("");
            Console.WriteLine(" *** Final Search *** ");
            stopwatch.Reset();
            stopwatch.Start();
            bestCost = Run(costs, bestCost);
            stopwatch.Stop();

            DisplayResults();

            Console.WriteLine(" *** Final Search time {0}", stopwatch.Elapsed);
        }
Example #2
0
        public static void RunWrapper(List <Tuple <int, int> > botPoses, List <Tuple <int, int> > taskPoses)
        {
            int[][] costs = BotAssignerSAT.BuildCostMatrix(taskPoses, botPoses);

            Run(costs);
        }