''' # case 1 start_time = datetime(2016, 11, 3, 6, 0) end_time = datetime(2016, 11, 8, 0, 0) # case 2 # start_time = datetime(2016, 11, 7, 0, 0) # end_time = datetime(2016, 11, 12, 0, 0) # case 2 years # start_time = datetime(2016, 1, 19, 14, 0) # end_time = datetime(2017, 11, 15, 0, 0) price_dict_new = read_price("price.csv") job_dict_new = select_jobs(start_time, end_time, read_job("jobInfoProd_ga_013.csv")) failure_dict_new = read_maintenance("maintenanceInfluenceb4a4.csv", price_dict_new) raw_material_unit_price_dict = read_product_related_characteristics( "productProd_ga_013.csv") DNA_SIZE = len(job_dict_new) waiting_jobs = [*job_dict_new] if not waiting_jobs: raise ValueError("No waiting jobs!") else: first_start_time = job_dict_new.get( waiting_jobs[0])[1] # Find the start time of original schedule # exit()
''' # case 1 # start_time = datetime(2016, 11, 3, 6, 0) # end_time = datetime(2016, 11, 8, 0, 0) # case 2 # start_time = datetime(2016, 11, 7, 0, 0) # end_time = datetime(2016, 11, 12, 0, 0) # case 2 years start_time = datetime(2016, 1, 19, 14, 0) end_time = datetime(2017, 11, 15, 0, 0) price_dict_new = read_price("price.csv") job_dict_new = select_jobs(start_time, end_time, read_job("jobInfoProd_ga_013.csv")) failure_dict_new = read_maintenance("maintenanceInfluenceb4a4.csv", price_dict_new) raw_material_unit_price_dict = read_product_related_characteristics("productProd_ga_013.csv") DNA_SIZE = len(job_dict_new) waiting_jobs = [*job_dict_new] # print(len(waiting_jobs)) if not waiting_jobs: raise ValueError("No waiting jobs!") else: first_start_time = job_dict_new.get(waiting_jobs[0])[1] # Find the start time of original schedule # exit()