Next Article in Journal
Advancing Poultry Nutrition: AI Innovations for Sustainable Nutrient Requirements of Poultry: A Review
Previous Article in Journal
Current Status and Future Prospects of Simulation Technology in Cleaning Systems for Crop Harvesters
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Formulation of Nutrient Solutions Using Simulated Annealing

by
Juan Pablo Guerra Ibarra
1,*,
Francisco Javier Cuevas de la Rosa
2 and
Aaron Junior Rocha Rocha
1
1
Instituto Tecnológico Nacional de México, Campus Zamora, Computer Systems Engineering Academy, Zamora 59720, Michoacán, Mexico
2
Centro de Investigaciones en Óptica A.C., León 37150, Guanajuato, Mexico
*
Author to whom correspondence should be addressed.
Agriculture 2026, 16(4), 449; https://doi.org/10.3390/agriculture16040449
Submission received: 30 December 2025 / Revised: 22 January 2026 / Accepted: 28 January 2026 / Published: 14 February 2026
(This article belongs to the Section Artificial Intelligence and Digital Agriculture)

Abstract

Modern agriculture requires optimizing available resources to maximize production while minimizing environmental impact without increasing economic costs. Hydroponic agriculture replaces soil with inert media that provide physical support for plants but do not supply nutrients. In this type of agricultural production, fertilization with nutrient solutions is essential, as they supply the 15 elements necessary for proper plant development. These solutions consist of mixtures of different amounts of fertilizers dissolved in water. In this context, a method based on a simulated annealing algorithm is proposed, a metaheuristic that optimizes fertilizer quantities in grams to achieve target concentrations in parts per million for six macronutrients and nine micronutrients. The algorithm addresses a multi-objective optimization problem, balancing two competing goals: first, maximizing the accuracy of the fertilizer balance to achieve the required nutritional levels, and second, minimizing the total cost of the fertilizer mixture. The algorithm’s fitness function weights the total cost of the fertilizers used and the total relative error between the concentrations obtained and those desired, allowing the relative importance of cost and accuracy in the nutrient solution to be adjusted. The results of three experiments with varying nutrient levels are presented for a 1000-L water tank. The first experiment consisted of three macronutrients and two micronutrients. The second configuration added three macronutrients and two micronutrients, for a total of ten nutrients. Finally, five micronutrients were added to complete the 15 essential nutrients for plants. It is important to note that there are several methods for calculating micronutrients that contribute to precision agriculture, increasing the complexity of finding a solution that meets established nutritional requirements. The nutrient concentrations in parts per million required for tomato cultivation during the vegetative development stage. To balance nutrient accuracy and solution cost, we applied weighting factors of 0.65 ,   0.75 ,   0.85 ,   0.90 ,   0.95 , and 1.0 for accuracy. The corresponding weights for cost were calculated as the complement of these values (totaling 1). By favoring nutrient accuracy with a weighting of 1, accuracies of 0.00500, 0.02618, and 0.03077 parts per million were achieved in each experiment, respectively. Meanwhile, the lowest cost is 2.06 , 2.72 , and 2.70 USD for the aforementioned experiments.

1. Introduction

Agriculture is a pillar of human sustenance and the development of civilizations around the world [1,2]. It supports population growth by producing sufficient food in terms of quantity and quality, ideally without increasing costs or environmental impact. By 2050, the United Nations [3] forecasts a world population of approximately 10 billion, which poses challenges in a context of declining arable land, which currently represents 45 % of the Earth’s surface [4] but produces increasingly more food, making it necessary to seek sustainable alternatives, such as hydroponics, instead of extensive practices.
Recent technological advances in tillage have given rise to Precision Agriculture (PA), which uses statistics and different types of algorithms, ranging from classic to Artificial Intelligence (AI), such as Computer Vision (CV) [1], Deep Learning (DL), and Metaheuristics (MA) [5,6]. PA aims to increase crop yields and resource efficiency by monitoring crop characteristics such as growth, leaf and fruit color, and health, while optimizing irrigation and fertilization to reduce environmental impact and detect pests and diseases [7,8,9].
Simulated Annealing Algorithm (SA) is inspired by a metallurgical process. Annealing constitutes a heat treatment process in metallurgy wherein a metal is heated to an elevated temperature to enhance atomic mobility, followed by controlled cooling to attain a minimum-energy crystalline structure, thereby improving ductility and relieving internal stresses. The SA represents a trajectory-based stochastic metaheuristic tailored for global optimization in search spaces exhibiting complex topologies with multiple local optima [10].
This document develops and presents an adapted SA method for formulating hydroponic nutrient solutions, highlighting key aspects: applicability across diverse hydroponic crops, effectiveness in meeting crop specific nutritional requirements, substantial fertilizer cost reductions via a weighting parameter balancing both factors without compromising nutrient adequacy and most methods in the literature focus on the three main macronutrients, while the method presented here covers the elements that are essential for plant development.
The organization of the paper is as follows: Section 2 presents a series of works related to land cultivation processes for food production in PA. Section 3 The materials and methods used in the SA adaptation for the formulation of nutrient solutions for crops are described. The objectives of the experiment and the control parameters for the formulation of nutrient solutions using SA are presented in Section 4. The results obtained with the adaptation of the algorithm for the formulation of nutrient solutions are presented in the Section 5 and the Section 6 contains the conclusions of the research.

2. Related Works

The technification of agricultural processes with the aim of achieving the objectives of the PA has led to the use of different types of hardware and software, which are constantly updated to improve their efficiency. The use of intelligent algorithms has recently been used in several tasks such as identification of pests, diseases [11,12], classification of plant components in crops [13,14,15], and optimization of irrigation and fertilization processes [16,17].
Various methods have been reported in the literature for PA to determine the levels of certain chemical elements in crops, with a focus on nitrogen, phosphorus, and potassium. Lu [18] used 340 groups of images with different potassium contents to establish the relationship between reflectance spectra and leaf K content. Qi [19] proposed a method for determining the nitrogen content in images of wheat crops acquired with mobile devices using histogram manipulation algorithms. Phosphorus is another of the main macronutrients for crop development. Li [20] presented a method for measuring how phosphorus concentration affects electrical impedance in tomato crops. Sun [21] used dynamic leaf capture of rice leaves by scanning to investigate the changing regulation of leaf characteristics under nutritional stress from nitrogen, phosphorus, and potassium. Leaf characteristics were determined using the mean value and regionprops functions, and leaf dynamics were quantified by calculating the relative growth rate. Tran [22] implemented the Inception-ResNet v2 convolutional neural network model and Autoencoder to classify and predict calcium, potassium, and nitrogen deficiencies.
Once a nutrient deficiency has been identified, the next step in PA is to correct the condition through fertilization processes that must be both effective and efficient. For example, Cropper [17] developed a model to estimate the amount of phosphorus present in the soil and crop requirements in order to use a genetic algorithm to estimate the minimum amount needed to meet crop needs through fertilization processes. Xu [23] developed an expert system to support decision-making regarding nitrogen, phosphorus, and potassium fertilization processes, using data from 2000 plant nutrition experiments, reporting an increase in rice grain production in fields that used the recommendations made by the expert system. Ahmad [24] estimated the amount of nitrogen needed based on the water required for its application using a quadratic equation that can be used to reduce costs across different crops. Ahmed [25] implemented a genetic algorithm that uses data from different types of sensors to make adjustments to fertilization processes, using the neighborhood-based strategy for the exploration and exploitation stages. Chen [26] proposed an optimization method based on an optimization algorithm inspired by the behavior of the gray wolf with multiple strategies to make fertilization suggestions for the main macronutrients.

3. Materials and Methods

The following sections describe the fundamental concepts of the formulation of nutritional solutions, characteristics of the crop selected for experimentation, and the explanation of the method for Formulating Nutrient Solutions Using Simulated Annealing (FNSUSA).

3.1. Plant Nutrition

Through photosynthesis, plants obtain essential elements such as Oxygen (O), Carbon (C), and Hydrogen (H). Additionally, proper plant development requires 15 other essential chemical elements, which are divided into two categories: six macronutrients [27] and nine micronutrients [28]. This division is based on the quantity required, not on their relative importance. The elements belonging to the first category are required in greater quantities compared to elements belonging to the second category; for macronutrients, the range is from 30 to 400 PPM and for micronutrients, it is 0.01–5 PPM [29], emphasizing that each crop has specific needs. Table 1 shows the chemical elements belonging to each category.
Soilless cultivation of various crops, primarily vegetables, in greenhouses requires a consistent, efficient, and effective fertilization process [30]. This approach enhances both the quantity and quality of harvests, enables off-season production, and opens opportunities for accessing export markets, among other benefits. To provide crops with essential resources for growth that are not acquired through photosynthesis, different amounts of fertilizers are mixed or dissolved in 1000 L of water in one-cubic-meter tanks, which are commonly used in hydroponics. The mixture is called the Nutrient Solution (NS). Table 2 shows the chemical composition of some fertilizers commonly used in the composition of NS. Fertilizer prices were taken directly from online shopping sites such as eBay (https://mx.ebay.com accessed on 4 November 2025), Amazon (https://www.amazon.com.mx accessed on 14 November 2025), and MercadoLibre (https://www.mercadolibre.com.mx accessed on 10 December 2025).
The total cost of an NS is calculated by adding the price of each fertilizer used in the mixture by the amount in grams used, which is expressed in the following equation:
C o s t N S = f = 0 n ( q f 1000 ) × P f ,
where n is the number of fertilizers available to formulate the NS; q f is the amount of each fertilizer expressed in grams for mixing; P f refers to the cost by kg of fertilizer f on the market.
To formulate NS, it is necessary to calculate the Parts Per Million (PPM) of each Nutrient chemical element present in a given amount in grams of fertilizer. The PPM of a specific element is calculated using the following equation:
P P M e f = 1000 × q f × a e × n e f m w f × V ,
where f refers to a particular fertilizer, and e is the nutrient that forms part of the fertilizer, 1000 is constant conversion factor to convert grams of fertilizer to milligrams, q f is the amount in grams of fertilizer, a e is the atomic weight of the element selected for its quantification, n e f is the number of atoms of the chemical element present in chemical formula of one fertilizer particularly, a w f is the fertilizer molecular weight and V is total volume of the NS in liters.
NS is a mixture of various quantities of fertilizers, each of which contributes a different PPM of the nutrient elements. Therefore, it is necessary to quantify the total PPM of each chemical element present in the NS. The following equation is used to determine the PPM of the different Nutrient elements:
P P M e N S = f = 0 n P P M e f ,
where P P M e N S represents the total concentration of the nutrient element e present in the NS, while P P M e f corresponds to the amount of PPM contributed by a specific amount of fertilizer f for nutrient element e, calculated by applying Equation (2).

3.2. Algorithm for Formulating Nutritious Solutions Using Simulated Annealing

Simulated Annealing (SA) is a metaheuristic algorithm inspired by the metallurgical process of annealing, in which a material is slowly cooled to reach a minimum-energy state. Its primary strength lies in its ability to escape local optima, making it ideal for complex combinatorial optimization problems with vast search spaces, such as the N S Formulation. The algorithm operates by iteratively exploring solutions, starting at a high initial “temperature”. In each step, a neighboring solution is generated; better solutions are always accepted, while worse solutions may also be accepted based on a probabilistic criterion tied to the current temperature. Initially, this allows the algorithm to broadly explore the solution space (exploration phase). As the process continues, the temperature is gradually reduced according to a cooling schedule, which decreases the probability of accepting worse solutions. This shifts the search from exploration to exploitation, allowing the algorithm to converge towards a globally optimal solution. The main control parameters are the initial and final temperatures, the cooling factor, and the number of iterations at each temperature level [31].
It is necessary to initially assign a quantity, in grams, of each available fertilizer for the formulation of the NS. This is done by applying the Equation:
q f = r a n d o m ( l l , u l ) ,
where the quantity in grams for fertilizer f is between the lower limit ( l l ) and the upper limit ( u l ), which are used for all fertilizers available for the formulation of NS.
The algorithm begins by creating a random initial candidate solution in the search space, which is as follows:
S a = { q 1 , q 2 , , q f 1 , q f } ,
where n is the number of fertilizers available for the formulation of NS.
The SA explores the search space by introducing a perturbation in the S a . The perturbations for each q f S a are determined based on the following equation:
ρ f = r a n d o m ( 0 , E v ) ,
where E v represents the upper limit of the perturbation to explore the search space, which is in the range [ 0 , 1 ] . This value decreases linearly with the system temperature, allowing the exploitation stage to be emphasized.
The increase or decrease for q n S a is determined by the following equation:
r f = q f ρ f .
SA requires a second solution to the problem to be optimized, which is constructed from S a applying the following equation:
S c = { q 1 ± r 1 , q 2 ± r 2 , , q f 1 ± r f 1 , q f ± r f } .
where S c is the candidate solution constructed from S a . The quantities of each fertilizer q f are increased or decreased randomly, with the same probability of occurrence.
It is important to note that q n cannot be negative. If a negative value is generated for any q n , it will take the value of 0.
FNSUSA is a random optimization algorithm whose main feature is that, at the beginning of execution, it favors exploration of the search space, allowing it to accept solutions that are not necessarily better than the current one. As the current solution’s fitness approaches the convergence condition, the exploitation stage of the search space is emphasized.
The objective of FNSUSA is to identify a fertilizer formulation that achieves the target concentrations in PPM for the macronutrients and micronutrients specified in Table 2. The target PPM is defined by the following equation:
P P M e = { P P M 1 , P P M 2 , , P P M e 1 , P P M e } ,
where subscript e refers to the nutrient element established as the target to be achieved in the final NS in PPM.
Relative error is an option for measuring the accuracy of the NS PPMs in relation to the target PPMs. It is expressed using the following equation:
R E e = P P M e P P M e N S P P M e ,
where R E e is the absolute relative error of nutrient e, in relation to the P P M e N S defined in Equation (3) with respect to P P M e t .
The total relative error in the NS is determined by applying the Equation:
R E t o t a l = e = 1 O R E e .
Subindex e takes values from 1 to the total number of nutrients ( O ) considered in the objective function of the FNSUSA.
The success of metaheuristic algorithms, including SA, largely depends on how the cost or fitness function is modeled. In the case of FNSUSA, the fitness function is a linear weighted sum combining two metrics: R E t o t a l and C o s t N S . This is expressed in the following equation:
A p t i t u d e N S = ( γ R E t o t a l ) + ( ( 1 γ ) C o s t N S ) ,
where γ is the preponderance factor between the total relative error and the cost of NS, it must take a value in the range [ 0 , 1 ] ; similarly, this value acts as a normalizer between the two parameters to be weighted. It is important to mention that as the total relative error tends to 0, the cost of NS will naturally take on greater importance in determining the fitness of an NS.
The initial temperature and the model for its reduction (the cooling schedule) are key parameters for controlling the algorithm’s exploration phase. The initial temperature [32] of the FNSUSA is calculated using the following equation:
t = Δ l n ( p ) ,
where Δ is the difference between the fitness of the initial solution and the candidate solution, and p is the desired probability of accepting worse solutions at the start of the FNSUSA.
The temperature parameter is reduced geometrically, applying the following equation:
t = t α ,
where α is an initial value that must be in the range [0, 1]; a value close to 1 generates a slight decrease in temperature, while a value tending to 0 causes accelerated cooling. The decrement factor α is calculated using Equation:
α = ( t f t ) 1 / I ,
where t f is the desired final temperature of the system or convergence condition, and I is the number of energy states through which the system passes.
Figure 1 illustrates the adaptation of the SA algorithm for formulating hydroponic Nutrient Solutions.
The diagram outlines the primary functions responsible for implementing the previously described equations. A general description of each function, its parameters, and its return values is provided in Table 3.

3.3. Development Environment and Computer Specifications

The programming language in which the algorithm in Figure 1 was implemented was Python version 3.9.15, due to the number of libraries available. The hardware characteristics are necessary to provide a reference for the time required for the FNSUSA algorithm to reach the target PPM.
The characteristics of the computer equipment that was used were as follows:
  • Manufacturer: ASUSTeK COMPUTER INC., Taipei City, China
  • Modelo: X510UNR
  • Processor: Intel® Core™ i7-8550U CPU @ 1.80 GHz × 8.
  • RAM: 16 GB.
  • Operating system: Ubuntu 22.04.2 LTS 64 bits.

4. Experimentation

The efficiency of the FNSUSA algorithm is measured in two ways. The first scenario evaluates the algorithm’s effectiveness in achieving the target PPMs (for macronutrients or micronutrients). This is achieved by assigning γ = 1 , a parameterization that (based on Equation (12)) nullifies the cost component, forcing the optimization to focus exclusively on technical effectiveness. The second scenario tests the method’s ability to balance achieving the PPM against a lower price. For this test, the cost is explicitly considered by assigning γ a value between zero and one ( 0 γ 1 ) . A total of 180 FNSUSA executions are reported, 10 for each of the six γ values tested, giving a total of 60 executions and 3 different target configurations, for a total of 180.

4.1. Characteristics of Selected Crop for the Step of Experimentation

Our experimental stage focuses on the tomato, a member of the Solanaceae family with its origins in the Americas. There are two hypothesized beginnings for its domestication: one in the mountainous areas of Peru and Ecuador, and the other in the Aztec Empire’s Tenochtitlan [33]. The tomato crop has several developmental stages during its growth, which differ in terms of water and nutrient requirements versus the development of the plant itself. The developmental stages are as follows:
  • Plant establishment: Tomato is a crop that can be annual or perennial. It germinates four to seven days after the seed is sown. The root begins to develop, and the formation of the aerial part of the plant begins.
  • Vegetative growth: In this period, the plant grows rapidly, flowering and developing fruit. After 70 days, vegetative development is minimal, as well as the accumulation of dry matter in leaves and stems. Development.
  • Flowering and fruit set: Flowering and fruit set begin about 20–40 days after transplanting and continue during the rest of the growth cycle.
  • Fruit development: The fruit begins to develop and grow, accumulating in this period the greatest amount of dry matter in the fruit at a relatively stable rate.
  • Physiological maturity and harvest: Fruit maturity is achieved between 80 and 120 days after transplanting. Harvesting is permanent.

4.2. Results of FNSUSA

Three different nutritional objectives are presented as targets for the FNSUSA. These objectives are defined by the number of macronutrients and micronutrients to be balanced, starting at five and increasing to 15 essential nutrients, for tomato cultivation during its vegetative growth stage [34,35]. The combination of macronutrients and micronutrients for each fitness function is shown in Table 4.
As illustrated in Figure 1, FNSUSA requires several key parameters to guide its execution. These parameters are essential for formulating an NS that satisfies the objectives defined by the fitness function. The specific values configured for this implementation are as follows:
  • Initial temperature calculated using the Equation (13).
  • Final temperature t f = 1 .
  • The value of α is determined using Equation (15).
  • Low limit l l = 10 .
  • Upper limit u l = 500 .
  • E v = 0.15 .
This specific parameter set was established to ensure the algorithm properly explores the solution space while balancing search breadth with an efficient convergence speed.

5. Results

The results presented apply FNSUSA to balance the relationship between the R E t o t a l , measured as the relative error between the target PPMs and those contained in the NS, and the cost of NS, using different values assigned to γ . The first configuration has five nutrients, three macronutrients and two micronutrients; the second configuration adds the remaining three macronutrients and two micronutrients, for a total of ten target PPMs; the final arrangement adds the remaining five micronutrients for a total of 15 PPM targets to achieve.
Ten FNSUSA runs are performed for each of the three experimental configurations of target PPM presented in Table 4. To evaluate the algorithm’s efficiency in balancing total error ( R e t o t a l ) and cost within the NS formulation, the weighting parameter γ was tested at values of 0.65 ,   0.75 ,   0.85 ,   0.90 ,   0.95 , and 1.0 . This approach allows for a precise calibration of the trade-off between accuracy and nutrient solution costs.

5.1. Results Generated by FNSUSA in Configuration Targets 1

The first set of targets includes the macronutrients N, P, and K, which are the most important for all crops, along with the micronutrients Cl and Na. It highlights the difference in target PPM concentrations between macronutrients and micronutrients, which reflects the quantitative requirements of crops between the two nutrient classifications.
Table 5 presents the numerical values for R e t o t a l , C o s t N S , and A p t i t u d e N S obtained in the ten runs of the FNSUSA algorithm for the first experimental configuration, which comprises five Nutrient chemical elements. These results correspond to the different weightings of the γ parameter, the best result obtained is highlighted in yellow.
Table 6 shows the statistical data from the 60 FNSUSA runs for the first experiment. The standard deviations for each gamma value are small compared to the mean, which highlights the repeatability of the results generated.
Table 7 contains the quantitative data for the PPMs contained in the NS and their relative error from the best NS formulated using FNSUSA from Table 5.
Figure 2 shows the quantities expressed in grams of each fertilizer in Table 2 required to formulate the best NS by applying FNSUSA from the first experimental configuration for different γ values.
Figure 3 illustrates the behavior of the weighted averages of C o s t N S , R E t o t a l , and A p t i t u d e N S of the NS as a function of the different γ values used in the ten runs of the FNSUSA for the first experimental configuration.
The behavior of the values in the graph shows the sensitivity of the algorithm to the trade-off between Nutrient C o s t N S and total C o s t N S , R E t o t a l , demonstrating how increases in γ decrease R E t o t a l at the expense of C o s t N S .

5.2. Results Generated by FNSUSA in Configuration Targets 2

The second experimental configuration incorporates five chemical elements, Mg, S, and Ca, thus completing the six essential macronutrients required for optimal crop development. Two additional micronutrients, Fe and Zn, are also added, with FNSUSA finding it particularly challenging to achieve the target concentration of 0.5 PPM for Zn due to the low doses required, which make the formulation more complex to generate than the previous configuration.
Table 8 presents the results obtained in the ten runs of the FNSUSA corresponding to the second experimental configuration, highlighting in yellow the best NS based on the lowest value of a p t i t u d e N S .
Table 9 shows the statistical data from the 60 FNSUSA runs generated with the results from Table 8 for the second experimental configuration, showing small standard deviation values, which demonstrates the repeatability of the FNSUSA.
Table 10 contains the quantitative data for the PPMs contained in the NS and their relative error from the best NS formulated using FNSUSA from Table 8.
Figure 4 shows the quantities expressed in grams of each fertilizer in Table 2 required to formulate the best NS by applying FNSUSA from the second experimental configuration.
Figure 5 shows that R E t o t a l decreases sharply as γ increases from 0.65 to 1.0 . This indicates that low γ values prioritize the balance between both objectives, while high values favor exclusively the minimization of R E t o t a l , C o s t N S shows an inverse trend in relation to R E t o t a l . This behavior confirms that maximizing A p t i t u d e N S in the formulation of target concentrations in PPM leads to an increase in the cost of NS.

5.3. Results Generated by FNSUSA in Configuration Targets 3

The third experimental configuration incorporates the micronutrients Cl, B, Cu, Mn, Mo, and Ni, completing the 15 nutrients required by crops. This configuration highlights the low target concentrations of Mo and Ni, set at 0.05 PPM in both cases, which pose an additional challenge for FNSUSA due to the need for extremely precise dosing to avoid both deficiencies and potential toxicity. The last configuration is the most difficult, as it requires very small PPM quantities to be achieved.
Table 11 presents the numerical values for R e t o t a l , C o s t N S , and A p t i t u d e N S obtained in the ten runs of the FNSUSA algorithm for the third experimental configuration, which comprises 15 Nutrient chemical elements. These results correspond to the different weightings of the γ parameter; the best result obtained is highlighted in yellow, determined by the lowest value of A p t i t u d e N S .
Finally, Table 12 shows similar standard deviation behavior, demonstrating the repeatability of the results generated by FNSUSA.
Table 13 contains the quantitative data for the PPMs contained in the NS and their relative error from the best NS formulated using FNSUSA from Table 11.
Figure 6 shows the quantities expressed in grams of each fertilizer in Table 2 required to formulate the best NS by applying FNSUSA from the third experimental configuration.
Figure 7 shows a similar behavior to the previous ones in relation to the cost and accuracy values that are weighted in the suitability of the NS. Low gamma values favor lower-cost solutions, accepting slight increases in the relative error of the target concentrations in PPM for macronutrients and micronutrients. In contrast, high gamma values prioritize reducing error in the formulation of the NS, which improves accuracy in meeting Nutrient objectives but increases the cost of the NS.
Figure 2, Figure 4 and Figure 6, which correspond to the best nutrient solutions (NS) with the lowest aptitude among the nine runs of each experimental configuration, show an increase in the number of fertilizers required for the formulation.

6. Conclusions

The FNSUSA algorithm efficiently optimizes fertilizer quantities to achieve target PPM concentrations of macronutrients and micronutrients in hydroponic crops. In the three experimental configurations (5, 10, and 15 nutrients), the average relative errors in ten runs with γ = 1 are 0.01015 ,   0.0488 , and 0.06328 , respectively, demonstrating accuracy and revealing that complexity increases with the number of nutrients. The accuracy of FNSUSA in calculating fertilizer quantities for low PPM concentrations of micronutrients is noteworthy, especially in the third configuration, where it achieves minimal relative errors for Mo and Ni, both with targets of 0.05 PPM. Regarding cost, using γ = 1 in the weighting prioritizes accuracy over cost, generating expensive NS with averages of USD 14.70, USD 18.75, and USD 11.61 across the three experimental configurations.
The use of γ < 1 values significantly and consistently minimizes the cost of NS. In the first configuration with 5 nutrients, the average cost of 10 runs decreases from USD 14.70 with γ = 1 to USD 2.30 with γ = 0.65 . The second configuration with 10 nutrients, from USD 18.75 to USD 2.69, with the same γ values. Finally, in the third configuration with 15 target nutrients, the cost ranges from USD 11.61 to USD 2.87.
The analysis of weighting with values γ < 1 significantly reduces the cost of NS without significantly increasing the absolute relative error in the target PPM concentrations of nutrients in the three experimental configurations. It is inferred that the most appropriate value for is 0.90 γ 1.0 . The value assigned to the γ factor helps farmers decide how much they are willing to sacrifice in accuracy in the NS relative to cost, depending on crop conditions.

7. Future Work

One aspect not explored in the reported results is the toxicity of the fertilizers used in the NS formulation. This will be addressed in future work by weighing toxicity against the cost and accuracy of the PPM concentrations for each nutrient. Another aspect to explore in future work, when adding the toxicity factor, is the normalization of the three variables to be balanced in order to avoid bias in the scale. An important aspect is the integration of the presented algorithm with real-time monitoring, which will enable more precise fertilization processes.

Author Contributions

Conceptualization, J.P.G.I. and F.J.C.d.l.R.; methodology, J.P.G.I. and F.J.C.d.l.R.; software, J.P.G.I. and A.J.R.R.; validation, J.P.G.I. and F.J.C.d.l.R.; formal analysis, J.P.G.I. and F.J.C.d.l.R.; investigation, J.P.G.I. and A.J.R.R.; writing—original draft preparation, J.P.G.I. and F.J.C.d.l.R.; writing—review and editing, J.P.G.I. and F.J.C.d.l.R.; supervision, F.J.C.d.l.R. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by Tecnológico Nacional de México, Campus Zamora and by Secretaría de Ciencias, Humanidades, Tecnología e Innovación en Becas Nacionales grants.

Data Availability Statement

The data supporting the conclusions of this article will be made available by the authors on request.

Acknowledgments

It is important to thank the Institutions that made the development of this work possible by allocating resources of different kinds to carry it out. Secretaria de Ciencias, Humanidades, Tecnología e Innovación (SECIHTI), Tecnológico Nacional de México (TecNM), Instituto Tecnológico de Estudios Superiores de Zamora (ITESZ), and Centro de Investigaciones en Óptica A.C. (CIO).

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Awasthi, Y. Press “A” for Artificial Intelligence in Agriculture: A Review. Int. J. Inform. Vis. 2020, 4, 112–116. [Google Scholar] [CrossRef] [Scilit]
  2. Ray, P.P. Internet of things for smart agriculture: Technologies, practices and future direction. J. Ambient. Intell. Smart Environ. 2017, 9, 395–420. [Google Scholar] [CrossRef] [Scilit]
  3. FAO. Our Approach|Food Systems|Food and Agriculture Organization of the United Nations. 2023. Available online: http://www.fao.org/food-systems/our-approach/en/ (accessed on 1 December 2024).
  4. Brown, P.D.; Cochrane, T.A.; Krom, T.D. Optimal on-farm irrigation scheduling with a seasonal water limit using simulated annealing. Agric. Water Manag. 2010, 97, 892–900. [Google Scholar] [CrossRef] [Scilit]
  5. Dong, Y.; Zhao, C.; Yang, G.; Chen, L.; Wang, J.; Feng, H. Integrating a very fast simulated annealing optimization algorithm for crop leaf area index variational assimilation. Math. Comput. Model. 2013, 58, 877–885. [Google Scholar] [CrossRef] [Scilit]
  6. Bai, Y.; Gao, J. Optimization of the nitrogen fertilizer schedule of maize under drip irrigation in Jilin, China, based on DSSAT and GA. Agric. Water Manag. 2021, 244, 106555. [Google Scholar] [CrossRef] [Scilit]
  7. Gebbers, R.; Adamchuk, V.I. Precision agriculture and food security. Science 2010, 327, 828–831. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  8. Pierce, F.J.; Nowak, P. Aspects of precision agriculture. Adv. Agron. 1999, 67, 1–68. [Google Scholar]
  9. Patrício, D.I.; Rieder, R. Computer vision and artificial intelligence in precision agriculture for grain crops: A systematic review. Comput. Electron. Agric. 2018, 153, 69–81. [Google Scholar] [CrossRef] [Scilit]
  10. Bertsimas, D.; Tsitsiklis, J. Simulated Annealing. Stat. Sci. 1993, 8, 409–435. [Google Scholar] [CrossRef] [Scilit]
  11. Nanni, L.; Maguolo, G.; Pancino, F. Insect pest image detection and recognition based on bio-inspired methods. Ecol. Inform. 2020, 57, 101089. [Google Scholar] [CrossRef] [Scilit]
  12. Mundada, R.G.M. Detection and Classification of Pests in Greenhouse Using Image Processing. IOSR J. Electron. Commun. Eng. 2013, 5, 57–63. [Google Scholar] [CrossRef] [Scilit]
  13. Fan, P.; Lang, G.; Yan, B.; Lei, X.; Guo, P.; Liu, Z.; Yang, F. A Method of Segmenting Apples Based on Gray-Centered RGB Color Space. Remote Sens. 2021, 13, 1211. [Google Scholar] [CrossRef] [Scilit]
  14. Ni, X.; Li, C.; Jiang, H.; Takeda, F. Deep learning image segmentation and extraction of blueberry fruit traits associated with harvestability and yield. Hortic. Res. 2020, 7, 110. [Google Scholar] [CrossRef] [Scilit]
  15. Guerra Ibarra, J.P.; Cuevas de la Rosa, F. Optimization of Color Dominance Factor by Greedy Algorithm for Leaves and Fruit Segmentation of Tomato Plants. In Proceedings of the Lecture Notes in Computer Science (Including Subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics); Mezura-Montes, E., Acosta-Mesa, H.G., Carrasco-Ochoa, J.A., Martínez-Trinidad, J.F., Olvera-López, J.A., Eds.; Springer: Cham, Switzerland, 2024; Volume 14755 LNCS, pp. 200–209. [Google Scholar] [CrossRef] [Scilit]
  16. Kuo, S.F.; Merkley, G.P.; Liu, C.W. Decision support for irrigation project planning using a genetic algorithm. Agric. Water Manag. 2000, 45, 243–266. [Google Scholar] [CrossRef] [Scilit]
  17. Cropper, W.P.; Comerford, N.B. Optimizing simulated fertilizer additions using a genetic algorithm with a nutrient uptake model. Ecol. Model. 2005, 185, 271–281. [Google Scholar] [CrossRef] [Scilit]
  18. Lu, J.; Yang, T.; Su, X.; Qi, H.; Yao, X.; Cheng, T.; Zhu, Y.; Cao, W.; Tian, Y. Monitoring leaf potassium content using hyperspectral vegetation indices in rice leaves. Precis. Agric. 2020, 21, 324–348. [Google Scholar] [CrossRef] [Scilit]
  19. Qi, X.; Zhao, Y.; Huang, Y.; Wang, Y.; Qin, W.; Fu, W.; Guo, Y.; Ye, Y. A novel approach for nitrogen diagnosis of wheat canopies digital images by mobile phones based on histogram. Sci. Rep. 2021, 11, 13012. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  20. Li, M.; Li, J.; Mao, H.; Wu, Y. Diagnosis and detection of phosphorus nutrition level for Solanum lycopersicum based on electrical impedance spectroscopy. Biosyst. Eng. 2016, 143, 108–118. [Google Scholar] [CrossRef] [Scilit]
  21. Sun, Y.; Tong, C.; He, S.; Wang, K.; Chen, L. Identification of Nitrogen, Phosphorus, and Potassium Deficiencies Based on Temporal Dynamics of Leaf Morphology and Color. Sustainability 2018, 10, 762. [Google Scholar] [CrossRef] [Scilit]
  22. Tran, T.T.; Choi, J.W.; Le, T.T.H.; Kim, J.W. A comparative study of deep CNN in forecasting and classifying the macronutrient deficiencies on development of tomato plant. Appl. Sci. 2019, 9, 1601. [Google Scholar] [CrossRef] [Scilit]
  23. Xu, X.; He, P.; Yang, F.; Ma, J.; Pampolino, M.F.; Johnston, A.M.; Zhou, W. Methodology of fertilizer recommendation based on yield response and agronomic efficiency for rice in China. Field Crop. Res. 2017, 206, 33–42. [Google Scholar] [CrossRef] [Scilit]
  24. Ahmad, I.; Wajid, S.A.; Ahmad, A.; Cheema, M.J.M.; Judge, J. Optimizing irrigation and nitrogen requirements for maize through empirical modeling in semi-arid environment. Environ. Sci. Pollut. Res. 2019, 26, 1227–1237. [Google Scholar] [CrossRef] [Scilit]
  25. Ahmed, U.; Lin, J.C.W.; Srivastava, G.; Djenouri, Y. A nutrient recommendation system for soil fertilization based on evolutionary computation. Comput. Electron. Agric. 2021, 189, 106407. [Google Scholar] [CrossRef] [Scilit]
  26. Chen, C.; Wang, X.; Chen, H.; Wu, C.; Mafarja, M.; Turabieh, H. Towards precision fertilization: Multi-strategy grey wolf optimizer based model evaluation and yield estimation. Electronics 2021, 10, 2183. [Google Scholar] [CrossRef] [Scilit]
  27. Mengel, K.; Kirkby, E. Principles of Vegetable Nutrition; Springer: Dordrecht, The Netherlands, 1978; Volume 15B,A. [Google Scholar]
  28. Dimkpa, C.O.; Bindraban, P.S. Fortification of micronutrients for efficient agronomic production: A review. Agron. Sustain. Dev. 2016, 36, 7. [Google Scholar] [CrossRef] [Scilit]
  29. Resh, H.M. Hydroponic Food Production: A Definitive Guidebook for the Advanced Home Gardener and the Commercial Hydroponic Grower. In Hydroponic Food Production; CRC Press: Boca Raton, FL, USA, 2022. [Google Scholar] [CrossRef] [Scilit]
  30. Savvas, D.; Gruda, N. Application of soilless culture technologies in the modern greenhouse industry—A review. Eur. J. Hortic. Sci. 2018, 83, 280–293. [Google Scholar] [CrossRef] [Scilit]
  31. Kirkpatrick, S.; Gelatt, C.D.; Vecchi, M.P. Optimization by simulated annealing. Science 1983, 220, 671–680. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  32. Mahdi, W.; Medjahed, S.A.; Ouali, M. Performance analysis of simulated annealing cooling schedules in the context of dense image matching. Comput. y Sist. 2017, 21, 493–501. [Google Scholar] [CrossRef] [Scilit]
  33. Cámara de Comercio de Bogotá CCB. Manual Tomate; Cámara de Comercio de Bogotá: Bogotá, Colombia, 2015; pp. 1–56. [Google Scholar]
  34. Steiner, A.A. A universal method for preparing nutrient solutions of a certain desired composition. Plant Soil 1961, 15, 134–154. [Google Scholar] [CrossRef] [Scilit]
  35. Sonneveld, C.; Voogt, W. Plant Nutrition of Greenhouse Crops; Springer: Dordrecht, The Netherlands, 2009; pp. 1–431. [Google Scholar] [CrossRef] [Scilit]
Figure 1. Adaptation of the SA for formulation NS.
Figure 1. Adaptation of the SA for formulation NS.
Agriculture 16 00449 g001
Figure 2. Distribution of the weight for each fertilizer available in Table 2 for the best NS generated for the first experimental configuration.
Figure 2. Distribution of the weight for each fertilizer available in Table 2 for the best NS generated for the first experimental configuration.
Agriculture 16 00449 g002
Figure 3. Behavior of C o s t N S , R E t o t a l , and A p t i t u d e N S parameters with different γ values in experiment 1.
Figure 3. Behavior of C o s t N S , R E t o t a l , and A p t i t u d e N S parameters with different γ values in experiment 1.
Agriculture 16 00449 g003
Figure 4. Distribution of the weight for each fertilizer available in Table 2 for the best NS generated for the second experimental configuration.
Figure 4. Distribution of the weight for each fertilizer available in Table 2 for the best NS generated for the second experimental configuration.
Agriculture 16 00449 g004
Figure 5. Behavior of C o s t N S , R E t o t a l , and A p t i t u d e N S parameters with different γ values in experiment 2.
Figure 5. Behavior of C o s t N S , R E t o t a l , and A p t i t u d e N S parameters with different γ values in experiment 2.
Agriculture 16 00449 g005
Figure 6. Distribution of the weight for each fertilizer available in Table 2 for the best NS generated for the third experimental configuration.
Figure 6. Distribution of the weight for each fertilizer available in Table 2 for the best NS generated for the third experimental configuration.
Agriculture 16 00449 g006
Figure 7. Behavior of cost, accuracy, and aptitude parameters with different γ values in experiment 3.
Figure 7. Behavior of cost, accuracy, and aptitude parameters with different γ values in experiment 3.
Agriculture 16 00449 g007
Table 1. List of 15 nutrients necessary for proper plant development.
Table 1. List of 15 nutrients necessary for proper plant development.
Nutrients Necessary for Plant Development
No.Element NameSymbolCategory
1NitrogenNMacronutrients
2PhosphorusP
3PotassiumK
4CalciumCa
5MagnesiumMg
6SulfurS
7IronFeMicronutrients
8ManganeseMn
9CopperCu
10ZincZn
11BoronB
12MolybdenumMo
13ChlorineCl
14NickelNi
15SodiumNa
Table 2. List of fertilizers to be considered for blending.
Table 2. List of fertilizers to be considered for blending.
FertilizerPrice
Kg/USD
Chemical FormulaMolecular
Weight
g/mol
Calcium nitrate2.75 C a ( N O 3 ) 2 164.06
Potassium nitrate5.76 K N O 3 101.10
Diammonium phosphate4.49 ( N H 4 ) 2 H P O 4 132.07
Ammonium nitrate3.70 N H 4 N O 3 80.05
Ammonium sulfate3.17 ( N H 4 ) 2 S O 4 132.14
Urea4.49 C O ( N H 2 ) 2 60.08
Phosphonite nitrate2.91 M g ( N O 3 ) 2 · 4 H 2 O 222.39
Monoammonium phosphate1.43 N H 4 H 2 P O 4 115.02
Anhydrous ammonia1.85 N H 3 17.05
Ammonium chloride1.59 N H 4 C l 53.51
Sodium nitrate1.37 N a N O 3 84.99
Magnesium nitrate1.37 M g ( N O 3 ) 2 148.31
Iron chelate1.37 C 10 H 12 F e N 2 N a O 8 367.05
Ferric nitrate0.79 F e ( N O 3 ) 3 241.86
Zinc nitrate1.27 Z n ( N O 3 ) 2 189.36
Zinc chelate0.63 C 10 H 12 N 2 O 8 N a 2 Z n 435.58
Copper nitrate1.27 C u ( N O 3 ) 2 187.57
Copper chelate2.38 C 10 H 12 N 2 O 8 N a 2 C u 433.77
Manganese chelate0.63 C 10 H 12 N 2 O 8 N a 2 M n 389.13
Ammonium molybdate6.08 ( N H 4 ) 6 M o 7 O 24 1,169.86
Nickel nitrate7.93 N i ( N O 3 ) 2 182.67
Chelated nickel1.32 C 10 H 12 N 2 O 8 N a 2 N i 428.88
Calcium potassium nitrate6.34 K C a ( N O 3 ) 3 263.21
Magnesium potassium nitrate0.42 K M g ( N O 3 ) 3 249.44
Monopotassium phosphate1.37 K H 2 P O 4 136.08
Phosphoric rock6.34 C a 5 ( P O 4 ) 3 F 504.30
Superphosphate7.93 C a ( H 2 P O 4 ) 2 · H 2 O 234
Phosphoric acid5.55 H 3 P O 4 97.99
Phosphorite18.50 C a 5 ( P O 4 ) 3 F 504.30
Monosodium phosphate60.78 N a H 2 P O 4 117.96
Dipotassium phosphate10.04 K 2 H P O 4 174.13
Potassium sulfate6.34 K 2 S O 4 174.26
Potassium chloride6.34 K C l 74.54
Potassium carbonate3.70 K 2 C O 3 138.16
Potassium hydroxide7.03 K O H 56.09
Potassium magnesium sulfate9.51 K 2 M g 2 ( S O 4 ) 3 414.99
Potassium borate5.18 K 2 B 4 O 7 233.54
Calcium chloride11.10 C a C l 2 113.01
Calcium borate6.34 C a 2 B 6 O 11 221.08
Calcium molybdate95.14 C a M o O 4 200.01
Magnesium sulfate47.57 M g S O 4 120.37
Kieserite58.14 M g S O 4 · H 2 O 138.33
Magnesium chloride7.93 M g C l 2 · 6 H 2 O 203.30
Magnesium borate31.71 M g B 4 O 7 155.31
Ferrous sulfate13.21 F e S O 4 151.91
Zinc sulfate17.44 Z n S O 4 161.44
Anhydrous copper sulfate12.05 C u S O 4 159.61
Copper sulfate pentahydrate8.99 C u S O 4 · 5 H 2 O 249.68
Manganese sulfate11.63 M n S O 4 152.97
Nickel sulfate17.81 N i S O 4 154.71
Ferric chloride31.03 F e C l 3 162.19
Ferric oxide21.14 F e 2 O 3 159.65
Manganese chloride25.37 M n C l 2 125.83
Manganese oxide58.14 M n O 70.94
Manganese acetate41.23 M n ( C H 3 C O O ) 2 · 4 H 2 O 245.08
Copper oxychloride63.42 C u 2 ( O H ) 3 C l 213.56
Copper borate74.00 C u ( B O 2 ) 2 149.17
Zinc chloride68.71 Z n C l 2 136.28
Zinc borate44.93 Z n B 4 O 7 220.62
Sodium chloride50.74 N a C l 58.43
Boric acid79.28 H 3 B O 3 61.81
Sodium borate1.16 N a 2 B 4 O 7 · 10 H 2 O 381.23
Sodium hydroxide51.27 N a O H 39.98
Sodium carbonate1.85 N a 2 C O 3 105.99
Sodium molybdate5.81 N a 2 M o O 4 205.87
Molybdenum trioxide1.59 M o O 3 143.94
Molybdenum tetraoxide6.87 M o O 4 146.94
Nickel hydroxide4.76 N i ( O H ) 2 92.69
Nickel chloride11.63 N i C l 2 129.59
Table 3. Description of FNSUSA functions.
Table 3. Description of FNSUSA functions.
Description of FNSUSA Functions
FunctionPurposeParametersReturns
Load_fertilizerRead chemical information about
fertilizers from a database.
Does not receive parametersF is a matrix containing the chemical
information on fertilizers.
Generate_solutionCreate an initial solution by assigning
a number of grams of each fertilizer.
Low Limit ( l l ), Upper Limit ( u l )
and F.
Returns a vector S in the shape of the
Equation (5).
Evaluate_aptitudeEvaluates the suitability of the NS
it receives as a parameter.
S is the NS to be evaluated,
O is the vector with the PPMs
defined as the target, F and
γ is the weighting to
be used.
Return the fitness of S, applying the
Equation (12).
Modificate_solutionApply a perturbation according to
Equations (7) and (8) to create a
candidate solution.
S is current NS, ρ is the value
to create the disturbance in NS
and F
Returns a vector S in the shape of the
Equation (5).
Generate_initial_temperatureDetermine the initial temperature of
SA by applying Equation (13).
Receive the randomly generated
initial NS fitness values.
Returns the initial temperature of
the SA.
Generate_cooling_factorEstablish the cooling factor of the SA
by applying Equation (15).
Receives the initial temperature (t),
final temperature ( t f ) of the system
and number of desired iterations (I).
Returns the system cooling value α .
Table 4. Target PPM in the experimental stage.
Table 4. Target PPM in the experimental stage.
PPM Targets Tested in Tree Configuration Experiment for Test FNSUSA
Target PPM experiment 1
No.Nutrient elementPPM
1Potassium250.00
2Nitrogen200.00
3Phosphorus60.00
4Chlorine5.00
5Sodium2.00
Target PPM experiment 2
No.Nutrient elementPPM
6Calcium100.00
7Magnesium60.00
8Sulfur50.00
9Iron5.00
10Zinc0.50
Target PPM experiment 3
No.Nutrient elementPPM
11Copper1.00
12boron0.50
13Manganese0.20
14Molybdenum0.05
15Nickel0.05
Table 5. Results generated by FNSUSA for experiment 1 with different γ values.
Table 5. Results generated by FNSUSA for experiment 1 with different γ values.
FNSUSA Results for Experiment 1
γ = 0.65 γ = 0.75 γ = 0.85
R E t o t a l C o s t N S A p t i t u d e N S R E t o t a l C o s t N S A p t i t u d e N S R E t o t a l C o s t N S A p t i t u d e N S
0.043422.320.840220.019113.100.789330.014523.050.46984
0.025862.380.849810.025992.220.574490.017192.750.42711
0.018802.370.841720.017202.300.587900.017403.050.47229
0.017382.190.777800.023662.330.600250.013302.740.42231
0.012212.200.777940.018842.220.569130.026713.210.50420
0.016662.570.910330.013912.350.597930.028052.570.40934
0.007652.520.886970.020472.140.550350.013952.560.39586
0.033262.080.749620.022642.150.554480.037972.670.43277
0.014562.070.733960.020572.060.530430.006902.870.43637
0.034252.280.820260.009922.800.707440.006782.790.42426
γ = 0.90 γ = 0.95 γ = 1
R E t o t a l C o s t N S A p t i t u d e N S R E t o t a l C o s t N S A p t i t u d e N S R E t o t a l C o s t N S A p t i t u d e N S
0.012753.260.337480.005754.930.251960.0070716.800.00707
0.007272.920.298540.010393.400.179870.012018.960.01201
0.014852.860.299370.007734.530.233840.0050012.690.00500
0.008003.130.320200.014444.030.215220.0066026.230.00660
0.012483.760.387230.007023.710.192170.011794.350.01179
0.006554.290.434900.008234.730.244320.0126513.000.01265
0.007562.980.304800.010014.270.223010.0172021.440.01720
0.011272.930.303140.014083.220.174380.0092920.170.00929
0.016494.040.418840.016624.550.243290.0110514.540.01105
0.006803.350.341120.008144.100.212730.008818.770.00881
Table 6. Statistics for the results in Table 5.
Table 6. Statistics for the results in Table 5.
FNSUSA Statistical Results for Experiment 1
Statistician γ = 0.65 γ = 0.75 γ = 0.85
R E t o t a l C o s t N S A p t i t u d e N S R E t o t a l C o s t N S A p t i t u d e N S R E t o t a l C o s t N S A p t i t u d e N S
Mean0.022412.298000.818860.019232.367000.606170.018282.826000.43944
Standard deviation0.010300.152780.052490.004260.296500.072700.008920.196520.02974
Statistician γ = 0.90 γ = 0.95 γ = 1
R E t o t a l C o s t N S A p t i t u d e N S R E t o t a l C o s t N S A p t i t u d e N S R E t o t a l C o s t N S A p t i t u d e N S
Mean0.010403.352000.344560.010244.147000.217080.0101514.695000.01015
Standard deviation0.003290.459500.046330.003280.513580.024890.003225.991580.00322
Table 7. Comparison of the best solutions in experimental configuration 1 with different γ values.
Table 7. Comparison of the best solutions in experimental configuration 1 with different γ values.
Results of Experiment Configuration 1 with Different γ Values
γ = 0.65 γ = 0.75 γ = 0.85
Nutrient P P M e t P P M e N S R E e Total
Grams
Nutrient P P M e t P P M e N S R E e Total
Grams
Nutrient P P M e t P P M e N S R E e Total
Grams
K250.00248.801740.004791383.92K250.00249.474800.002101314.17K250.00250.416200.001661036.79
N200.00199.917760.00041N200.00200.372040.00186N200.00199.764590.00118
P60.0059.935330.00108P60.0059.238680.01269P60.0059.965280.00058
Cl5.005.037450.00749Cl5.005.007390.00148Cl5.005.044870.00897
Na2.001.998490.00076Na2.001.995110.00245Na2.002.003130.00157
γ = 0.90 γ = 0.95 γ = 1.0
Nutrient P P M e t P P M e N S R E e Total
Grams
Nutrient P P M e t P P M e N S R E e Total
Grams
Nutrient P P M e t P P M e N S R E e Total
Grams
K250.00249.795770.000821059.49K250.00250.524820.002101675.66K250.00250.012550.000051645.63
N200.00200.395720.00198N200.00200.151600.00076N200.00199.855250.00072
P60.0060.049300.00082P60.0059.921420.00131P60.0059.852590.00246
Cl5.005.007410.00148Cl5.004.957550.00849Cl5.004.998880.00022
Na2.001.995620.00219Na2.002.002910.00145Na2.002.003090.00154
Table 8. Results generated by FNSUSA for experiment 2 with different γ values.
Table 8. Results generated by FNSUSA for experiment 2 with different γ values.
FNSUSA Results for Experiment 2
γ = 0.65 γ = 0.75 γ = 0.85
R E t o t a l C o s t N S A p t i t u d e N S R E t o t a l C o s t N S A p t i t u d e N S R E t o t a l C o s t N S A p t i t u d e N S
0.604702.511.271550.119894.111.117420.049455.400.85203
0.229993.231.279990.031723.300.848790.050564.010.64447
0.981201.751.250280.028623.260.836460.034795.860.90858
0.133492.721.038770.051644.491.161230.037783.760.59611
0.242322.791.134010.044253.490.905690.030024.030.63002
0.175082.651.041300.065663.190.846750.117614.750.81247
0.191492.671.058970.068023.290.873520.026174.890.75574
0.228162.721.100300.085014.221.118760.074863.830.63813
0.167632.901.123960.027203.080.790400.042273.750.59843
0.117442.911.094840.046013.130.817010.014864.330.66213
γ = 0.90 γ = 0.95 γ = 1
R E t o t a l C o s t N S A p t i t u d e N S R E t o t a l C o s t N S A p t i t u d e N S R E t o t a l C o s t N S A p t i t u d e N S
0.061944.920.547750.082284.940.325170.0413611.700.04136
0.050463.890.434410.033196.290.346030.0421413.980.04214
0.022464.960.516210.035485.380.302710.0428521.320.04285
0.056237.110.761610.039224.890.281760.0524215.190.05242
0.043254.840.522930.042447.140.397320.0405416.230.04054
0.046264.940.535630.033594.890.276410.0261814.570.02618
0.041666.190.656490.036457.060.387630.030768.910.03076
0.054244.150.463820.036714.160.242870.0411421.940.04114
0.025635.060.529070.018704.200.227770.0448825.480.04488
0.073244.850.550920.034057.560.410350.0465138.150.04651
Table 9. Statistics for the results in Table 8.
Table 9. Statistics for the results in Table 8.
FNSUSA Statistical Results for Experiment 2
Statistician γ = 0.65 γ = 0.75 γ = 0.85
R E t o t a l C o s t N S A p t i t u d e N S R E t o t a l C o s t N S A p t i t u d e N S R E t o t a l C o s t N S A p t i t u d e N S
Mean0.307152.685001.139400.056803.556000.931600.047844.461000.70981
Standard deviation0.247850.345580.085030.026250.466170.128810.026600.667960.10259
Statistician γ = 0.90 γ = 0.95 γ = 1
R E t o t a l C o s t N S A p t i t u d e N S R E t o t a l C o s t N S A p t i t u d e N S R E t o t a l C o s t N S A p t i t u d e N S
Mean0.047545.091000.551880.039215.651000.319800.0408818.747000.04088
Standard deviation0.014010.842250.084960.014801.141000.058420.006787.652750.00678
Table 10. Comparison of the best solutions in experimental configuration 2 with different γ values.
Table 10. Comparison of the best solutions in experimental configuration 2 with different γ values.
Results of Experiment Configuration 2 with Different γ Values
γ = 0.65 γ = 0.75 γ = 0.85
Nutrient P P M e t P P M e N S R E e Total
Grams
Nutrient P P M e t P P M e N S R E e Total
Grams
Nutrient P P M e t P P M e N S R E e Total
Grams
K250.00224.665220.101341341.73K250.00247.884920.008461588.11K250.00248.977810.004091574.22
N200.00199.069950.00465N200.00200.088010.00044N200.00200.120320.00060
Ca100.00100.737840.00738Ca100.00100.213550.00214Ca100.00100.558740.00559
P60.0059.995360.00008P60.0059.835920.00273P60.0060.433550.00723
Mg60.0060.763620.01273Mg60.0060.380020.00633Mg60.0060.713000.01188
S50.0049.943640.00113S50.0049.861680.00277S50.0050.072460.00145
Cl5.004.995420.00092Cl5.005.000800.00016Cl5.004.990550.00189
Fe5.005.004860.00097Fe5.004.997930.00041Fe5.004.988750.00225
Na2.001.993060.00347Na2.002.002990.00149Na2.002.005420.00271
Zn0.500.499570.00086Zn0.500.498820.00236Zn0.500.500070.00014
γ = 0.90 γ = 0.95 γ = 1.0
Nutrient P P M e t P P M e N S R E e Total
Grams
Nutrient P P M e t P P M e N S R E e Total
Grams
Nutrient P P M e t P P M e N S R E e Total
Grams
K250.00249.330450.002681523.58K250.00250.143010.000571614.15K250.00249.897130.000411579.20
N200.00198.359800.00820N200.00200.154820.00077N200.00198.768120.00616
Ca100.00100.076060.00076Ca99.4220699.958050.00042Ca99.4220699.422060.00578
P60.0059.709520.00484P60.0060.037130.00062P60.0060.243510.00406
Mg60.0060.074600.00124Mg60.0060.189230.00315Mg60.0059.942010.00097
S50.0050.660040.01320S50.0050.504810.01010S50.0049.752960.00494
Cl5.005.055850.01117Cl5.005.003730.00075Cl5.004.991740.00165
Fe5.005.019550.00391Fe5.004.995910.00082Fe5.005.004510.00090
Na2.001.997070.00147Na2.001.999520.00024Na2.002.000860.00043
Zn0.500.498510.00298Zn0.500.500660.00133Zn0.500.500440.00089
Table 11. Results generated by FNSUSA for experiment 3 with different gamma values.
Table 11. Results generated by FNSUSA for experiment 3 with different gamma values.
FNSUSA Results for Experiment 3
γ = 0.65 γ = 0.75 γ = 0.85
R E t o t a l C o s t N S A p t i t u d e N S R E t o t a l C o s t N S A p t i t u d e N S R E t o t a l C o s t N S A p t i t u d e N S
0.472632.841.301211.352382.081.534280.048183.600.58095
1.126102.841.725970.223893.130.950420.034655.470.84995
0.504812.671.262630.095593.390.919190.055054.570.73229
0.099482.941.093660.073233.110.832420.089553.620.61912
0.195992.881.135390.516303.441.247230.091214.750.79003
0.226752.741.106390.126784.971.337580.098214.070.69398
0.103973.091.149080.115813.460.951860.060764.970.79715
0.221052.651.071180.058464.561.183850.069784.290.70281
0.066903.311.201990.244483.110.960860.082803.830.64488
0.155972.701.046380.265693.090.971770.068633.360.56234
γ = 0.90 γ = 0.95 γ = 1
R E t o t a l C o s t N S A p t i t u d e N S R E t o t a l C o s t N S A p t i t u d e N S R E t o t a l C o s t N S A p t i t u d e N S
0.073033.710.436730.138165.030.382750.0318513.710.03185
0.085035.210.597530.062523.790.248890.0400516.110.04005
0.049975.450.589970.080945.120.332890.0307711.120.03077
0.090414.010.482370.062256.970.407640.0852612.370.08526
0.122095.380.647880.148175.550.418260.0514514.300.05145
0.085013.910.467510.076135.740.359320.0512813.090.05128
0.077453.850.454710.082804.570.307160.0621110.070.06211
0.066043.870.446440.058425.870.349000.088758.070.08875
0.082973.390.413670.082325.460.351200.1047212.380.10472
0.078955.010.572060.074854.660.304110.086534.860.08653
Table 12. Statistics for the results in Table 11.
Table 12. Statistics for the results in Table 11.
FNSUSA Statistical Results for Experiment 3
Statistician γ = 0.65 γ = 0.75 γ = 0.85
R E t o t a l C o s t N S A p t i t u d e N S R E t o t a l C o s t N S A p t i t u d e N S R E t o t a l C o s t N S A p t i t u d e N S
Mean0.317372.866001.209390.307263.434001.088950.069884.253000.69735
Standard deviation0.290350.186560.180140.354110.731360.203810.018660.616520.08726
Statistician γ = 0.90 γ = 0.95 γ = 1
R E t o t a l C o s t N S A p t i t u d e N S R E t o t a l C o s t N S A p t i t u d e N S R E t o t a l C o s t N S A p t i t u d e N S
Mean0.081104.379000.510890.086665.276000.346120.0632811.608000.06328
Standard deviation0.016730.710860.074600.028170.781470.046170.023852.953620.02385
Table 13. Comparison of the best solutions in experimental configuration 3 with different γ values.
Table 13. Comparison of the best solutions in experimental configuration 3 with different γ values.
Results of Experiment Configuration 3 with Different γ Values
γ = 0.65 γ = 0.75 γ = 0.85
Nutrient P P M e t P P M e N S R E e Total
Grams
Nutrient P P M e t P P M e N S R E e Total
Grams
Nutrient P P M e t P P M e N S R E e Total
Grams
K250.00227.920700.088321562.00K250.00248.180280.007281550.55K250.00247.153750.011381566.94
N200.00200.842820.00421N200.00200.068760.00034N200.00200.132220.00066
Ca100.0099.616250.00384Ca100.00100.104210.00104Ca100.0099.681530.00318
P60.0060.337850.00563P60.0060.368420.00614P60.0059.340510.01099
Mg60.0060.531410.00886Mg60.0059.693000.00512Mg60.0060.505060.00842
S50.0050.286110.00572S50.0049.666240.00668S50.0049.972500.00055
Cl5.005.002080.00042Cl5.005.075430.01509Cl5.005.008250.00165
Fe5.004.939820.01204Fe5.004.999580.00008Fe5.005.000150.00003
Na2.001.998270.00087Na2.001.976240.01188Na2.002.007160.00358
B1.000.996210.00379B1.001.003170.00317B1.000.991740.00826
Cu0.500.496020.00795Cu0.500.499760.00049Cu0.500.500540.00108
Zn0.500.500590.00118Zn0.500.501510.00303Zn0.500.497800.00440
Mn0.200.199670.00166Mn0.200.199640.00182Mn0.200.199700.00149
Mo0.050.050170.00331Mo0.050.050230.00461Mo0.050.049600.00802
Ni0.050.049590.00817Ni0.050.050320.00646Ni0.050.049840.00317
γ = 0.90 γ = 0.95 γ = 1.0
Nutrient P P M e t P P M e N S R E e Total
Grams
Nutrient P P M e t P P M e N S R E e Total
Grams
Nutrient P P M e t P P M e N S R E e Total
Grams
K250.00250.992820.003971509.60K250.00249.625580.001501517.86K250.00249.625580.001501517.86
N200.00199.353860.00323N200.00199.856670.00072N200.00199.856670.00072
Ca100.00100.556000.00556Ca100.00100.028760.00029Ca100.00100.028760.00029
P60.0059.950420.00083P60.0060.003690.00006P60.0060.003690.00006
Mg60.0060.483240.00805Mg60.0059.880710.00199Mg60.0059.880710.00199
S50.0049.733010.00534S50.0049.980110.00040S50.0049.980110.00040
Cl5.004.982300.00354Cl5.005.019260.00385Cl5.005.019260.00385
Fe5.005.044060.00881Fe5.005.006820.00136Fe5.005.006820.00136
Na2.001.985380.00731Na2.002.010880.00544Na2.002.010880.00544
B1.000.994430.00557B1.000.991570.00843B1.000.991570.00843
Cu0.500.496630.00674Cu0.500.500530.00106Cu0.500.500530.00106
Zn0.500.504350.00871Zn0.500.500170.00033Zn0.500.500170.00033
Mn0.200.200810.00404Mn0.200.200310.00153Mn0.200.200310.00153
Mo0.050.050210.00412Mo0.050.050030.00067Mo0.050.050030.00067
Ni0.050.050350.00697Ni0.050.050160.00314Ni0.050.050160.00314
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Guerra Ibarra, J.P.; Cuevas de la Rosa, F.J.; Rocha Rocha, A.J. Formulation of Nutrient Solutions Using Simulated Annealing. Agriculture 2026, 16, 449. https://doi.org/10.3390/agriculture16040449

AMA Style

Guerra Ibarra JP, Cuevas de la Rosa FJ, Rocha Rocha AJ. Formulation of Nutrient Solutions Using Simulated Annealing. Agriculture. 2026; 16(4):449. https://doi.org/10.3390/agriculture16040449

Chicago/Turabian Style

Guerra Ibarra, Juan Pablo, Francisco Javier Cuevas de la Rosa, and Aaron Junior Rocha Rocha. 2026. "Formulation of Nutrient Solutions Using Simulated Annealing" Agriculture 16, no. 4: 449. https://doi.org/10.3390/agriculture16040449

APA Style

Guerra Ibarra, J. P., Cuevas de la Rosa, F. J., & Rocha Rocha, A. J. (2026). Formulation of Nutrient Solutions Using Simulated Annealing. Agriculture, 16(4), 449. https://doi.org/10.3390/agriculture16040449

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop