示例#1
0
        public static void Export(FlowShop flowShop, int[] solution, string jobExportPath, string machineExportPath)
        {
            flowShop.SetOrder(solution);
            flowShop.InitStages();

            var exporter = new FlowShopExporter();

            flowShop.Export(exporter);

            File.WriteAllText(jobExportPath, exporter.JobExportContent.ToString());
            File.WriteAllText(machineExportPath, exporter.MachineExportContent.ToString());

            Console.WriteLine($"Best solution exported to files {jobExportPath} and {machineExportPath}");
        }
示例#2
0
文件: Solver.cs 项目: csermi/RoDSStar
 public Solver(FlowShop flowShop)
 {
     _flowShop = flowShop;
 }