############################## COPYRIGHT ##############################



All rights reserved. The authorized use of this data/code is limited to informational and educational purposes only, and NOT for operational or commercial purposes. No part of this zip file including all the data generation files, example data output and code files may be reproduced, distributed, or transmitted in any form or by any means, without the prior written permission of Prof. Siqian Shen (siqian@umich.edu). For permission requests, write to Siqian Shen (siqian@umich.edu), with a subject Attention: Permissions for Using DR-noshow Data.

########################################################################



======================== files =========================================

***********************LIST OF FILES************************************
test_CP.py -- solve by using cutting-plane method with/without valid inequalities
test_ED.py -- solve by using ED(2) and ED(n+1) models
test_SLP.py -- solve by using SLP
obj_text.py -- to generate the objective comparison table 
insample_test.py -- to generate in-sample statistics
simulate.py -- to generate out-of-sample statistics

***********************DETAILS******************************************


test_CP.py -- solve by using cutting-plane method with/without valid inequalities
	INPUT: 
	-- R-list of R values 
	-- p0-list of expected number of showing-up
	-- n0_list-list of number of appointments
	-- K-list of numbers of consecutive appts ruled out
	-- train_name-file name of training data

	OUTPUT:
	-- CPUtime_CP_n%s.xlsx-a spread sheet for each n0
	-- CPn%sK%sp%sR%s_%s.mat -- a .mat file containing solutions for each n0, K, R


test_ED.py -- solve by using ED(2) and ED(n+1) models
	INPUT: 
	-- R-list of R values 
	-- p0-list of expected number of showing-up
	-- n0_list-list of number of appointments
	-- train_name-file name of training data

	OUTPUT:
	-- CPUtime_CPED_n%s.xlsx-a spread sheet for each n0
	-- CPEDn%sp%sR%s_%s.mat -- a .mat file containing solutions for each n0, R, p


test_SLP.py -- solve by using SLP
	INPUT: 
	-- R-list of R values 
	-- p0-list of expected number of showing-up
	-- n0_list-list of number of appointments
	-- train_name-file name of training data

	OUTPUT:
	-- sol&obj_SLP.xlsx-a spread sheet containing CPU time and solution details
	-- SLPn%sp%sR%s_%s.mat -- a .mat file containing solutions for each n0, R, p


obj_text.py -- to generate the objective comparison table 
	INPUT: 
	-- R-list of R values 
	-- p0-list of expected number of showing-up
	-- n0-number of appointments
	-- train_name-file name of training data

	OUTPUT:
	-- obj_test.xlsx-a spread sheet containing objective values from solving ED(2), ED(k), and ED(n+1) models and also their solutions
	


insample_test.py -- to generate in-sample statistics
	INPUT: 
	-- R-list of R values 
	-- p0-list of expected number of showing-up
	-- n0-number of appointments
	-- mat-file name of in-sample data
	-- sol_file-file name of solutions

	OUTPUT:
	-- inSample_sim.xlsx-a spread sheet containing statistics (mean, std, and quantiles) from solving ED(2), ED(n+1), and SLP models

simulate.py -- to generate out-of-sample statistics
	INPUT: 
	-- R-list of R values 
	-- p0-list of expected number of showing-up
	-- n0-number of appointments
	-- mat-file name of in-sample data
	-- sol_file-file name of solutions

	OUTPUT:
	-- inSample_sim.xlsx-a spread sheet containing statistics (mean, std, and quantiles) from solving ED(2), ED(n+1), and SLP models





======================== Folders =======================================

***********************LIST OF FILES************************************
test_data: Out-of-sample test samples
train_data: sample data for training models
solution: files containing solutions generated from .py files
sample_output_xlsx_files: sample output xlsx files as you can generate by running .py files
***********************DETAILS******************************************


test_data: Out-of-sample test samples

	perfect distributional info

		10seed_1465265434_2R05.mat: n0 = 10, expect 2 no-shows out of 10 appointments  
		10seed_1465265434_4R05.mat: n0 = 10, expect 4 no-shows out of 10 appointments

	misspecified distribution

		cutrevisedn10seed_2R_test.mat: n0 = 10, expect 2 no-shows out of 10 appointments
		cutrevisedn10seed_4R_test.mat: n0 = 10, expect 4 no-shows out of 10 appointments  



train_data: sample data for training models

	training data for solving SLP (10,000 scenarios):
		
		x1%SLPseed_1465265434_x2R.mat -- n0=x1, expect x2 no-shows out of 10 appts  
		x1 can be 10,15,20,25,30,35,40,45,50; x2 can be 2,4

	training data for solving DR models (1000 scenarios):

		x1%seed_1465265434_4R.mat -- n0=x1, expect 4 no-shows out of 10 appts  
		x1 can be 10,15,20,25,30,35,40,45,50

	training data for in-sample test (1000 scenarios from the training data for solving SLP):
		10seed_1465265434_x1R05.mat -- n0=10, expect x1 no-shows out of 10 appts  
		x2 can be 2,4



sample_output_xlsx_files: sample output xlsx files as you can generate by running .py files



solution: files containing solutions generated from .py files


