示例#1
0
        public void RunHybridAlg(string fileDir)
        {
            FileReader.ReadFile(fileDir);

            var jobs = new List <Job>();

            jobs = FileReader.Jobs;

            GA.RunGeneticAlgorithm(jobs);
            List <List <Job> > opGen = GA.OptimizedGeneration;

            IWocProcessor WOC = new WocProcessor(jobs);

            WOC.PopulatePreferabilityMatrix(opGen);
            OpSched = WOC.ReadPreferabilityMatrix();

            List <CompletionNode> opSchedCompletionList = GA.CalculateCompletionList(OpSched);

            OpSchedTotalDelay = GA.CalculateTotalDelay(opSchedCompletionList);
        }
示例#2
0
 public HybridAlgProcessor()
 {
     GA         = new GenAlgProcessor(10, 10);
     FileReader = new JobFileReader();
     Woc        = new WocProcessor();
 }