Recently financial markets have been reformed and opened, variety of financial tools are provided to the investors who pursue investment activities for obtain the benefits. The level of risk that people could bear is different, so the strategy of investment is different. How to get the fund allocation that could obtain the maximum benefits of investment in an acceptable risk is a very important issue. Linear programming has been used wildly in many fields, including the application of financial aspect. According the expected investment return and risk index of the investment objective, this research is the use of linear programming to establish a mathematical model, and calculated the maximum profit and the fund allocation of each investment objective in a given total risk index. As well as using program development tools to develop a prototype software.