We aimed to obtain the optimal formula for human milk fat substitute (HMFS) through a combination of software and an evaluation model and further verify its practicability through an animal experiment. The results showed that a total of 33 fatty acid (FA) and 63 triglyceride (TAG) molecular species were detected in vegetable oils. Palmitic acid, oleic acid, linoleic acid, 18:1/16:0/18:1, 18:2/16:0/18:2, 18:1/18:1/18:1 and 18:1/18:2/18:1, were the main molecular species among the FAs and TAGs in the vegetable oils. Based on the HMFS evaluation model, the optimal mixed vegetable oil formula was blended with 21.3% palm oil, 2.8% linseed oil, 2.6% soybean oil, 29.9% rapeseed oil and 43.4% maize oil, with the highest score of 83.146. Moreover, there was no difference in the weight, blood routine indices or calcium and magnesium concentrations in the feces of the mice between the homemade mixed vegetable oil (HMVO) group and the commercial mixed vegetable oil (CMVO) group, while nervonic acid (C24:1) and octanoic acid (C8:0) were absorbed easily in the HMVO group. Therefore, these results demonstrate that the mixing of the different vegetable oils was feasible via a combination of computer software and an evaluation model and provided a new way to produce HMFS.