This thesis discusses the portfolio optimization problem under solvency constraints, based on S. Asanga et al. ”Portfolio optimization under solvency constraints: a dynamical approach”[1]. Models of the gross return process and claim liability, and methods to solve the optimization problems are both borrowed from the paper. Under the background that insurance companies make profits mainly by investing the premiums and capital from shareholders on portfolio products, this thesis models the net loss of a company by the difference between gross return process of the investment and claim payments. The data used in this thesis are with the same period as the paper but downloaded from Yahoo, so there are subtle differences. The goal is to minimiz...