This file describes the program code for the results in the title of paper "Optimal Ramsey Taxation in Heterogeneous Agent Economies with Quasi-Linear Preferences" by YiLi Chien and Yi Wen 1. Software and operating system used: MATLAB (R2020b) and Win10 2. The order in which the programs need to run: a. For figure A.1 and A.2 (Ramsey Transition Paths without Binding Debt Limits), run Ramsey_Soultion_Case1.m a. For figure A.3 and A.4 (Ramsey Transition Paths with Binding Debt Limits), run Ramsey_Soultion_Case2_B0.m, Ramsey_Soultion_Case2_B1.m and then PlotFigures_BindB.m 3.Expected computation time: less than 5 mins for all program codes. (in a Dell Latitude 700 laptop with Intel i7 1.9GHz CPU)