The paper, on the basis of program and OOP thoughts, has successfully set up a general platform for optimal allocation model of water resources through packaging the general optimization package of Lp-Solve which is open-source. The platform, which is developed with JAVA language, is entitled with model build functions based on SET, PARAMETERS, VARIABLES and CONSTRAINTS definition as well as ... [Show full abstract] senior functions like infeasible/unbounded model debug on the basis of the program similar to GAMS. Meanwhile, the platform also packages the other functions which are common but useful for many water resources allocation models. Moreover, the platform has been applied successfully to the water resource operation model system of Weihe River, so that high level of integration and rapid development of the software system are realized. The general platform has realized the reduction of development cost on water resource allocation model, promotion of the efficiency of model and other systems development and improvement of the software technologies of water resource allocation model and related systems. Therefore, the promotion and application of water resource optimal allocation model will be greatly accelerated.