At a glance
Fares Bettahar and colleagues at the University of Biskra designed an Energy-Aware Control framework for a single-stage photovoltaic-battery brackish water reverse osmosis plant. It combines a hawk-inspired MPPT algorithm with model-free DC-link control, holding permeate salinity steady as solar input fluctuates, and was validated in simulation and hardware-in-the-loop.
At 10:40 on a clear morning a solar array behaves itself. Then a cumulus deck slides across, the power curve buckles, the DC link sags, and a reverse osmosis pump that was told to deliver a fixed flow rate suddenly cannot. Most small photovoltaic desalination systems cope with that moment badly: they trip, or they push the membrane through pressure swings it was never designed to take.
A team led by Fares Bettahar at the Laboratory of Electrical Engineering (LGEB) at the University of Biskra in Algeria has flipped the priority. Instead of defending a fixed water output, their controller treats flow as the variable and water quality as the fixed point. Across eight operating scenarios, from full midday irradiance to a battery below 15% state of charge, permeate salinity stays pinned at 5.2 grams per cubic metre, the equivalent of 5.2 milligrams per litre, while production is dialled up or down to match whatever energy is actually available.
The design is published in Energy Reports (volume 15, article 109343, 2026) under the title "Intelligent energy-aware control of a single-stage photovoltaic-battery powered brackish water reverse osmosis desalination system." It arrives as Algeria runs one of the largest desalination build-outs in Africa and as inland towns in the Sahara look to brackish groundwater rather than the Mediterranean as their nearest drinkable source. The paper's target is not the giant coastal plant. It's the small, unglamorous, off-grid unit that has to keep working when nobody is there to fix it.
Why a fixed set point is the wrong instruction
Reverse osmosis works by shoving salty water at high pressure against a membrane that lets water through and rejects most of the dissolved salt. The pump is the whole operating cost, and it wants a stable supply. Solar cannot promise one.
The Biskra rig is deliberately stripped down. A photovoltaic array feeds a Quasi-Z-Source Inverter (QZSI), a piece of power electronics that converts direct current to alternating current and boosts the voltage in the same stage, so there is no separate DC-DC boost converter in the chain. That inverter drives a three-phase induction motor under flux-oriented control, which runs a high-pressure pump feeding the membrane. A battery sits behind a bidirectional buck-boost quadratic converter (BBQC) that can charge from the panels or discharge to the pump.
Fewer converters means fewer components that can fail in a place with no electrician. It also means less conversion loss and a smaller enclosure. The authors frame this single-stage architecture as a cost and maintenance argument as much as an efficiency one.
On top sits the framework they call Energy-Aware Control (EAC). It has a source-side energy management system that decides where power goes, and a water-energy coordination layer that decides how much water to make. The two talk to each other constantly.
Hawks, long jumps, and a faster hunt for the peak
A solar panel's power curve has a hump, and the top of that hump is the maximum power point. Track it badly and you throw away energy you already paid for. Track it well under partial shading, where a rooftop array can show several humps at once, and the job gets harder: simple hill-climbing algorithms walk up the first slope they find and stop there, convinced they have arrived.
Bettahar's team built a tracker on Harris Hawk Optimization (HHO), a search method that mimics how hawks cooperatively encircle prey. The innovation, described in the paper and freely available at the published article, is what they call Directionally Adaptive Lévy Flight (DALF). A Lévy flight is a search pattern of many small steps punctuated by occasional long jumps; the classic version uses fixed jump lengths that ignore whether the sky is actually changing. DALF recalibrates the jump from measured rates of change in irradiance and temperature, so the search leaps further when conditions are moving fast and settles when they are steady.
The reported numbers: 99.9% tracking efficiency, convergence times between 0.02 and 0.23 seconds, steady-state power variation of roughly 1%, and residual oscillation under 5 watts. In the paper's comparison, standard HHO reached 97.25% and the Grey Wolf Optimizer (GWO) 96.60%. A four-point gap sounds modest until you multiply it by every daylight hour of a plant's twenty-year life.
The battery side, and a controller that refuses to model the plant
Regulating the DC link, the shared voltage bus that all the power electronics sit on, is where solar desalination systems usually show their seams. Voltage dips make the motor stutter; voltage spikes cook capacitors. Bettahar's group used Model-Free Adaptive Control (MFAC) on the battery converter, a method that tunes itself from measured inputs and outputs rather than from a mathematical description of the hardware.
That choice matters in the field. Converter parameters drift with temperature and age, and a controller that assumed a fixed model of the circuit at commissioning is working from a description that stops being true. MFAC simply keeps re-estimating.
The measured ripple was ±0.625%, or ±0.05 volts peak to peak, with voltage overshoot of 0.05% in simulation and 0.08% on hardware. The paper reports it consistently beating fractional-order PID (FOPID) and sliding mode control (SMC) under dynamic conditions, the two strategies most often used in published PV-desalination work.
What happens when the battery runs low
The coordination layer is the part a village would actually notice. It calculates a reference flow rate from a weighted mix of three things: how much power the panels are making, how much charge headroom the battery has left, and the net power flowing into or out of it.
When the sun is strong, the system pushes production toward its ceiling. As conditions sour, it reduces demand in proportion rather than shutting down. The scenario table in the paper tightens the battery's allowed operating band as sunlight falls, from roughly 18–24% state of charge in moderate conditions down through 15–20% bands, until below about 15% the reverse osmosis unit is put on standby and a storage tank carries the load. The battery is never permitted to discharge into a depleted state; the panels then serve only essential demand.
Salinity is the one number that doesn't move. That is the paper's quiet argument: a plant that produces less water is a plant with a problem, but a plant that produces worse water is a public health event.
Where the evidence stops
The framework was built and tested in MATLAB/Simulink, then verified on a dSPACE DS1104 hardware-in-the-loop platform, where the controller runs on real processing hardware against a simulated power plant and membrane. That is a meaningful step beyond simulation and a real step short of a field trial.
The hardware results track the simulation closely but not perfectly. Tracking efficiency was statistically equivalent at 99.90% in simulation and 99.95% on hardware. Convergence was slower on the real-time platform, 0.28 seconds against 0.15, which the authors attribute to sensor sampling at 10 kilohertz, analogue-to-digital conversion and execution overhead. Permeate flow and conductivity deviated by under 5% relative error, traced to inverter dead time and sensor noise rather than to control limitations.
| Metric | Simulation | Hardware-in-the-loop |
|---|---|---|
| MPPT convergence time | 0.15 ± 0.08 s | 0.28 ± 0.09 s |
| MPPT tracking efficiency | 99.90 ± 0.05% | 99.95 ± 0.03% |
| DC-link voltage overshoot (MFAC) | 0.05 ± 0.00% | 0.08 ± 0.01% |
| DC-link settling time | 0.01 ± 0.00 s | 0.05 ± 0.00 s |
| Voltage Regulation Index | 0.00029 | 0.002 |
| Steady-state PV power oscillation | <5 W | <5 W |
A control engineer will raise two fair objections. The first is that 99.9% tracking efficiency is a benchmark against a simulated irradiance profile, not a water tariff; it tells you nothing yet about cost per cubic metre, which is the number that decides whether a plant gets built. The second is that a hardware-in-the-loop rig contains no real membrane. Fouling, scaling and the slow drift in salt rejection that governs a plant's actual maintenance schedule are absent from the test, so the controller's behaviour over months of Saharan dust and hard feedwater remains unmeasured. The authors are explicit that their next step is full-scale implementation on the LGEB desalination plant, with techno-economic analysis to follow.
Funding came through the LGEB Laboratory, and the author list spans four countries: Algeria, the United Kingdom through Teesside University's School of Science, Engineering and Design, India and Jordan through Mohit Bajaj's affiliations, and the Czech Republic through the ENET Centre at VSB-Technical University of Ostrava.
Photo by American Public Power Association on Unsplash
Why Biskra, and why brackish water
The paper opens with a number that gets used often and still lands: more than two-thirds of the planet is covered in water, and about 1% is readily accessible freshwater. It then points at Algeria, where it says the pressure is acute and investment in desalination has followed. Reverse osmosis, the authors note, dominates the global desalination market.
The national picture has moved fast. Algeria had 19 desalination plants in service in 2025 with a combined capacity of 3.75 million cubic metres per day, covering roughly 42% of drinking water demand, with a 2030 target of about 5 million cubic metres per day and a 60% share. Those coastal plants are seawater plants, big and grid-connected. The Biskra work points at a different market: Algerian officials have described plans for smaller inland units of 2,500 to 5,500 cubic metres per day running on renewable power to treat brackish groundwater in El M'Ghair, Oued Souf, Biskra and Ouargla.
That is the size and setting this controller was designed for. Brackish water needs far less pressure than seawater, so a modest array and a modest battery are enough, and the whole system can live where the grid does not reach.
More of the underlying modelling is documented through the open-access version in Energy Reports and the Teesside University research record.
What to watch next
The paper's future-work list reads like a map of the next three years. Full-scale deployment at the LGEB plant is first. Real-time water demand estimation comes with it, so the system can prioritise essential use when energy is short rather than rationing blindly. Hybrid sourcing follows: adding wind or fuel cells to a solar-battery core, plus water tanks large enough to let the controller schedule production predictively instead of reacting.
Then there is the accounting. A techno-economic analysis that computes the cost of freshwater under energy constraints, and linear parameter-varying control strategies tested on refined dynamic models of the actual membrane unit, would move this from a well-instrumented demonstration to something a utility can underwrite.
Bettahar's contribution is less a single clever algorithm than a change of framing: stop sizing the battery to cover the worst hour, and let the plant's output breathe with the weather while the water quality holds. Whether that idea survives contact with a real membrane, real dust and a real maintenance budget is the question that will decide if it leaves the lab. The number to watch is not 99.9%. It is dinars per cubic metre.
- solar-desalination
- photovoltaic-reverse-osmosis
- brackish-water-treatment
- energy-aware-control
- maximum-power-point-tracking

