The agricultural farms of Westpomeranian Province were divided into 8 area groups (1–5 ha, 5–10 ha, 10–15 ha, 15–20 ha, 20–30 ha, 30–50 ha, 50–200 ha and over 200 ha). For each group a dynamic optimization model with stochastic technical-economic parameters was created. The basic crop qualities units in the models were replaced by the regression functions. The describing variables of those functions regard the fertilization, rainfall and temperature during the vegetation period and affect the yields considerably. Additionally, the variables achieve values from the specific intervals, covering the real fluctuations of the values observed within the years 2003–2006. The goal of this work is the optimization of agricultural production in the farms of various area and the regard to the yields and income fluctuations caused by changeable climatic conditions.