Ejemplo n.º 1
0
}  #Create a dictionary that holds the statistical distributions of the processing times of each station
dictProc['MA'] = D.ks_test(MA_Proc)
dictProc['M1A'] = D.ks_test(M1A_Proc)
dictProc['M1B'] = D.ks_test(M1B_Proc)
dictProc['M2A'] = D.ks_test(M2A_Proc)
dictProc['M2B'] = D.ks_test(M2B_Proc)
dictProc['M3A'] = D.ks_test(M3A_Proc)
dictProc['M3B'] = D.ks_test(M3B_Proc)
dictProc['MM'] = D.ks_test(MM_Proc)
dictProc['PrA'] = D.ks_test(PrA_Proc)
dictProc['PrB'] = D.ks_test(PrB_Proc)
dictProc['PaA'] = D.ks_test(PaA_Proc)
dictProc['PaB'] = D.ks_test(PaB_Proc)
#Call the Distributions object and fit (using the Maximum Likelihood Estimation) the lists with the scrap quantity into a discrete statistical distribution, i.e. Geometric distribution
D = Distributions()
dictScrap = {
}  #Create a dictionary that holds the Geometric, which is a discrete statistical distribution of the processing times of each station
dictScrap['MA'] = D.Geometric_distrfit(MA_Scrap)
dictScrap['M1A'] = D.Geometric_distrfit(M1A_Scrap)
dictScrap['M1B'] = D.Geometric_distrfit(M1B_Scrap)
dictScrap['M2A'] = D.Geometric_distrfit(M2A_Scrap)
dictScrap['M2B'] = D.Geometric_distrfit(M2B_Scrap)
dictScrap['M3A'] = D.Geometric_distrfit(M3A_Scrap)
dictScrap['M3B'] = D.Geometric_distrfit(M3B_Scrap)
dictScrap['MM'] = D.Geometric_distrfit(MM_Scrap)
dictScrap['PrA'] = D.Geometric_distrfit(PrA_Scrap)
dictScrap['PrB'] = D.Geometric_distrfit(PrB_Scrap)
dictScrap['PaA'] = D.Geometric_distrfit(PaA_Scrap)
dictScrap['PaB'] = D.Geometric_distrfit(PaB_Scrap)
#Call the JSON_example method giving as attributes the dictionaries with the processing times distributions and the scrap quantities distributions and the WIP levels in the assembly line
JSON_example(dictProc, dictScrap, WIP)