Plant hydroponic method based on RO reverse osmosis water treatment

CN118133712BActive Publication Date: 2024-11-15淄博市农业科学研究院 +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410248194.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-05
Publication Date
2024-11-15
Estimated Expiration
2044-03-05

AI Technical Summary

Technical Problem

Traditional reverse osmosis technology has problems such as insufficient optimization of water quality parameters, high energy consumption, large environmental impact, complex operation and unsuitable for automation and intelligence in the field of plant hydroponics. Traditional plant hydroponics technology has soil resource consumption and pest transmission, etc. question.

Method used

Using the plant hydroponics method based on RO reverse osmosis water treatment, the water flux and other water quality parameters of the reverse osmosis membrane are adjusted in real time by defining the water quality parameter vector and target water quality parameters, and using the spatial search optimization model to realize accurate control of the plant growth environment. and optimize, reduce energy consumption, reduce chemical agent use, and improve the intelligence and stability of the system.

Benefits of technology

It has achieved accurate optimization of the water quality of the plant growth environment, improved the health and yield of plant growth, reduced energy consumption and chemical use, improved the automation and stability of the system, and adapted to the needs of different plant growth stages.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118133712B_ABST
    Figure CN118133712B_ABST
Patent Text Reader

Abstract

The present invention discloses a plant hydroponic method based on RO reverse osmosis water treatment, and relates to the field of intelligent control technology; the method comprises: step 1: defining a water quality parameter vector, each element representing a water quality parameter at the moment; step 2: calculating the water flux at the initial moment of the reverse osmosis membrane; using the water potential model and the Richards equation to calculate the rate of change of the water flux; step 3: using a spatial search optimization model to find the optimal position of each spatial point cluster at each time step and the global optimal position of each spatial point cluster according to the target water quality parameter; step 4: real-time collection of other water quality parameters of the aqueous solution in which the plant is located except the water flux, so that the water quality parameters corresponding to the global optimal position are constantly approached. The present invention realizes the precise control and optimization of water quality parameters in the plant growth environment, improves the purity and nutrient content of the water quality, and realizes the efficient use of water resources.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of intelligent control technology, and in particular to a plant hydroponic method based on RO reverse osmosis water treatment. Background Art

[0002] With the development of human society and the acceleration of industrialization, the increasing shortage of water resources and water pollution have become one of the global challenges. Especially in agricultural production, a large amount of water resources are used for irrigation and plant growth. Therefore, efficient use of water resources and improvement of water quality have become urgent needs for current agricultural development. In this context, reverse osmosis (RO) water treatment technology has attracted widespread attention as an efficient water treatment technology and has shown great potential in the field of plant hydroponics.

[0003] Reverse osmosis (RO) technology is a membrane separation technology that uses a semipermeable membrane to separate water and solutes. During the reverse osmosis process, water spontaneously permeates through the semipermeable membrane from the high-concentration side (solute solution) to the low-concentration side (pure water), thereby achieving efficient treatment of water quality. This technology has the advantages of high treatment efficiency, simple operation, and environmental friendliness, so it is widely used in drinking water treatment, industrial wastewater treatment and other fields.

[0004] However, there are still some problems in the application of traditional reverse osmosis technology in the field of plant hydroponics. First, traditional reverse osmosis technology is mainly aimed at water quality treatment, and the optimization of water quality parameters required for plant growth is not sufficient, lacking pertinence and personalization. Secondly, traditional reverse osmosis technology often requires a lot of energy and chemicals, which is costly and has a great impact on the environment. In addition, traditional reverse osmosis technology often requires manual intervention and adjustment during operation, and has problems such as complex operation and poor stability, which is not suitable for the automation and intelligence requirements of plant hydroponic systems.

[0005] In addition, traditional hydroponic technology also has some problems, such as soil cultivation consumption of soil resources, easy spread of pests and diseases, etc. Therefore, how to combine reverse osmosis technology with hydroponic technology to develop an efficient, energy-saving and environmentally friendly hydroponic method has become a technical problem that needs to be solved urgently. Summary of the invention

[0006] The purpose of the present invention is to provide a plant hydroponic method based on RO reverse osmosis water treatment, which realizes the precise control and optimization of water quality parameters in the plant growth environment, improves the purity and nutrient content of water quality, realizes the efficient utilization of water resources, and improves the intelligence level and stability of the plant hydroponic system. It has important application value and social benefits in promoting plant growth, increasing yield, protecting the environment, etc.

[0007] In order to solve the above technical problems, the present invention provides a plant hydroponic method based on RO reverse osmosis water treatment, the method comprising:

[0008] Step 1: Define a water quality parameter vector, where each element represents a water quality parameter at that moment; water flux is an element; set the target water quality parameter vector; set a spatial search optimization model, initialize the number of spatial searches, maximum number of iterations, inertia weight and learning factor; randomly generate spatial point clusters, each of which is a water quality parameter vector, and these spatial point clusters are used as the initial spatial search volume; the speed of each spatial point cluster is randomly initialized; and the position of the spatial point cluster is updated according to its speed;

[0009] Step 2: Calculate the water flux of the reverse osmosis membrane at the initial moment; calculate the rate of change of the water flux using the water potential model and Richards equation; thereby obtaining the water flux distribution function at each moment;

[0010] Step 3: The spatial search optimization model iteratively updates the position, speed and direction of each spatial point cluster at each time step according to the target water quality parameters to minimize the difference between each spatial point cluster and the target water quality parameters; thereby finding the optimal position of each spatial point cluster at each time step and the global optimal position of each spatial point cluster;

[0011] Step 4: Collect other water quality parameters of the aqueous solution in which the plants are located except the water flux in real time, and find the closest spatial point cluster in the initial spatial search volume; then adjust the water flux and other water quality parameters except the water flux of the reverse osmosis membrane in real time according to the optimal position of the spatial point cluster at this time step, so that it moves toward the optimal position; and according to the global optimal position of the spatial point cluster, adjust the water flux of the reverse osmosis membrane in real time, so that it continuously approaches the corresponding water flux in the water quality parameters corresponding to the global optimal position.

[0012] Furthermore, the water quality parameters include: plant water solution parameters, osmotic membrane parameters and input solution parameters; the plant water solution parameters include at least: water potential, salinity, pH value, dissolved oxygen concentration, solute concentration and suspended matter concentration; the input solution parameters include at least: input water potential, input salinity, input pH value, input dissolved oxygen concentration, input solute concentration and input suspended matter concentration; the osmotic membrane parameters include at least: membrane osmotic pressure, membrane surface charge density, membrane porosity, membrane thickness and membrane area.

[0013] Furthermore, in step 1, the water quality parameter vector is defined as:

[0014] ;

[0015] in Indicates water quality parameters;

[0016] Set the target water quality parameter vector as:

[0017] ;

[0018] Initialize the number of spatial searches , the maximum number of iterations is , inertia weight , learning factor and ; Randomly generated The water quality parameter vector of the spatial point cluster is used as the initial spatial search volume:

[0019] ;

[0020] No. The velocity of each space point cluster is expressed as a vector:

[0021] ;

[0022] in, Indicates The water quality parameter vector corresponding to the spatial point cluster The speed of each element of the water quality parameter vector is calculated; for each element of the water quality parameter vector, its upper and lower limits are set, and the speed of each spatial point cluster is randomly initialized; and the position of the spatial point cluster is updated according to its speed.

[0023] Furthermore, the velocity of each spatial point cluster is randomly initialized using the following formula:

[0024] ;

[0025] in, Indicates generating a random number between 0 and 1; is the water quality parameter vector The length of the range of an element is equal to the corresponding upper limit minus the lower limit.

[0026] Furthermore, the water flux of the reverse osmosis membrane at the initial moment is calculated using the following formula: :

[0027] ;

[0028] in, is the parameter of diffusion coefficient changing with temperature and pressure; is the membrane area of ​​the membrane; is the thickness of the film; is the solute concentration at the initial moment; is the input solute concentration, that is, the solute concentration after entering the reverse osmosis membrane.

[0029] Furthermore, Calculated using the following formula:

[0030] ;

[0031] in, is the kinetic diameter of the solute molecule; is the kinetic diameter of a water molecule; is the surface charge density of the membrane; is temperature; for pressure; is the room temperature, is the set value, and the value range is 23 to 25; is the porosity of the membrane.

[0032] Furthermore, in step 2, the rate of change of water flux is calculated using the water potential model and Richards equation by the following formula: :

[0033] ;

[0034] in, is the viscosity constant of water; is the water potential difference, which is equal to the input water potential minus the water potential; is the salinity difference, which is equal to the input salinity minus the salinity; is the dissolved oxygen concentration difference, which is equal to the input dissolved oxygen concentration minus the dissolved oxygen concentration; is the suspended matter concentration, which is equal to the input suspended matter concentration minus the suspended matter concentration; is the Van't Hoff correction factor, which is calculated using the following formula:

[0035] ;

[0036] The water flux distribution function is obtained as follows:

[0037] ;

[0038] in, is the water flux distribution function.

[0039] Furthermore, step 3 specifically includes: for each time step and each spatial point cluster , iteratively execute the following process: calculate the fitness value of the spatial point cluster, that is, the difference between the water quality parameter and the target water quality parameter, as the objective function value; according to the fitness value of the spatial point cluster, update the position of each spatial point cluster to the optimal position of the current time step , and update the speed and direction of the spatial point cluster at the same time; use the updated position as the starting point of the next iteration; when the maximum number of iterations is reached or the stopping condition is met, stop the iteration, and use the individual best position corresponding to the maximum fitness value of the spatial point cluster as the global best position of the spatial point cluster .

[0040] Furthermore, the objective function value is calculated using the following formula:

[0041] ;

[0042] in, is the objective function value, which is also the fitness value.

[0043] Taking the water flux distribution function as a constraint, the spatial search optimization model iteratively updates the position of each spatial point cluster at each time step according to the target water quality parameters to minimize the difference between each spatial point cluster and the target water quality parameters; thereby finding the optimal position and global optimal position of each spatial point cluster at each time step;

[0044] Furthermore, for each time step and each spatial point cluster , use the following formula to update the position of each spatial point cluster to the current optimal position :

[0045] ;

[0046] Use the following formula to update the speed of the spatial point cluster:

[0047] ;

[0048] in, is the osmotic pressure of the membrane; for The speed of the moment;

[0049] Use the following formula to update the direction of the spatial point cluster:

[0050] ;

[0051] in, Indicates the random generation of an integer from 1 to 360; for The direction of the spatial point cluster at the moment; for The spatial point cluster direction at the moment.

[0052] The plant hydroponic method based on RO reverse osmosis water treatment of the present invention has the following beneficial effects: traditional plant hydroponic technology often ignores the importance of water quality parameters to plant growth, while the present invention fully considers the demand of plants for water quality, and realizes accurate optimization of water quality parameters by defining water quality parameter vectors and setting target water quality parameter vectors, and using spatial search optimization model for real-time adjustment. In this way, it can ensure that plants obtain the most suitable water quality conditions during growth, and improve the health and yield of plant growth. Compared with traditional reverse osmosis technology, the present invention adopts spatial search optimization algorithm to realize real-time adjustment of reverse osmosis membrane, avoiding the common problem of high energy consumption in traditional reverse osmosis technology. At the same time, the present invention realizes efficient utilization and conservation of water resources by real-time collection of other water quality parameters of aqueous solution except water flux, and adjusting water flux and other water quality parameters according to the optimal position of spatial point cluster. In this way, energy consumption is reduced, the use of chemical agents is reduced, and significant energy-saving and environmental protection effects are achieved. The present invention uses spatial search optimization algorithm to realize real-time monitoring and adjustment of water quality parameters, so that the entire plant hydroponic process is automated and intelligent. Manual intervention and adjustment are no longer required, which greatly reduces the complexity and difficulty of operation and improves production efficiency and stability. This can effectively reduce labor costs while improving production consistency and controllability. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0054] Figure 1 A schematic diagram of a method flow of a plant hydroponic method based on RO reverse osmosis water treatment provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0055] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0056] Example 1: Reference Figure 1 , a plant hydroponic method based on RO reverse osmosis water treatment, the method comprising:

[0057] Step 1: Define a water quality parameter vector, where each element represents a water quality parameter at that moment; water flux is an element; set the target water quality parameter vector; set a spatial search optimization model, initialize the number of spatial searches, maximum number of iterations, inertia weight and learning factor; randomly generate spatial point clusters, each of which is a water quality parameter vector, and these spatial point clusters are used as the initial spatial search volume; the speed of each spatial point cluster is randomly initialized; and the position of the spatial point cluster is updated according to its speed;

[0058] Definition of water quality parameter vector: In this step, we first need to define a water quality parameter vector, which contains the key water quality parameters in the process of plant hydroponic method. These parameters can include pH value, dissolved oxygen content, salinity, nutrient element concentration, etc. These parameters are crucial for the growth and health of plants because they directly affect the ability of plants to absorb and utilize water and nutrients. Next, we need to set up a spatial search optimization model, which will help us optimize the water quality parameters so that plants can get the best growth environment. When setting up the model, we need to determine some key parameters, such as the number of spatial searches, the maximum number of iterations, the inertia weight, and the learning factor. The choice of these parameters will affect the performance and efficiency of the optimization algorithm. In the initialization stage, a certain number of spatial point clusters are randomly generated. Each spatial point cluster represents a set of water quality parameter vectors, which can be regarded as a configuration in the reverse osmosis water treatment system. Then, the speed of each spatial point cluster needs to be randomly initialized, and its position needs to be updated according to the speed of the spatial point cluster. The purpose of this is to disperse the initial state of the spatial search volume in the parameter space so that the solution space can be better explored in the subsequent optimization process and the optimal solution can be found.

[0059] Step 2: Calculate the water flux of the reverse osmosis membrane at the initial moment; calculate the rate of change of the water flux using the water potential model and Richards equation; thereby obtaining the water flux distribution function at each moment;

[0060] The water flux of the reverse osmosis membrane refers to the amount of water passing through the membrane per unit time. In this step, the water flux of the reverse osmosis membrane at the initial moment needs to be calculated first. The calculation of this water flux is based on the permeation and diffusion behavior of water molecules on the membrane during the reverse osmosis process, and is usually described by some models and equations, such as the water potential model and the Richards equation. The water flux of the reverse osmosis membrane is one of the key factors affecting the adjustment of water quality parameters. After calculating the water flux at the initial moment, the rate of change of the water flux needs to be calculated next. This rate of change is affected by many factors, including temperature, pressure, and the degree of contamination on the membrane surface. The water potential model and the Richards equation are usually used to describe the change of water flux over time. By calculating the water flux and the rate of change of water flux at the initial moment of the reverse osmosis membrane, the water flux distribution function at each moment can be obtained. This function describes the trend of water flux change over time, providing a basis for the subsequent optimization of water quality parameters.

[0061] Step 3: The spatial search optimization model iteratively updates the position, speed and direction of each spatial point cluster at each time step according to the target water quality parameters to minimize the difference between each spatial point cluster and the target water quality parameters; thereby finding the optimal position of each spatial point cluster at each time step and the global optimal position of each spatial point cluster;

[0062] In step 3, the spatial search optimization (PSO) algorithm is used to continuously iteratively optimize the position and speed of each spatial point cluster according to the set target water quality parameters. This means that each spatial point cluster is trying to find an optimal combination of water quality parameters to make the water quality of the system as close to the target value as possible. This process can be regarded as a solution process for an optimization problem, the goal of which is to minimize the difference between each spatial point cluster and the target water quality parameter. Through the iterative optimization process of the PSO algorithm, the optimal position of each spatial point cluster at each time step and the global optimal position of the entire spatial search volume are finally found. The global optimal solution represents the optimal combination of water quality parameters in the entire spatial search volume, which can minimize the difference between the water quality of the system and the target value. The PSO algorithm continuously adjusts the position and speed of each spatial point cluster to find the optimal solution. This means that during the water treatment process, the water quality parameters of the system will be dynamically adjusted to adapt to different environmental conditions and the needs of the plant growth stage. This ability to dynamically adjust water quality parameters makes the system more intelligent and flexible, able to respond to changes in the external environment in a timely manner, and keep the water quality in an ideal state.

[0063] Step 4: Collect other water quality parameters of the aqueous solution in which the plants are located except the water flux in real time, and find the closest spatial point cluster in the initial spatial search volume; then adjust the water flux and other water quality parameters except the water flux of the reverse osmosis membrane in real time according to the optimal position of the spatial point cluster at this time step, so that it moves toward the optimal position; and according to the global optimal position of the spatial point cluster, adjust the water flux of the reverse osmosis membrane in real time, so that it continuously approaches the corresponding water flux in the water quality parameters corresponding to the global optimal position.

[0064] In step 4, the system monitors other water quality parameters of the aqueous solution in which the plants are located in real time, such as pH value, dissolved oxygen content, salinity, etc., in addition to water flux. These water quality parameters play a vital role in the growth and health of plants and need to be kept within an appropriate range. The water quality parameters collected in real time are compared with the spatial point clusters in the initial spatial search volume to find the closest spatial point cluster. Then, according to the optimal position of the spatial point cluster at this time step, the water flux of the reverse osmosis membrane and other water quality parameters except water flux are adjusted in real time to move toward the optimal position. The purpose of this is to adjust the working state of the system according to the water quality parameters monitored in real time to adapt it to the current plant growth environment. At the same time, according to the global optimal position, the water flux of the reverse osmosis membrane is adjusted in real time to continuously approach the corresponding water flux in the water quality parameters corresponding to the global optimal position. By continuously adjusting the water flux, the system can be maintained in a relatively ideal state, thereby providing a stable and high-quality growth environment for plants. Step 4 monitors the water quality parameters of the aqueous solution in which the plants are located in real time, and dynamically adjusts the water flux and other water quality parameters of the reverse osmosis membrane according to the monitoring results, so that the system can respond to changes in the external environment in a timely manner, maintain the water quality in an ideal state, and thus provide the most suitable growth environment for the plants. This ability to adjust water quality parameters in real time makes the system more intelligent and adaptable, and can better meet the needs of different plant growth stages, and improve plant growth efficiency and yield.

[0065] Embodiment 2: Water quality parameters include: plant water solution parameters, osmotic membrane parameters and input solution parameters; the plant water solution parameters include at least: water potential, salinity, pH value, dissolved oxygen concentration, solute concentration and suspended matter concentration; the input solution parameters include at least: input water potential, input salinity, input pH value, input dissolved oxygen concentration, input solute concentration and input suspended matter concentration; the osmotic membrane parameters include at least: membrane osmotic pressure, membrane surface charge density, membrane porosity, membrane thickness and membrane area.

[0066] Specifically, water potential refers to the activity and potential energy of water molecules in the plant body and the surrounding environment. The size of water potential depends on the combined effect of water chemical potential, osmotic potential and pressure potential. Plants regulate water potential through osmotic regulation of cell walls and water absorption by roots, thereby maintaining water balance inside and outside cells and ensuring normal growth and metabolic activities. Salinity refers to the concentration of salts contained in aqueous solution. High salinity will make it difficult for plant roots to absorb water, affecting the normal growth and development of plants. Therefore, controlling the salinity in aqueous solution is one of the important factors in maintaining healthy plant growth. pH value is an indicator of the acidity and alkalinity of aqueous solution. Its value range is 0 to 14. The pH value of neutral solution is 7, below 7 is acidic, and above 7 is alkaline. Plants have different adaptability to water quality with different pH values. Generally speaking, most plants are more suitable for water quality with a pH value between 6 and 7. Dissolved oxygen is the concentration of oxygen dissolved in water, which is necessary to maintain the survival and metabolism of organisms in water. Plant roots need oxygen for respiration, so the concentration of dissolved oxygen in water is crucial for the growth and survival of plant roots. Solute concentration refers to the concentration of dissolved substances in aqueous solution, including inorganic salts, organic matter, etc. Plants absorb nutrients in aqueous solution through their roots to maintain normal growth and metabolic activities, so proper regulation of solute concentration is essential for plant growth and development. Suspended matter concentration refers to the concentration of suspended particles in water, such as silt, suspended organic matter, etc. Excessive suspended matter concentration will cause water turbidity, affect light penetration and plant root absorption, and thus affect plant growth and nutrient absorption capacity.

[0067] Osmotic pressure refers to the osmotic pressure of the reverse osmosis membrane on the solute molecules. The osmotic pressure of the reverse osmosis membrane determines the permeation rate of water molecules on the membrane. Generally speaking, the greater the osmotic pressure, the fewer water molecules pass through the membrane, thus affecting the water production and water quality of the reverse osmosis system. The charge density on the surface of the reverse osmosis membrane affects the charge distribution on the membrane surface, thereby affecting the electrostatic adsorption characteristics of the membrane and the retention effect of the solute. The greater the surface charge density, the stronger the electrostatic adsorption capacity of the membrane surface, and the better the retention effect of the solute. Porosity refers to the proportion of pores on the surface of the reverse osmosis membrane, which affects the permeability and barrier properties of the membrane. The greater the porosity, the better the permeability of the membrane, but the retention effect is relatively poor; conversely, the smaller the porosity, the better the barrier effect of the membrane, but the permeability will be reduced accordingly. The thickness of the reverse osmosis membrane determines the diffusion rate of water molecules in the membrane. The greater the thickness, the longer the diffusion path, and the fewer water molecules pass through the membrane, thus affecting the flux and water production of the reverse osmosis system. The membrane area of ​​the reverse osmosis membrane determines the flux of the reverse osmosis system, that is, the amount of water passing through the membrane per unit time. The larger the membrane area, the greater the flux, thereby improving the water production capacity of the reverse osmosis system.

[0068] Example 3: In step 1, the water quality parameter vector is defined as:

[0069] ,

[0070] in Indicates water quality parameters;

[0071] Set the target water quality parameter vector as:

[0072] ;

[0073] Initialize the number of spatial searches , the maximum number of iterations is , inertia weight , learning factor and ; Randomly generated The water quality parameter vector of the spatial point cluster is used as the initial spatial search volume:

[0074] ;

[0075] No. The velocity of each space point cluster is expressed as a vector:

[0076] ;

[0077] in, Indicates The water quality parameter vector corresponding to the spatial point cluster The speed of each element of the water quality parameter vector is calculated; for each element of the water quality parameter vector, its upper and lower limits are set, and the speed of each spatial point cluster is randomly initialized; and the position of the spatial point cluster is updated according to its speed.

[0078] Specifically, first, by defining the water quality parameter vector and the target water quality parameter vector, the system can transform the optimization problem of water quality parameters into a search problem in a multidimensional vector space. This representation makes the problem easier to be processed by computer programs and more in line with actual water treatment needs. Secondly, the parameters such as the number of initialized spatial searches, the maximum number of iterations, the inertia weight and the learning factor provide the necessary settings for the operation of the PSO algorithm. The number of spatial searches determines the coverage of the search space, and the maximum number of iterations specifies the end condition of the optimization algorithm, thereby controlling the running time and performance of the algorithm to a certain extent. Subsequently, by randomly generating the initial spatial search volume and the speed of the initial spatial point cluster, the optimization process of the PSO algorithm is prepared. The water quality parameter vectors and speed vectors of these initial spatial point clusters are randomly generated within a certain range to cover the entire parameter space. This randomness helps to explore the search space as widely as possible in the initial stage, providing more possibilities for the subsequent optimization process. Finally, by updating the position of the spatial point cluster, the PSO algorithm gradually optimizes the water quality parameter vector to make it close to the target water quality parameter vector. During the update process, the spatial point cluster adjusts its position according to its own speed and current position to find a better combination of water quality parameters. This iterative process will continue until the maximum number of iterations is reached or the conditions for meeting the optimization goal are met.

[0079] Example 4: Randomly initialize the speed of each spatial point cluster using the following formula:

[0080] ;

[0081] in, Indicates generating a random number between 0 and 1; is the water quality parameter vector The length of the range of an element is equal to the corresponding upper limit minus the lower limit.

[0082] Specifically, the PSO algorithm is a heuristic optimization algorithm, which is mainly used to solve multidimensional search and optimization problems. In the PSO algorithm, a spatial point cluster represents a candidate solution in a potential solution space, and the speed of the spatial point cluster determines the moving direction and rate of the spatial point cluster in the solution space. Therefore, the speed of initializing the spatial point cluster has an important influence on the performance and convergence speed of the algorithm. The speed initialization formula proposed in Example 4 introduces randomness to the movement of the spatial point cluster in the parameter space by randomly generating the speed of each spatial point cluster. In this formula, the rand() function generates a random number between 0 and 1, multiplies it by the parameter range length, and then subtracts half of the range length, and the value obtained is the initialization value of the speed. This design makes the speed of each spatial point cluster near the center of the value range in the initialization phase, and at the same time has a certain randomness, which helps to increase the coverage of the search space. By introducing randomness, the speed initialization formula can prevent the spatial search from falling into a local optimal solution, which helps to improve the global search ability of the algorithm. Because each spatial point cluster may explore in different directions during the initialization phase, it is possible to search the entire solution space more comprehensively, rather than being limited to the area of ​​the local optimal solution. In addition, the velocity initialization process also provides a good starting point for subsequent iterative optimization. The randomly generated velocity makes the motion state of the spatial point cluster in the initial stage have a certain diversity, which is conducive to quickly exploring the search space and finding the optimal solution as soon as possible. At the same time, the randomness of the velocity also helps the algorithm overcome the dilemma of the local optimal solution, making it more likely to find the global optimal solution.

[0083] Example 5: Use the following formula to calculate the water flux of the reverse osmosis membrane at the initial moment :

[0084] ;

[0085] in, is the parameter of diffusion coefficient changing with temperature and pressure; is the membrane area of ​​the membrane; is the thickness of the film; is the solute concentration at the initial moment; is the input solute concentration, that is, the solute concentration after entering the reverse osmosis membrane.

[0086] Specifically, the first part of the formula It represents the rate at which water molecules pass through the reverse osmosis membrane per unit time. This part can be interpreted as a part of Brownian motion, where the diffusion coefficient Describes the diffusion rate of water molecules in the reverse osmosis membrane, while the membrane area and film thickness It determines the permeation rate of water molecules. Here, we can regard the movement of water molecules in the reverse osmosis membrane as Brownian motion, and its rate is affected by the diffusion coefficient, membrane area and membrane thickness. The second part of the formula It describes the diffusion process of water molecules in the reverse osmosis membrane. Among them, the exponential function It can be interpreted as part of the Poisson process. The Poisson process describes the random permeation process of water molecules in the reverse osmosis membrane, in which the permeation time interval of water molecules obeys an exponential distribution and is affected by the membrane thickness and diffusion coefficient. The whole formula combines the principles of Brownian motion and Poisson process to describe the permeation process of water molecules in the reverse osmosis membrane. Among them, Brownian motion describes the random motion of water molecules, while the Poisson process describes the random permeation time interval of water molecules. Through this formula, we can calculate the water flux of the reverse osmosis membrane at the initial moment, and then understand and optimize the performance of the reverse osmosis system.

[0087] Reverse osmosis membrane is a semi-permeable membrane that allows water molecules to pass through but blocks the passage of solutes (such as salts, impurities, etc.). In the reverse osmosis membrane process, water molecules diffuse through the membrane, and the diffusion rate is affected by factors such as temperature, pressure, and membrane material. The first part of the formula It indicates the rate at which water molecules pass through the reverse osmosis membrane per unit time, where: is the diffusion coefficient, which describes the diffusion rate of water molecules in the reverse osmosis membrane. The diffusion coefficient is usually a parameter that changes with temperature and pressure, because changes in temperature and pressure affect the mobility of water molecules and the permeability of membrane materials. It is the membrane area of ​​the reverse osmosis membrane, which represents the surface area of ​​the permeating water molecules. The larger the membrane area, the higher the water flux because there is more surface area for water molecules to pass through. is the thickness of the reverse osmosis membrane, which indicates the diffusion distance of water molecules during the reverse osmosis process. The smaller the thickness of the membrane, the faster the diffusion rate of water molecules, thus affecting the size of the water flux. The second part of the formula It represents the diffusion process of water molecules in the reverse osmosis membrane, where: It is the solute concentration at the initial moment, that is, the solute concentration in the solution upstream (feed) of the reverse osmosis membrane. In the reverse osmosis process, solutes are usually not permeated, so the solute concentration at the initial moment affects the size of the water flux. is the input solute concentration, which indicates the solute concentration after the solute enters the reverse osmosis membrane. If the input solute concentration is higher than the solute concentration at the initial moment, the solute concentration upstream of the reverse osmosis membrane will increase, thereby reducing the water flux. The exponential function in the formula Describes the diffusion process of water molecules in the reverse osmosis membrane. Parameters in the index It is an indicator to measure the diffusion rate. The larger it is, the faster the water molecules diffuse.

[0088] Embodiment 6: Calculated using the following formula:

[0089] ;

[0090] in, is the kinetic diameter of the solute molecule; is the kinetic diameter of a water molecule; is the surface charge density of the membrane; is temperature; for pressure; is the room temperature, is the set value, and the value range is 23 to 25; is the porosity of the membrane.

[0091] Specifically, temperature and pressure It is an important factor affecting the diffusion of water molecules. Higher temperature and pressure usually increase the thermal motion and pressure of water molecules, promote water molecules to pass through the membrane, and thus increase the diffusion coefficient. In the formula, The calculation takes into account the influence of temperature and pressure, through the molecular , The ratio of and the pressure regulation of the diffusion coefficient reflect the influence of temperature and pressure on the diffusion coefficient. and the kinetic diameter of a water molecule This affects their diffusion rate in the membrane. Generally speaking, smaller solute molecules and water molecules can more easily pass through the membrane, so the molecules in the formula The effect of the ratio of the size of the solute molecule to the size of the water molecule on the diffusion coefficient is taken into account, where the square term in the denominator indicates the strength of this effect. Describes the charge distribution on the membrane surface, which affects the adsorption and repulsion behavior of water molecules on the membrane surface. Generally speaking, the greater the surface charge density, the stronger the adsorption of water molecules on the membrane surface, thereby reducing the diffusion coefficient. In the formula, the effect of surface charge density on the diffusion coefficient is reflected in the molecular The regulation of the surface charge density on the diffusion coefficient is characterized in Fig. Describes the size and number of pores in the reverse osmosis membrane, which also affects the diffusion coefficient of water molecules. The greater the porosity, the more pores there are in the reverse osmosis membrane, and the greater the diffusion rate of water molecules. In the formula, the molecular It shows the regulatory effect of porosity on the diffusion coefficient.

[0092] Example 7: In step 2, the rate of change of water flux is calculated using the water potential model and the Richards equation by the following formula: :

[0093] ;

[0094] in, is the viscosity constant of water; is the water potential difference, which is equal to the input water potential minus the water potential; is the salinity difference, which is equal to the input salinity minus the salinity; is the dissolved oxygen concentration difference, which is equal to the input dissolved oxygen concentration minus the dissolved oxygen concentration; is the suspended matter concentration, which is equal to the input suspended matter concentration minus the suspended matter concentration; is the Van't Hoff correction factor, which is calculated using the following formula:

[0095] ;

[0096] The water flux distribution function is obtained as follows:

[0097] ;

[0098] in, is the water flux distribution function.

[0099] Specifically, the role of the Van't Hoff correction factor here is to consider the effect of changes in membrane porosity on water flux. The porosity of the reverse osmosis membrane is an important parameter that determines the permeability and selectivity of the membrane, thereby affecting the water flux. The larger the porosity, the faster the water molecules pass through the membrane. However, in practical applications, the porosity of the reverse osmosis membrane does not always remain constant and may change due to various factors, such as membrane aging, contamination, changes in operating conditions, etc. Therefore, in the calculation of water flux, it is necessary to consider the effect of porosity changes on water flux. Van't Hoff correction factor The regulation effect of membrane porosity change on water flux is considered. The expression of the correction factor is: ,in Indicates the porosity of the membrane. When the porosity is smaller, the correction factor is close to 1, and the change of water flux is less affected by the change of porosity. When it is larger, the correction factor approaches 0, indicating that the effect of porosity change on water flux is more significant. Therefore, the Van't Hoff correction factor plays a role in correcting the water flux in the formula, making the calculation results more accurately reflect the effect of membrane porosity change on water flux, thereby improving the reliability and prediction ability of the model;

[0100] This part represents the effect of the diffusion coefficient and the surface properties of the membrane on the rate of change of water flux. is the porosity of the membrane, is the area of ​​the membrane, Is the viscosity constant of water. The diffusion coefficient and the surface characteristics of the membrane determine the penetration rate of water molecules during the reverse osmosis process. A larger porosity and membrane area and a smaller water viscosity constant will promote an increase in water flux, and vice versa, it will reduce water flux. This section describes the effects of water potential difference and solute concentration difference on water flux changes. It is the water potential difference. is the pressure difference, It is the salinity difference. is the dissolved oxygen concentration difference. Larger differences in water potential and solute concentration generally result in increased water flux. This part represents the inverse of the suspended matter concentration difference, that is, the greater the suspended matter concentration difference, the greater the impact on water flux. This is because the presence of suspended matter may hinder the penetration of water molecules, thereby reducing water flux. is a Van't Hoff correction factor that takes into account the effect of changes in membrane porosity on water flux. Typically, changes in porosity will affect changes in water flux, and the correction factor more accurately estimates the rate of change in water flux by taking porosity changes into account.

[0101] Example 8: Step 3 specifically includes: for each time step and each spatial point cluster , iteratively execute the following process: calculate the fitness value of the spatial point cluster, that is, the difference between the water quality parameter and the target water quality parameter, as the objective function value; according to the fitness value of the spatial point cluster, update the position of each spatial point cluster to the optimal position of the current time step , and update the speed and direction of the spatial point cluster at the same time; use the updated position as the starting point of the next iteration; when the maximum number of iterations is reached or the stopping condition is met, stop the iteration, and use the individual best position corresponding to the maximum fitness value of the spatial point cluster as the global best position of the spatial point cluster .

[0102] Specifically, step 3 continuously updates the position and speed of the spatial point clusters iteratively so that each spatial point cluster searches for the optimal water quality parameter setting in the solution space. By calculating the fitness value of each spatial point cluster, that is, the difference between the water quality parameter and the target water quality parameter, the spatial search optimization algorithm can gradually optimize the water quality parameter setting so that it approaches or reaches the target water quality parameter, thereby achieving the goal of optimal water quality. During the iteration process, the spatial search optimization algorithm not only records the individual optimal position of each spatial point cluster, but also updates the global optimal position, that is, the position where the water quality parameter setting is optimal in all spatial point clusters. In this way, the algorithm can continuously search for the global optimal solution in the solution space to ensure that the best combination of water quality parameters is found, thereby achieving the best water quality treatment effect. The spatial search optimization algorithm can conduct extensive exploration of the search space by iteratively updating the position and speed of the spatial point clusters. This enables the algorithm to search in a complex water quality parameter space and find potential optimal solutions while avoiding the dilemma of falling into the local optimal solution. The algorithm adjusts the position and speed of each spatial point cluster according to its fitness value, so that spatial point clusters with lower fitness are more likely to be affected by a larger search space and direction, thereby accelerating the search process. This adaptive adjustment mechanism helps the algorithm converge to the optimal solution faster.

[0103] Example 9: The objective function value is calculated using the following formula:

[0104] ;

[0105] in, is the objective function value, which is also the fitness value.

[0106] Taking the water flux distribution function as a constraint, the spatial search optimization model iteratively updates the position of each spatial point cluster at each time step according to the target water quality parameters to minimize the difference between each spatial point cluster and the target water quality parameters; thereby finding the optimal position and global optimal position of each spatial point cluster at each time step.

[0107] Specifically, the objective function value (Score) is obtained by calculating the inverse of the sum of the absolute values ​​of the differences between the current position of the spatial point cluster and the target water quality parameter. This inverse value represents the "similarity" between the current position of the spatial point cluster and the target water quality parameter, that is, the fitness value. The closer the current position of the spatial point cluster is to the target water quality parameter, the higher the fitness value. In the spatial search optimization model, each spatial point cluster iteratively updates its position at each time step according to the target water quality parameter to minimize the difference between it and the target water quality parameter. This updating process includes steps such as calculating the objective function value, updating the position and speed, so that the spatial point cluster gradually moves towards a better position. In the process of updating the position of the spatial point cluster, the water flux distribution function is considered as a constraint. This means that the optimization process should not only try to make the water quality parameters of the spatial point cluster close to the target water quality parameters, but also meet the constraints of the water flux distribution function to ensure the stability and efficiency of the water treatment system. At each time step, the spatial search optimization model will find the best position of each spatial point cluster, that is, the position with the minimum objective function value, and the global best position, that is, the position with the minimum objective function value among all spatial point clusters. These positions represent the optimal solution for the current water quality parameter settings and can serve as the starting point and reference for the next step of optimization.

[0108] Example 10: For each time step and each spatial point cluster , use the following formula to update the position of each spatial point cluster to the current optimal position :

[0109] ;

[0110] Use the following formula to update the speed of the spatial point cluster:

[0111] ;

[0112] in, is the osmotic pressure of the membrane; for The speed of the moment;

[0113] Use the following formula to update the direction of the spatial point cluster:

[0114] ;

[0115] in, Indicates the random generation of an integer from 1 to 360; for The direction of the spatial point cluster at the moment; for The spatial point cluster direction at the moment.

[0116] Specifically, osmotic pressure refers to the pressure generated by a solution under osmotic action and is an important parameter of liquid permeability. In water treatment systems, osmotic pressure is usually used to describe the pressure difference between a solution and pure water during reverse osmosis, thereby driving water molecules through a semipermeable membrane for osmosis or reverse osmosis. In Example 10, the osmotic pressure parameter It is used to adjust the speed and direction of the spatial point cluster and affect the motion trajectory of the spatial point cluster. Specifically, in the formula for updating the speed of the spatial point cluster, the osmotic pressure parameter Appears in local search terms function. This means that the osmotic pressure will affect the direction of change of the speed of the spatial point cluster, and then affect the moving direction of the spatial point cluster in the next time step. The specific value of the osmotic pressure determines The value range of the function affects the adjustment of the local search term to the spatial point clustering speed. The change will change with the changes of solute concentration, temperature and pressure in the system. When the solute concentration is high, the osmotic pressure also increases accordingly, thereby increasing the pressure difference of water molecules passing through the semipermeable membrane during the reverse osmosis process and promoting the penetration of water molecules. On the contrary, when the solute concentration is low, the osmotic pressure decreases, and the pressure difference of the reverse osmosis process also decreases. Osmotic pressure parameters In the formula for updating the speed of the spatial point cluster, by affecting the movement direction of the spatial point cluster, it plays an important role in optimizing the water quality parameters in the water treatment system. The change in osmotic pressure can reflect the change in the solute concentration in the solution, thereby affecting the search process of the spatial point cluster, helping to optimize the water quality parameter settings and improve the efficiency and performance of the water treatment system.

[0117] Speed ​​of spatial point clustering At each time step All of them need to be updated. This update process includes three parts: inertia term, local search term and global search term. Among them, is the inertia weight, and are the learning factors for local search and global search respectively. The local search term is the difference between the spatial point cluster and the current best position, and the global search term is the difference between the spatial point cluster and the global best position. The weighted sum of these terms determines the speed and direction of the spatial point cluster in the next time step. The inertia term is an important part of the spatial point cluster velocity update, which is used to maintain the stability of the spatial point cluster motion. Inertia weight Controls the degree to which the spatial point cluster maintains its original speed. During the update process, the inertia term will make the spatial point cluster maintain a certain amount of motion inertia, thereby ensuring the continuity and stability of the search process. If the inertia weight Larger, the speed change of the spatial point cluster is smaller, and the search process is relatively conservative; if the inertia weight The smaller the value, the greater the speed change of the spatial point cluster, and the more aggressive the search process. The local search term takes into account the difference between the spatial point cluster and the current optimal position, and is used to guide the spatial point cluster to move toward the local optimal solution. The learning factor of the local search Controls the weight of the local search. The local search term makes the spatial point cluster tend to move towards the local optimal solution, which helps to accelerate the convergence to the local optimal solution. The global search term takes into account the difference between the spatial point cluster and the global optimal position, and is used to guide the spatial point cluster to move towards the global optimal solution. Learning factor of global search The weight of the global search is controlled. The global search term makes the spatial point cluster tend to move towards the direction of the global optimal solution, which helps to avoid falling into the local optimal solution and improves the global search ability of the algorithm.

[0118] The formula for updating the direction of the spatial point cluster contains a randomly generated integer , which ranges from 1 to 360. The introduction of this random number generates a different offset each time the spatial point cluster direction is updated, making the motion trajectory of the spatial point cluster more diverse. By introducing randomness, the spatial search optimization algorithm can be prevented from falling into a local optimal solution, thereby increasing the global search capability of the algorithm. The process of updating the spatial point cluster direction is to update the current spatial point cluster direction. Add to the randomly generated integer to get the new spatial point cluster direction . This process is equivalent to a random fine-tuning of the movement direction of the spatial point cluster, making the movement of the spatial point cluster in the search space more random and diverse. In this way, the spatial point cluster can explore the entire search space more comprehensively during the search process, thereby improving the search efficiency and global search capability of the algorithm. Since a random offset is introduced each time the direction of the spatial point cluster is updated, the movement path of the spatial point cluster in the search space will be more diverse. This diversity helps the spatial search optimization algorithm to explore the search space more comprehensively, thereby increasing the possibility of finding the global optimal solution. By increasing the diversity of the search space, the algorithm can more effectively overcome the problem of local optimal solutions, thereby improving the convergence speed and search efficiency of the algorithm.

[0119] The present invention is described in detail above. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. It should be pointed out that for ordinary technicians in this technical field, without departing from the principle of the present invention, several improvements and modifications can be made to the present invention, and these improvements and modifications also fall within the scope of protection of the claims of the present invention.

Claims

1. A plant hydroponic method based on RO reverse osmosis water treatment, the method comprising: Step 1: Define the water quality parameter vector, where each element represents a water quality parameter at that moment; The water flux is one element; Set the target water quality parameter vector; set a spatial search optimization model, initialize the spatial search quantity, maximum number of iterations, inertia weight and learning factor; randomly generate spatial point clusters, each of which is a water quality parameter vector, and these spatial point clusters are used as the initial spatial search volume; the speed of each spatial point cluster is randomly initialized; and the position of the spatial point cluster is updated according to its speed; Step 2: Calculate the water flux of the reverse osmosis membrane at the initial moment; calculate the rate of change of the water flux using the water potential model and Richards equation; thereby obtaining the water flux distribution function at each moment; Step 3: The spatial search optimization model iteratively updates the position, speed and direction of each spatial point cluster at each time step according to the target water quality parameters to minimize the difference between each spatial point cluster and the target water quality parameters; thereby finding the optimal position of each spatial point cluster at each time step and the global optimal position of each spatial point cluster; Step 4: collect other water quality parameters of the aqueous solution in which the plant is located except the water flux in real time, and find the closest spatial point cluster in the initial spatial search volume; then adjust the water flux of the reverse osmosis membrane and other water quality parameters except the water flux in real time according to the optimal position of the spatial point cluster at this time step, so that it moves toward the optimal position; and according to the global optimal position of the spatial point cluster, adjust the water flux of the reverse osmosis membrane in real time, so that it continuously approaches the corresponding water flux in the water quality parameters corresponding to the global optimal position; The water quality parameters include: plant water solution parameters, osmotic membrane parameters and input solution parameters; the plant water solution parameters include at least: water potential, salinity, pH value, dissolved oxygen concentration, solute concentration and suspended matter concentration; the input solution parameters include at least: input water potential, input salinity, input pH value, input dissolved oxygen concentration, input solute concentration and input suspended matter concentration; the osmotic membrane parameters include at least: membrane osmotic pressure, membrane surface charge density, membrane porosity, membrane thickness and membrane area; In step 1, the water quality parameter vector is defined as ,in Indicates water quality parameters; set the target water quality parameter vector as ; Initialize the number of spatial searches , the maximum number of iterations is , inertia weight , learning factor and ; Randomly generated The water quality parameter vector of the spatial point cluster is used as the initial spatial search volume ;No. The velocity of a cluster of space points is a vector expressed as ;in, Indicates The water quality parameter vector corresponding to the spatial point cluster The speed of each element of the water quality parameter vector is set; for each element of the water quality parameter vector, its upper and lower limits are set, and the speed of each spatial point cluster is randomly initialized; according to the speed of the spatial point cluster, its position is updated; The velocity of each spatial point cluster is randomly initialized using the following formula: ; in, Indicates generating a random number between 0 and 1; is the water quality parameter vector The length of the value range of an element is equal to the corresponding upper limit minus the lower limit; Use the following formula to calculate the water flux of the reverse osmosis membrane at the initial moment: : ; in, is the parameter of diffusion coefficient changing with temperature and pressure; is the membrane area of ​​the membrane; is the thickness of the film; is the solute concentration at the initial moment; is the input solute concentration, i.e., the solute concentration after entering the reverse osmosis membrane; Calculated using the following formula: ; in, is the kinetic diameter of the solute molecule; is the kinetic diameter of a water molecule; is the surface charge density of the membrane; is temperature; for pressure; is the room temperature, is the set value, and the value range is 23 to 25; is the porosity of the membrane; In step 2, the rate of change of water flux is calculated using the water potential model and Richards equation by the following formula: : ; in, is the viscosity constant of water; is the water potential difference, which is equal to the input water potential minus the water potential; is the pressure difference; is the salinity difference, which is equal to the input salinity minus the salinity; is the dissolved oxygen concentration difference, which is equal to the input dissolved oxygen concentration minus the dissolved oxygen concentration; is the suspended matter concentration difference, which is equal to the input suspended matter concentration minus the suspended matter concentration; is the Van't Hoff correction factor, which is calculated using the following formula: ; The water flux distribution function is obtained as follows: ; in, is the water flux distribution function; Step 3 specifically includes: for each time step and each spatial point cluster , iteratively execute the following process: calculate the fitness value of the spatial point cluster, that is, the difference between the water quality parameter and the target water quality parameter, as the objective function value; according to the fitness value of the spatial point cluster, update the position of each spatial point cluster to the optimal position of the current time step , and update the speed and direction of the spatial point cluster at the same time; use the updated position as the starting point of the next iteration; when the maximum number of iterations is reached or the stopping condition is met, stop the iteration, and use the individual best position corresponding to the maximum fitness value of the spatial point cluster as the global best position of the spatial point cluster ; The objective function value is calculated using the following formula: ; in, is the objective function value, which is also the fitness value; Taking the water flux distribution function as a constraint, the spatial search optimization model iteratively updates the position of each spatial point cluster at each time step according to the target water quality parameters to minimize the difference between each spatial point cluster and the target water quality parameters; thereby finding the optimal position and global optimal position of each spatial point cluster at each time step; For each time step and each spatial point cluster , use the following formula to update the position of each spatial point cluster to the current optimal position : ; Use the following formula to update the speed of the spatial point cluster: ; in, is the osmotic pressure of the membrane; for The speed of the moment; Use the following formula to update the direction of the spatial point cluster: ; in, Indicates the random generation of an integer from 1 to 360; for The direction of the spatial point cluster at the moment; for The spatial point cluster direction at the moment.