- UB.m: this script is used to calculate the upper bound of the expected profit under the optimal policy under endogenous inventory 

- UB_X.m: this script is used to calculate the upper bound of the expected profit under the optimal policy under exogenous inventory

- EndoQ_main.m: this script is used to calculte profits of Endogenous Q. Three functions, Exo_Q.m, Exo_Q_bal.m, and Exo_X_GA.m, are used in the script. Specifically, Exo_X_GA.m uses a function provided by Matlab Global Optimization Toolbox.

- ExoQ_main.m: this script is used to calculte profits of Exogenous Q. Three functions, Exo_Q.m, Exo_Q_bal.m, and Exo_X_GA.m, are used in the script. Specifically, Exo_X_GA.m uses a function provided by Matlab Global Optimization Toolbox.


- EndoZ_main.m: this script is used to calculte profits of Endogenous Z. Two functions, Endo_Z.m and Exo_Z.m, are used in the script. Specifically, Endo_Z.m uses a function provided by Matlab Global Optimization Toolbox.

- ExoZ_main.m: this script is used to calculte profits of Exogenous Z. A function, Exo_Z.m, is used in the script. 

- EndoAC_main.m: this script is used to calculte profits of Endogenous AC. Two functions, Endo_AC.m and Exo_AC.m, are used in the script. Specifically, Endo_AC.m uses a function provided by Matlab Global Optimization Toolbox.

- ExoAC_main.m: this script is used to calculte profits of Exogenous AC. A function, Exo_AC.m, is used in the script. 


- EndoAX_main.m: this script is used to calculte profits of Endogenous AX. Two functions, Endo_AX.m and Exo_AX.m, are used in the script.  Specifically, Endo_AX.m uses a function provided by Matlab Global Optimization Toolbox.

- ExoAX_main.m: this script is used to calculte profits of Exogenous AX. A function, Exo_AX.m, is used in the script. 

- EndoRW_main.m: this script is used to calculte profits of Endogenous RW. Two functions, Endo_RW.m and Exo_Z.m, are used in the script. Specifically, Endo_RW.m uses a function provided by Matlab Global Optimization Toolbox.





