Exemplo n.º 1
0
        public async void optimizeGAP()
        {
            if (P.checkFile())
            {
                P.setGFromFile();
            }
            else
            {
                double[] list = await getPrevisionsList("arima_forecast.py");

                P.setGFromData(list);
            }

            P.readGAPinstance(this.dbPath);
            GAPclass G   = P.getG();
            double   zub = G.simpleContruct();

            Trace.WriteLine($"Constructive, zub = {zub}");
            zub = G.opt10(G.c);
            Trace.WriteLine($"Local search, zub = {zub}");
            zub = G.TabuSearch(30, 100);
            Trace.WriteLine($"Tabu search, zub = {zub}");
        }
Exemplo n.º 2
0
 public double GetTabuSearchValue()
 {
     return(G.TabuSearch(30, 100));
 }