quantileLow = 0.2 quantileUpper = 0.8 #bN blocks of tN trials #requires tN to be multiple of nTypes tN = 8 bN = 7 nTypes = 6 #Number of order randomizations (i.e. number of param2.txt files) nOrderRandomizations = 10 ### ---- ### ## DATA UPLOAD dataMZN = isf.importSolvedInstances(nItems, 'mzn', folderInput, problemID) dataSAT = isf.importSolvedInstances(nItems, 'sat', folderInput, problemID) #Allocates ncapacity and nprofits to bins (BINS are defined with repect to left edge (i.e. nCap=0.5 means nCap in [0.5,0.5+binSize] )) ### Add instance type ([1,6]) tp data according to the inputs #nProf: Normalized profit to sample within phase transition #nCap: Normalized profit to sample within phase transition #nProfNO: Normalized profit to sample outside the phase transition where there is NO solution #nProfYes: Normalized profit to sample outside the phase transition where there IS a solution #quantileLow: Easy instances at (nProf, nCap) are those below the quantileLow #quantileHigh: Hard instances at (nProf, nCap) are those above the quantileHigh ## OutPut: 1=nProf-easy-NoSolution 2==nProf-easy-Solution 3=nProf-hard-NoSolution ## 3=nProf-hard-Solution 5=nProfNo-NOSolution 6=nProfYES-Solution #################### ## Taking instance categorized according to MZN
### INPUT Opt ### problemIDOpt = '-rm-1' folderInputOpt = '/Users/jfranco1/Google Drive/Melbourne/UNIMELB/Complexity Project/Data/Simulations and Solutions/optimisation/' folderOutOpt = '/Users/jfranco1/Google Drive/Melbourne/UNIMELB/Complexity Project/Code/Instance Selection/output/optimization/' #bN blocks of tN trials #requires tN to be multiple of the number of instances types there are tNOpt = 9 bNOpt = 2 #An array with possible types possibleTypesOpt = [1, 3, 5] ### Decision Task instance selection ## DATA UPLOAD dataMZN = isf.importSolvedInstances(nItems, 'mzn', folderInputDec, problemIDDec) #Allocates ncapacity and nprofits to bins (BINS are defined with repect to left edge (i.e. nCap=0.5 means nCap in [0.5,0.5+binSize] )) ### Add instance type ([1,6]) tp data according to the inputs #nProf: Normalized profit to sample within phase transition #nCap: Normalized profit to sample within phase transition #nProfNO: Normalized profit to sample outside the phase transition where there is NO solution #nProfYes: Normalized profit to sample outside the phase transition where there IS a solution #quantileLow: Easy instances at (nProf, nCap) are those below the quantileLow #quantileHigh: Hard instances at (nProf, nCap) are those above the quantileHigh ## OutPut: 1=nProf-easy-NoSolution 2==nProf-easy-Solution 3=nProf-hard-NoSolution ## 3=nProf-hard-Solution 5=nProfNo-NOSolution 6=nProfYES-Solution #################### ## Taking only the intersection of instances categorized equally with MZN and SAT