ABSTRACT
In this study, we developed a mathematical model to maximize economic returns in small-scale agricultural production units. The study was conducted on a rural property in Medianeira, Paraná, Brazil, dedicated to producing animal protein, grains, and silage. Production dynamics were analyzed through interviews and cost estimates, gathering technical, economic, and financial coefficients for model formulation. Using LINGO software, we performed economic calculations and defined technical, financial, and environmental constraints. The model proved effective in maximizing biennial economic returns and efficiently utilizing the available area and generated waste. The results showed that mathematical modeling is a valuable tool for developing and managing agricultural activities, enhancing sustainability, and enabling informed decision-making in high-impact environmental contexts.
efficiency; optimization; protein production
INTRODUCTION
Agriculture is fundamental to Brazil’s economy, generating jobs and income, particularly through crop and livestock production. Because of its vast territory, favorable climate conditions, and abundant water resources, Brazil ranks among the world’s largest agricultural producers (Reghim & Bressan. 2018; Bressan & Ramos, 2020). However, small and medium-scale farmers in western Paraná face significant challenges with resource management, market fluctuations, and adverse environmental conditions, making it essential to develop strategies that enhance operational efficiency and sustainability on rural properties (Oliveira et al, 2021).
Given this context, the use of mathematical modeling—particularly linear programming—has proven an effective tool for optimizing resource use and improving decision-making in the agricultural sector. Initially developed in the 1950s for military purposes, linear programming was gradually adopted across multiple sectors, including agriculture, due to its ability to solve complex problems involving constraints and resource optimization (Hoose & Kripka, 2023). Studies indicate that this methodology makes it possible to construct models that accurately represent agricultural realities, helping producers maximize profits and reduce operational costs (Barbosa et al., 2020).
The use of linear programming in the agricultural sector has been explored in various contexts, focusing on maximizing economic returns, optimizing production, and minimizing the costs of inputs such as water and fertilizers (Bressan & Ramos, 2020). Recent research has highlighted that using mathematical models has a positive impact on water management and operational costs, leading to more sustainable and effective agricultural practices (Paula, 2024; Silva et al., 2020). Rosa et al. (2024) confirmed that, despite environmental variability, mathematical modeling enables more precise and strategic planning of agricultural activities.
Additionally, the digitization and automation of agriculture, known as Agriculture 4.0, have driven significant advances in production predictability, resource management, and operational efficiency on farms. The use of computational tools in modern agriculture enables the integration of environmental and social variables into optimization models, enhancing adaptability to local conditions and fostering more sustainable natural resource management (Barbosa et al., 2020). In the context of water management, Volken et al. (2022) underscore the role of mathematical modeling in tailoring irrigation demand and preventing disruptions in water flow.
Regarding operational cost optimization, mathematical models have been widely used to forecast and reduce expenditures associated with machinery and agricultural inputs. Studies by Silva et al. (2020) demonstrate that the operational efficiency gained through mathematical modeling positively affects planning and management in agricultural activities, enabling evidence-based decision-making.
Given this context, this study aims to develop a linear programming model in LINGO 18 to maximize economic performance on small-scale farms in Paraná. This approach stands out by integrating environmental and social variables into the mathematical model, ensuring better alignment with local conditions, and enabling more efficient, sustainable agricultural management. By combining advanced optimization tools with the practical needs of rural producers, this study aims to strengthen the competitiveness and resilience of small-scale agricultural units, contributing to a more dynamic and sustainable agricultural sector.
MATERIAL AND METHODS
The study was conducted in a small-scale Agricultural Production Unit (UPA, acronym in Portuguese) in western Paraná State, near Lake Itaipu. The UPA covers a total of 20 hectares, engaging in diversified activities such as crop production, livestock production, and environmental conservation.
Description of the Production Unit
The UPA consists of 16 hectares dedicated to Agriculture, where soybeans and corn are grown. The average yield per season is 187.5 bags of corn per hectare and 75 bags of soybeans per hectare. Animal production occupies 2 hectares, with 1 hectare dedicated to beef cattle and the other to fish farming, producing an estimated 65,000 Oreochromis niloticus per batch. The remaining area is covered with African Star Grass (Cynodon nlemfuensis) for animal feed and commercial purposes and includes 1.5 hectares set aside for environmental conservation.
Data Collection Procedures
Data collection was conducted in multiple stages to ensure precise and comprehensive information (Teixeira et al., 2023). We began by visiting the property and conducting structured interviews with the owner of the Agricultural Production Unit (UPA) to understand its operations and characteristics. The interviews covered topics such as costs, productivity, management, and agricultural practices. Questionnaires were administered during three on-site visits and supplemented by email and phone contacts. In addition, a comprehensive literature review and online data mining were performed, encompassing case studies, scientific papers, and reports on agricultural production, resource optimization, and sustainable practices. These supplementary data were then used to refine the proposed model.
Mathematical Model Development
Optimization of the UPA was conducted using a mathematical model based on Linear Programming, an Operations Research technique. The model aimed to maximize agricultural production efficiency while mitigating the environmental impacts of animal waste. Its formulation included an objective function to optimize economic performance by accounting for revenue from cattle and fish sales, production costs, the added value of soybeans, corn, and grass crops, and the use of cattle manure as fertilizer.
Constraints addressed useful land allocation, grain and forage (silage) production, and nutrient requirements. The mathematical model was structured with a clear objective function, constraints, and non-negativity conditions for the decision variables, employing linear programming (Macucule et al., 2015). Technical and operational constraints were integrated to ensure variables remained within established limits (Silva & Silveira, 2020).
Mathematical model:
i) Objective function
Where:
-
Pij is the price of product j in period i.
-
Xij is the quantity produced of product j in period i.
-
Ci is the total cost in period i.
-
Xi is the total quantity produced in period i.
ii) Production Restrictions:
Where:
Capi is the maximum capacity of production within the period i.
iii) Resource restrictions:
Where:
Rij represents a coefficient related to the use of a resource by the product j within period i.
Xij is the amount produced of the product j within the period i.
AvailableR represents the available quantity of resource R.
iv) Demand:
Where:
Dj is the demand of the product j.
The equation structure was streamlined by using summations to compactly represent the system without explicitly referencing input variables, thereby facilitating model comprehension and application.
Model Validation and Implementation
The mathematical model was solved using LINGO 18.0 (Lingo Systems Inc.), which enabled the modeling and solution of both linear and nonlinear problems. The results were compared with the actual conditions at the UPA to validate the model’s practical applicability. The areas allocated to corn, soybeans, and silage crops were fixed within the model based on information obtained from interviews with the owner. The validation process also included specific adjustments—such as setting the area for each crop—to ensure that the discrepancy between the model and the observed reality did not exceed 20% (Souza et al., 2024; Sandmann et al., 2024).
The method combined field data collection, detailed analysis, and mathematical modeling, providing a practical and effective solution for managing the UPA. The recommendations generated were discussed with the farmer to enhance the efficiency and sustainability of agricultural practices.
RESULTS AND DISCUSSION
Using the developed model, an annual economic outcome of R$602,742.00 was achieved, reflecting a 5.3% difference from current conditions. Such discrepancy is consistent with previous studies, which indicate that the difference between the current system and the proposed model should be less than 20% to be considered compatible with the analyzed reality (Silva Neto & Oliveira, 2007; Sandmann et al., 2024).
The simulation produced a production system with only a slight difference compared to the current situation (Table 1). The economic outcome (MAX = REA) was R$ 621,080.60. Notably, the model was developed based on two years of UPA production data. When disaggregated annually, the estimated value is R$ 310,540.30, whereas the current annual value is R$ 301,000.00.
As seen in Table 1, compiling the objective function reveals that the Agricultural Production Unit (UPA) can utilize a total of 16 hectares—100% of the available area for soybean, corn, and corn silage production. Both the current system and the model simulation allocate 4.42 hectares to winter silage cultivation during the first two years. This allocation is based on the model determining the number of cattle per lot, with the UPA having sufficient usable area and labor to support eight lots throughout this period.
Moreover, Table 1 demonstrates substantial similarity between the actual production and the model’s suggestions. This congruence may be attributed to the producer’s effective management of the UPA. The approximately R$19,000.00 difference between the current situation and the simulation arises because the model uses cattle production residues as sources of nitrogen (N) and phosphorus (P) for crop production, whereas, in practice, the producer relies solely on chemical fertilizers for soil amendment.
LINGO software has proven to be an efficient tool for mathematical optimization in the agricultural sector, providing detailed solution reports post-modeling. Analyzing these results enables farmers to implement and monitor the recommended changes on the property, assess their practical impact, and make necessary adjustments. Based on the simulations performed, the graph presented in Figure 1 illustrates the distribution of the useful area in the optimized model for Years 1 and 2, compared to the current situation.
According to Figure 1, the optimized model predicts 16 hectares of soybean cultivation in the first year and 16 hectares of summer corn in the second year. In contrast, the current configuration dedicates 11.58 hectares to soybean and 4.42 hectares to corn for silage in the first year. In the second year, farmers continue with 16 hectares of soybean and maintain 4.42 hectares for winter corn silage. The model analysis indicates that in the first year, 11.58 hectares are allocated to corn for sale and 4.42 hectares to corn silage, while in the second year, 16 hectares of winter corn are produced for marketing. This crop distribution strategy optimizes the use of cattle production residues in the UPA, resulting in maximized economic returns and a more efficient use of generated by-products, as illustrated in Figure 2. Furthermore, these data were essential for establishing limits on cattle production, ensuring that N and P generation do not exceed the UPA's absorption capacity, as concluded by Silva et al. (2018).
Figure 2 presents a comparison between the nutrient demand of the UPA, and the amount of N and phosphorus P generated from beef cattle production, as described in Table 1. According to the table, over two years, the eight cattle lots produce approximately 1,360.80 kg of N and 756.56 kg of P to meet crop requirements. The model used data from Souza et al. (2024) to quantify N and P crop demands and to set cattle production limits, ensuring that nutrient generation does not exceed the UPA’s absorption capacity.
Figure 1 shows the model's first-year simulation for the useful area distribution (SAU). This analysis shows that the UPA requires 4,800 kg of N and 864 kg of N to support crop growth. In the second year, the N requirement decreased to 2,400 kg, while the P demand increased to 1,072 kg.
Comparing these values with the actual practice—based on interviews, technical visits, and financial analyses at the UPA—reveals a notable discrepancy in N and P usage. In the first year of current practice, the farmer applied 2,400 kg of N and 1,072 kg of P, which exactly corresponds to the model's second-year simulation. However, in the second year, the actual practice required 3,063 kg of N and 1,014.54 kg of P, deviating from the model's forecast.
These findings suggest that the UPA is capable of generating a significant portion of the essential nutrients for crop growth through cattle production residues. Nevertheless, the gap between nutrient production and actual crop requirements necessitates the purchase of supplemental fertilizers. In practice, the farmer has not efficiently used the residues from beef cattle production, resulting in additional costs for fertilization.
CONCLUSIONS
The application of a mathematical optimization model to maximize economic returns in small-scale agricultural units yielded significant improvements in efficient and sustainable operational planning. The study identified opportunities to enhance resource management, particularly in the effective use of available land and the recycling of animal production waste—in the form of nitrogen (N) and phosphorus (P).
Analysis revealed a 5.3% discrepancy between the simulated scenario and current operating conditions, indicating that the proposed model is both viable and compatible with observed reality. Using LINGO software enabled the effective resolution of the optimization problem, ensuring that all constraints were met while maximizing economic performance.
Beyond financial gains, the mathematical modeling also contributed to the environmental sustainability of the property by incorporating proper waste management practices and optimizing land use. These practices can be implemented in other small-scale agricultural units, as optimization tools can be powerful allies in decision-making and in developing more efficient and profitable agricultural strategies.
In conclusion, mathematical optimization techniques offer a promising pathway to maximize economic returns and reduce environmental impacts in small-scale agricultural properties, thereby promoting sustainability and local economic growth.
REFERENCES
-
Barbosa, E. A. A., Schiebelbein, L. M., Pereira, A. B., &Beruski, G. C. (2020). Agrometeorologia para otimização da irrigação em sistemas agrícolas Editora Atena. http://dx.doi.org/10.22533/at.ed.20720030214
» http://dx.doi.org/10.22533/at.ed.20720030214 - Bressan, M. G., Ramos, T. A. (2020). Aplicação da programação linear e do problema do transporte para otimização da produção agrícola. Revista Eletrônica Paulista de Matemática, 19.
-
Paula, E. C. (2024). Evolução dos sistemas agrícolas e da utilização dos recursos naturais. Revista Multidisciplinar do Nordeste Mineiro, 3 https://doi.org/10.61164/rmnm.v3i3.2217
» https://doi.org/10.61164/rmnm.v3i3.2217 -
Hoose, J., Kripka, M. (2023). Programação linear aplicada na indústria e suas conexões com os objetivos de desenvolvimento sustentável. Revista Científica Eletrônica de Engenharia de Produção, 23(3). https://doi.org/10.14488/1676-1901.v23i3.5004
» https://doi.org/10.14488/1676-1901.v23i3.5004 - Macucule, M., Sandmann, A., Hellmann, J. (2015). Pesquisa operacional aplicada a pequenas propriedades agrícolas. Revista de Economia e Gestão Agrícola, 17(2), 213-230.
-
Oliveira, L. K. S., Lopes, R. S., Santos, W. J. C. (2021). Relevância do agronegócio na economia brasileira. Research, Society and Development, 11(16), e443111638493. http://dx.doi.org/10.33448/rsd-v11i16.38493
» http://dx.doi.org/10.33448/rsd-v11i16.38493 - Reghim, D., Bressan, G. M. (2018). Aplicação da programação linear em problemas agrícolas. Open Journal Systems, 6 (2): cnmac.
-
Rosa, F., Reis, S.A., Leitão, F. O., & Rosa, A. A. (2024). Revisão sistemática de modelos matemáticos para o planejamento operacional de produção de atividades agrícolas. Revista Caderno Pedagógico, 21(3), 01-34. http://dx.doi.org/10.54033/cadpedv21n3-242
» http://dx.doi.org/10.54033/cadpedv21n3-242 -
Sandmann, A., Silva, R. R. da, Silva, F. P. da, Santos, C. G. dos, Hlenka, V., & Lima, V. L. A. de. (2024). Linear programming applied to the technical, economic, and financial coefficients of a pilot agricultural unit producing grains, beef cattle, and fish. Revista de Gestão Social e Ambiental, 18(5), e07575. https://doi.org/10.24857/rgsa.v18n5-160
» https://doi.org/10.24857/rgsa.v18n5-160 - Silva Neto, J., Oliveira, M. (2007). Otimização em sistemas agropecuários: estudo de caso. Revista de Economia e Desenvolvimento Rural, 12(1), 58-72.
-
Silva, H. S., Silveira, H. B. (2020). Modelagem Matemática: aplicações sobre medidas agrárias em pequenas propriedades rurais no distrito de vila mandi. Brazilian Journal of Development, 6(10). https://doi.org/10.34117/bjdv6n10-319
» https://doi.org/10.34117/bjdv6n10-319 - Silva, M. S. L. da, Matthiensen, A., Brito, L. T. de L., Lima, J. E. F. W., & Carvalho, C. J. R. (2018). Água e saneamento: contribuições da Embrapa. Empresa Brasileira de Pesquisa Agropecuária. Brasília, DF: EMBRAPA. ISBN: 978-85-7035-781-6
-
Souza, N. P., Costa, T. A. R., Sandmann, A., Lima, V. L. A., Saboya, L. M. F., Souza, T. R. A., Silva, F. A., & Pinto, Y. M. F. (2024). Gestão econômica em pequenas propriedades rurais: um estudo de caso integrando produção de suínos e cultivo de alimentos. Revista de Gestão e Secretariado, 15(9). https://doi.org/10.7769/gesec.v15i9.4086
» https://doi.org/10.7769/gesec.v15i9.4086 - Teixeira, R., Pacífico, M., Barros, T. (2023). Coleta de dados em pesquisas agropecuárias. Revista Brasileira de Metodologia Científica, 7(4), 87-95.




