In the process of milk production, the highest cost relates to animal feed. Based on reports provided by the experts, around seventy percent of dairy livestock costs included feed costs. In order to minimize the total price of livestock feed, according to the limits of feed sources in each region or season, and also the transportation and maintenance costs and ultimately milk price reduction, optimization of the livestock nutrition program is an essential issue. Because of the uncertainty and lack of precision in the optimal food ration done with existing methods based on linear programming, there is a need to use appropriate methods to meet this purpose. Therefore, in this study formulation of completely mixed nutrient diets of dairy cows is done by using a fuzzy linear programming in early lactation. Application of fuzzy optimization method and floating price make it possible to formulate and change the completely mixed diets with adequate safety margins. Therefore, applications of fuzzy methods in feed rations of dairy cattle are recommended to optimize the diets. Obviously, it would be useful to design suitable software, which provides the possibility of using floating prices to set feed rations by the use of fuzzy optimization method