| Literature DB >> 34884070 |
Viorel Minzu1, George Ifrim1, Iulian Arama2.
Abstract
A metaheuristic algorithm can be a realistic solution when optimal control problems require a significant computational effort. The problem stated in this work concerns the optimal control of microalgae growth in an artificially lighted photobioreactor working in batch mode. The process and the dynamic model are very well known and have been validated in previous papers. The control solution is a closed-loop structure whose controller generates predicted control sequences. An efficient way to make optimal predictions is to use a metaheuristic algorithm, the particle swarm optimization algorithm. Even if this metaheuristic is efficient in treating predictions with a very large prediction horizon, the main objective of this paper is to find a tool to reduce the controller's computational complexity. We propose a soft sensor that gives information used to reduce the interval where the control input's values are placed in each sampling period. The sensor is based on measurement of the biomass concentration and numerical integration of the process model. The returned information concerns the specific growth rate of microalgae and the biomass yield on light energy. Algorithms, which can be used in real-time implementation, are proposed for all modules involved in the simulation series. Details concerning the implementation of the closed loop, controller, and soft sensor are presented. The simulation results prove that the soft sensor leads to a significant decrease in computational complexity.Entities:
Keywords: adaptive particle swarm optimization; closed-loop control structure; microalgae growth model; optimal control problem; optimal predictions; soft sensors
Mesh:
Year: 2021 PMID: 34884070 PMCID: PMC8659673 DOI: 10.3390/s21238065
Source DB: PubMed Journal: Sensors (Basel) ISSN: 1424-8220 Impact factor: 3.576
Figure 1Schematic representation of light attenuation inside the photobioreactor.
Figure 2Closed loop with Receding Horizon Control.
Outline of Receding Horizon Controller.
| 1 | Obtain the current value of the state vector, |
| 2 | |
| 3 |
|
| 4 | Send |
| 5 | Shift the prediction horizon and wait for the next sampling period |
Figure 3Receding Horizon Controller with sensor.
Figure 4Evolution of x1(t) and SGR(t) over 50 h.
Figure 5Dependence of biomass concentration, SGR, and biomass yield on light energy as a function of light intensity.
Algorithm of the soft sensor.
| 1 | Initialize the light intensity vector |
| 2 | Initializations: |
| 3 | |
| 4 | |
| 5 | |
| 6 |
|
| 7 | |
| 8 |
|
| 9 | |
| 10 | |
| 11 | |
| 12 |
|
| 13 |
|
| 14 | |
| 15 | |
| 16 |
|
| 17 | |
| 18 | |
| 19 | |
| 20 | |
| 21 |
|
| 22 |
|
| 23 | |
| 24 |
|
| 25 |
|
Description of adaptive particle swarm optimization algorithm.
| 1 | |
| 2 | Initialization: |
| 3 | Generate the particles’ initial velocities as uniformly distributed values in the interval [−vmax, vmax] |
| 4 | Generate the particles’ initial positions |
| 5 |
|
| 6 | |
| 7 | BEST( |
| 8 |
|
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | Coefficients tuning: |
| 15 | |
| 16 | |
| 17 | |
| 18 | Update the particles’ speed using Equation (39) |
| 19 | |
| 20 |
|
| 21 | |
| 22 | |
| 23 | |
| 24 | |
| 25 | |
| 26 | |
| 27 | |
| 28 | |
| 29 | |
| 30 | |
| 31 | |
| 32 | |
| 33 | |
| 34 |
|
Algorithm of the Predictor function.
| 1 | Initialization; /*space reservation for each particle*/ |
| 2 |
|
| 3 | |
| 4 | |
| 5 | |
| 6 |
|
| 7 | |
| 8 |
|
| 9 |
|
Closed-loop simulation—description of RHC_Closed_Loop algorithm.
| 1 | Initializations: PM parameters and constants, see |
| 2 | |
| 3 | Compute |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 | |
| 20 | |
| 21 | |
| 22 | |
| 23 | |
| 24 | |
| 25 | /*Generate and display simulation results*/ |
Results produced by the standalone couple SENSOR–Predictor.
|
|
|
|
| NCalls |
|---|---|---|---|---|
| 1.5 | 1.5012 | 3.3389 | 3.3273 | 210 |
| 1.8 | 1.8013 | 3.8872 | 3.8747 | 240 |
| 2.0 | 2.0005 | 4.5031 | 4.4984 | 195 |
| 2.2 | 2.2018 | 5.6522 | 5.6344 | 300 |
| 2.4 | 2.4035 | 6.2092 | 6.1744 | 180 |
| 2.6 | 2.6166 | 7.6403 | 7.4739 | 180 |
| 2.8 | 2.8926 | 9.8765 | 8.9504 | 330 |
| 3.0 | 3.0019 | 8.9459 | 8.9267 | 240 |
Simulation series for RHC_Closed_Loop without SENSOR.
| Run # |
| Light | NCalls | Run # |
| Light | NCalls | ||
|---|---|---|---|---|---|---|---|---|---|
| 1 | 9.0136 | 9.0077 | 3.0006 | 960.00 | 16 | 9.2717 | 9.2717 | 3.0000 | 672.625 |
| 2 | 9.0423 | 9.0347 | 3.0008 | 665.000 | 17 | 9.3212 | 9.3212 | 3.0000 | 727.250 |
| 3 | 9.0523 | 9.0523 | 3.0000 | 951.000 | 18 | 9.2314 | 9.2314 | 3.0000 | 689.000 |
| 4 | 9.0448 | 9.0447 | 3.0000 | 845.000 | 19 | 9.2276 | 9.2276 | 3.0000 | 758.125 |
| 5 | 9.1961 | 9.1838 | 3.0012 | 940.000 | 20 | 9.2726 | 9.2726 | 3.0000 | 731.125 |
| 6 | 8.9792 | 8.9764 | 3.0003 | 962.000 | 21 | 9.2753 | 9.2753 | 3.0000 | 848.500 |
| 7 | 9.1024 | 9.0582 | 3.0044 | 663.000 | 22 | 9.3992 | 9.3992 | 3.0000 | 717.375 |
| 8 | 9.0728 | 9.0691 | 3.0004 | 959.000 | 23 | 9.2007 | 9.2007 | 3.0000 | 738.750 |
| 9 | 9.0605 | 9.0419 | 3.0019 | 841.000 | 24 | 9.2302 | 9.2302 | 3.0000 | 839.875 |
| 10 | 9.0059 | 8.9988 | 3.0007 | 941.000 | 25 | 9.4145 | 9.4145 | 3.0000 | 654.000 |
| 11 | 9.3527 | 9.3527 | 3.0000 | 773.625 | 26 | 9.4045 | 9.4045 | 3.0000 | 745.500 |
| 12 | 9.4327 | 9.4327 | 3.0000 | 662.875 | 27 | 9.2029 | 9.2029 | 3.0000 | 759.125 |
| 13 | 9.2569 | 9.2569 | 3.0000 | 747.750 | 28 | 9.4126 | 9.4126 | 3.0000 | 753.625 |
| 14 | 9.2506 | 9.2506 | 3.0000 | 785.125 | 29 | 9.2264 | 9.2264 | 3.0000 | 798.250 |
| 15 | 9.4629 | 9.4629 | 3.0000 | 812.375 | 30 | 9.2924 | 9.2924 | 3.0000 | 790.500 |
Statistics regarding the optimum criterion.
|
|
|
| Sdev |
|
|---|---|---|---|---|
| 8.979 | 9.224 | 9.463 | 0.142 | 9.226 |
Figure 6Typical simulation of the closed loop without soft sensor. (a) Typical control output without SENSOR; (b) quasi-optimal evolution of state variables and produced biomass in the typical execution.
Simulation series for RHC_Closed_Loop with SENSOR mode = 1.
| Run # |
| Light | NCalls | Run # |
| Light | Ncalls | ||
|---|---|---|---|---|---|---|---|---|---|
| 1 | 9.2035 | 9.2035 | 3.0 | 773.00 | 16 | 9.1755 | 9.1755 | 3.0 | 740.875 |
| 2 | 9.1904 | 9.1904 | 3.0 | 717.00 | 17 | 9.3622 | 9.3622 | 3.0 | 735.625 |
| 3 | 9.2315 | 9.2315 | 3.0 | 788.00 | 18 | 9.1986 | 9.1986 | 3.0 | 678.500 |
| 4 | 9.4021 | 9.4021 | 3.0 | 739.00 | 19 | 9.3125 | 9.3125 | 3.0 | 739.625 |
| 5 | 9.1366 | 9.1366 | 3.0 | 728.00 | 20 | 9.3089 | 9.3089 | 3.0 | 728.750 |
| 6 | 9.3324 | 9.3324 | 3.0 | 715.00 | 21 | 9.2234 | 9.2234 | 3.0 | 639.125 |
| 7 | 9.2815 | 9.2815 | 3.0 | 784.00 | 22 | 9.3419 | 9.3419 | 3.0 | 791.875 |
| 8 | 9.2265 | 9.2265 | 3.0 | 779.00 | 23 | 9.2711 | 9.2711 | 3.0 | 661.375 |
| 9 | 9.1967 | 9.1967 | 3.0 | 791.00 | 24 | 9.2027 | 9.2027 | 3.0 | 818.875 |
| 10 | 9.1718 | 9.1718 | 3.0 | 763.00 | 25 | 9.2818 | 9.2818 | 3.0 | 744.875 |
| 11 | 9.3391 | 9.3391 | 3.0 | 854.00 | 26 | 9.2994 | 9.2994 | 3.0 | 639.500 |
| 12 | 9.2078 | 9.2078 | 3.0 | 686.375 | 27 | 9.1633 | 9.1633 | 3.0 | 764.875 |
| 13 | 9.1327 | 9.1327 | 3.0 | 690.625 | 28 | 9.4251 | 9.4251 | 3.0 | 690.125 |
| 14 | 9.2975 | 9.2975 | 3.0 | 765.375 | 29 | 9.2925 | 9.2925 | 3.0 | 660.00 |
| 15 | 9.3036 | 9.3036 | 3.0 | 742.125 | 30 | 9.3970 | 9.3970 | 3.0 | 676.00 |
Statistics regarding the optimum criterion (SENSOR mode = 1).
|
|
|
| Sdev |
|
|---|---|---|---|---|
| 9.133 | 9.264 | 9.425 | 0.080 | 9.271 |
Figure 7Typical simulation of the closed loop with SENSOR mode = 1. (a) Typical control output—controller with metaheuristic-based predictions; (b) quasi-optimal evolution of state variables and produced biomass.
Simulation series for RHC_Closed_Loop with SENSOR mode = 2.
| Run # |
| NCalls | Run # |
| Ncalls |
|---|---|---|---|---|---|
| 1 | 8.4403 | 704.250 | 16 | 8.4083 | 677.500 |
| 2 | 8.4640 | 638.000 | 17 | 8.3669 | 688.625 |
| 3 | 8.4104 | 612.000 | 18 | 8.4294 | 660.000 |
| 4 | 8.5084 | 648.875 | 19 | 8.4403 | 704.250 |
| 5 | 8.3898 | 715.000 | 20 | 8.4640 | 638.000 |
| 6 | 8.4294 | 660.000 | 21 | 8.4104 | 612.000 |
| 7 | 8.4403 | 704.250 | 22 | 8.5084 | 648.875 |
| 8 | 8.4560 | 768.750 | 23 | 8.3898 | 715.000 |
| 9 | 8.4576 | 810.125 | 24 | 8.3952 | 730.500 |
| 10 | 8.4159 | 740.625 | 25 | 8.3973 | 630.625 |
| 11 | 8.4429 | 728.375 | 26 | 8.3669 | 672.125 |
| 12 | 8.4224 | 724.125 | 27 | 8.4253 | 777.000 |
| 13 | 8.4655 | 702.375 | 28 | 8.4120 | 570.000 |
| 14 | 8.3984 | 714.750 | 29 | 8.4475 | 717.000 |
| 15 | 8.4156 | 648.000 | 30 | 8.4803 | 645.625 |
Statistics regarding the optimum criterion (SENSOR mode = 2).
|
|
|
| Sdev |
|
|---|---|---|---|---|
| 8.367 | 8.430 | 8.508 | 0.036 | 8.429 |
Figure 8Typical simulation of the closed loop with SENSOR mode = 2. (a) Typical control output—controller with metaheuristic-based predictions; (b) quasi-optimal evolution of state variables and produced biomass.