Abstract
Electrodialysis is an efficient separation and recovery method for ionic species such as sulfate ions. The batch operation of the electrodialysis process unit involves several decisions that affect its separation and economic performance. An optimal control system is developed that monitors the separation efficiency under real-time conditions and identifies the most suitable operating profile for the applied current voltage and the recirculation flow rate. A dynamic model is employed for the electrodialysis process, which is subsequently utilized within a dynamic optimization framework that aims to meet the separation and recovery specifications in the most economical way while satisfying the operating constraints. A discretized model using orthogonal collocation on finite elements enables the calculation of the optimal profile for the current voltage using nonlinear programming techniques. The control system has been successfully applied in the compensation of process disturbances mainly attributed to the variation of the membrane activity and other factors. Under severe membrane-activity loss (50–65%), the adaptive control profile achieved an increase of 34.9% in the degree of separation while limiting the batch-time penalty to 15.5% at the expense of higher energy consumption. An optimization problem is further formulated that determines the optimal design and operational characteristics of an industrial-scale size unit. In addition to the control variable profiles, the membrane surface that minimizes a comprehensive objective function is calculated. The objective function incorporates several targets for the electrodialysis process, such as batch duration, energy requirements, achieved degree of separation, membrane size, and control action behavior. The obtained optimal solutions are analyzed by Pareto front methods to reveal the critical trade-offs among the various competing objective function terms. The proposed approach enables the efficient separation of ions by electrodialysis in a diversely operating environment.


1. Introduction
Electrodialysis (ED) is an efficient process for the effective separation and recovery of valuable ions from dilute solutions. There are numerous applications where ED could be highly beneficial, such as for the removal of heavy metals like lead from industrial water effluents, nitrate ions from polluted aquifers to produce potable water, and salts from brackish waters, to name but a few. It combines the use of membranes that are selective toward specific ionic species, along with an applied electric potential that is responsible for the migration of the ions toward electrodes of opposite charges.
The optimization of an ED process requires the minimization of the energy consumption while operating under conditions that will minimize membrane polarization and fouling as this is a key phenomenon that is the main cause for performance reduction. For example, Vermaas et al. estimated that the lack of antifouling strategies could result in 40% higher power density requirements even for short periods of operation. There are several operating and design parameters that play a significant role in the design of optimum ED systems, including the stack voltage, the membrane size, and the flow rate of the processed streams. ED operation is also subject to disturbances caused by membrane fouling, the variation in the concentration of ions in the treated stream, or the variation in the stack voltage in renewable energy-powered ED systems, which may deteriorate separation performance significantly. Unless such disturbances are addressed efficiently, they have detrimental effects on the requirement to meet stringent outlet composition and concentration specifications as well as the process economics due to increased power utilization.
Electrodialysis usually takes place in the batch operation mode. Therefore, dynamic optimization is essential in order to design both robust and flexible ED systems with sufficient process capacity to implement the appropriate operating policies for the desired resiliency to disturbances. In addition, the online calculation and adaptation of the optimal operating profiles based on the prevailing process conditions are crucial for the satisfaction of the separation system specifications despite the effects of the disturbances.
Dynamic optimization has been applied to the ED design and operation. The weighted-average resistance method has been used to optimize current and flow trajectories to reduce energy use and operating cost for salt removal. An OCFE-based model has been developed to obtain optimum operating conditions for hydrochloric acid recovery and to maximize ED performance. OCFE has also been used to optimize ED stacks operating in both forward and reverse modes, examining the influence of process parameters such as flow rate patterns on performance. The aforementioned studies indicated that reduced-order models, such as OCFE models, address the computational complexities of dynamic optimization problems effectively. The transformation of the ED dynamic model expressed in terms of differential and algebraic equations into a set of nonlinear equations enables the employment of nonlinear programming techniques for the calculation of optimal control profiles. In addition, OCFE models are ideal for the approximation of sharply changing concentration profiles and exploitation from the numerical point of view of mildly changing concentration profiles frequently occurring during operation. Comparative work has reported the superior performance of OCFE over control-vector parametrization and multiple shooting for ED dynamic optimization, identifying policies with lower energy consumption and higher acid recovery within acceptable computation times. OCFE models were able to identify operating policies that resulted in the lowest energy consumption with a maximum acid recovery within an acceptable computational time. Dynamic optimization can be directly linked to the operational costs of the ED process as disturbances and model uncertainty may cause performance degradation and potential failure to satisfy process constraints and product specifications.
To this end, advanced methods have been proposed in the published literature for applications other than ED that develop control schemes to account for uncertainties in system parameters. A semiautomated procedure for constrained dynamic optimization of uncertain large-scale processes uses iterative updates based on necessary conditions of optimality to maintain feasibility and performance. Online dynamic optimization frameworks have been shown more effective than tracking precomputed set points. Extensions include online optimizing control of polymerization reactors with the integrated state and parameter estimation and analogous strategies for semibatch polymerization.
Few control-based approaches have been reported that address uncertainties in the power source and the model parameters for the ED process. For batch ED desalination of brackish water, time-variant feed-forward voltage scheduling that tracks a safe fraction of the limiting current has been shown to keep stack current within roughly −15% to +20% of a target and to increase batch-ED production rate by up to 37% versus constant-voltage operation. , While their work indicated the benefits of a time-variant controller, the approach was not extended to the fluid flow rates assuming linear flow velocity models. Model-based cocontrol of voltage and flow (two degrees of freedom) has also been piloted to maximize desalination rate under variable power, reporting up to 45% higher production than an equivalently sized steady-operation baseline without disclosing details for the underlying methods. The goal was to improve the brackish water desalination rate on an ED system by controlling the stack voltage and flow rate. A model predictive control algorithm was implemented by Le Henaff. Later, Connors elaborated on Le Henaff’s work to adjust in real time the flow rate and voltage profiles and to maximize the desalination rate while using time-variant solar power. However, both studies did not consider parameter variations and process disturbances, which may strongly affect the operation of the ED unit. Under significant model parameter variations, this control scheme may lead to aggressive and less robust control changes, increasing the operational costs for the process.
Operating-regime analyses indicate that constant-current (CC) and constant-entropy-generation (CEG) operation can lower energy relative to constant-voltage (CV) at equal duty, with the advantage being most pronounced at higher salinity. Architectural choices can also reduce power demand; a two-stage ED configuration achieved up to 29% lower power at equal duty. For renewable direct-drive, a cascade-PID flow-commanded current control (FCCC) field pilot harnessed 94% of available PV energy while requiring >99% less battery than literature-median PV-desalination systems; related model-based time-variant EDR achieved 77% direct use of available solar energy (+91% vs conventional), a 92% reduction in battery reliance, and a 22% reduction in levelized cost of water. ,
The above studies considered ED systems of fixed capacity, where dynamic optimization and control approaches were implemented. It is important to be able to simultaneously address the calculation of operating policies and control actions with the design of system size characteristics. Such an approach adds extra flexibility in meeting the design and operating system constraints and may lead to considerably improved system performance. Connors approached this requirement for the design and control of ED systems through a two-level method. An MPC block was used to find the optimal control action based on the response of the system, whereas the system update block tried to estimate the optimal matching system parameters. While the use of an MPC has been proven to be a great tool to alleviate short-term disturbances, the computational complexities hinder its application. Furthermore, in the objective function of the design optimization block used by Connors, the relative weighting between reliability and cost terms was imposed by an external penalty term. The selection of this parameter was based on empirical and ad hoc rules and could be rigorously defined either by leveraging the designer’s experience or by considering a hypothetical cost attributed to potential deviations from the desired reliability levels. However, it is crucial to acknowledge that a more comprehensive approach should be implemented to thoroughly explore the various trade-offs between reliability and cost. By adoption of such an approach, a deeper understanding of the optimal balance between these two factors can be achieved.
The discussion described above indicates that the existing literature contains limited research on control strategies for ED systems. Online parameter estimation algorithms that specifically address the uncertainty arising from the unknown imposed disturbances and drifting of model parameters values have not been reported. Rare implementations of control approaches address the system design without considering dynamic optimization while also involving limitations in the objective function formulation. The objective of the present work is to highlight the usefulness of dynamic optimization in the control and design of ED systems. Initially, we developed a dynamic optimization approach for the online optimization of the batch ED stack. The aim is primarily to attain an efficient compensation of time-varying major disturbances, in combination with the estimation of the disturbance magnitude through an optimization-based estimator. The real-time estimated values expand the knowledge on the system and the effects of the disturbances, allowing the algorithm to modify its parameter values to match the real cases. Furthermore, the second part of this study implements dynamic optimization to simultaneously determine both the optimal design of the ED system sizes and its operating conditions. The proposed approach incorporates a multiobjective analysis to systematically determine the set of optimal designs for the ED. Finally, the designed system successfully compensates disturbances and achieves the desired targets.
2. Models and Mathematical Representations
2.1. ED Process Model
An ED unit that operates in the batch recirculation process mode is considered. A specific amount of contaminated solution is processed by multiple passes through the ion selective membranes under an applied electric field. The concentrated and the diluted solutions (called the concentrate and diluate) are gathered in two separate tanks and are continuously recirculated until the desired concentration is reached in the diluate as shown in Figure . The applied electric current to the system generates the required potential difference, resulting in the creation of the driving force for the motion of ions through the ion selective membranes. The cations seep through the negative charged cation exchange (CE) membrane (CEM) toward the cathode, whereas the anions through the positive charged anion exchange (AE) membrane (AEM) toward the anode (Figure ). The concentrate and diluate compartments are alternating in order at the two sides of the membranes. Additionally, CE and AE membranes are placed in an alternating configuration. Eventually, the concentration of the ions increases in the concentrate solution compartments and subsequently in the concentrate tank, while it decreases in the diluate solution compartments and tank.
1.
Electrodialysis (ED) flow diagram.
2.

Ion selective membrane configuration in an electrodialysis process.
The mathematical model used in the current study has been adopted by Rohman et al. and was validated against previous experimental results.
| 1 |
| 2 |
| 3 |
| 4 |
The mass balance equations express the ion transfer between the compartments (eq , ) and the tanks (eq , ). C conc, C dil, , and correspond to the concentration of the anions (e.g., sulfuric anions) in the concentrate and dilute compartments and tanks, respectively, while V comp, , and correspond to the volumes of the contained solutions. Q is the overall flow rate of the fluids that are fed into the ED system, whereas j st and φ are the current density and efficiency, respectively. N is the number of cell pairs, A is the membrane area per cell pair, z is the ion charge, F is Faraday’s constant, D AEM and D CEM stand for the diffusion coefficients through AE and CE membranes, respectively, l AEM and l CEM represent the corresponding membrane thicknesses, and , , , and represent the concentration on the surface of the corresponding membranes. The mathematical representation of the operation of the ED plant is completed with the equation, which includes all the essential electrical quantities
| 5 |
The above terms are derived by Ohm’s and Kirchhoff’s second laws by representing the ED stack as an electrical circuit. E Est corresponds to the power source voltage, E el corresponds to the difference among electrode potentials of the anode and cathode, E CEM and E AEM correspond to the membrane potentials, R CEM, R AEM, R conc, and R dil correspond to the membrane and tank resistances, whereas I stack corresponds to the overall current flowing across the stack. More extensive details along with the analytic equations for the estimation of the model parameters can be found in a variety of sources. ,
The overall energy used by the system is calculated through the summation of the electrical energy consumed in the stack to achieve the ion transfer and the energy required for the pumps used for the recirculation of the solutions. However, the energy for liquid recirculation is considered negligible compared with the stack energy. The electrical energy consumption E des is calculated as follows
| 6 |
where E Est is the applied potential difference, j st is the current density, and A st is the membrane area.
2.2. Optimization-Based ED Operation Problem Formulation
The power source voltage E Est and the fluid circulation flow rate Q are considered as the control variables due to the large impact they have on the separation efficiency. A systematic change of these variables can result in a shorter ED process duration to achieve the purity specifications for the diluted stream. The general definition of the dynamic optimization problem consists of the objective function, the ED process model expressed as a set of equality and inequality constraints, along with the bounds on the system variables that define the operating window of the ED process system. Therefore, the optimization problem can be structured as follows
| 7 |
s.t.
where F(x(t),u(t),d,ε(t),t) is the objective function expressing the optimization targets, x(t) denotes the vector of state variables, u(t) = [U st,Q] denotes the vector of control variables, x(t) L and x(t) U denote the lower and upper bounds for the state variables, u(t) L and u(t) U denote the lower and upper bounds for the control variables, Δu(t) L and Δu(t) U denote the lower and upper bounds for the rate of change for the control variables, and g and h indicate the inequality and equality constraints, respectively. Vector d denotes the design variables that are constant for the entire batch duration. Design variables may also be part of the optimization problem as decision variables. Vector ε(t) denotes the vector of time-varying disturbances affecting the plant.
2.3. Solution of the Optimization-Based ED Operation Problem
The nonlinear dynamic optimization problem defined by formulation () is solved through a suitable parametrization of the control vector and the time discretization of the process model. OCFE techniques enable the transformation of the differential equations in the process model to an approximate set of nonlinear algebraic equations. In this study, the OCFE technique divides the time domain into a number of finite elements. Within each element, a number of collocation points are selected (Figure ), with their location determined by the roots of Legendre orthogonal polynomials of order equal to the number of collocation points. The discretization of the time requires the introduction of the dimensionless variable τ
| 8 |
so each finite element is normalized as τ ∈ [0,1].
3.
Schematic of the partition of the batch time horizon into finite elements and position of the collocation points within the finite elements.
Lagrange interpolation polynomials, φ i (τ), of the (k + 1)th degree, with k equal to the number of internal collocation points per finite element, are used for the approximation of the state variables within each finite element.
| 9 |
The degree of Lagrange interpolation accounts for an additional interpolation point at the beginning of each finite element. The state variables within each element are approximated using the Lagrange interpolation
| 10 |
where x j is the value of the state variable at the jth collocation point X = [x 0,x 1,···,x k ] and φ(τ) = [ϕο(τ),···,ϕ k (τ)]. The derivative of the Lagrange polynomials is calculated as follows
| 11 |
The derivative terms can then be approximated as
| 12 |
OCFE then assumes that the discretized differential equations are satisfied exactly only at the collocation points. The control variables are parametrized within each finite element to facilitate the solution of the optimization problem and bring in a form consistent with digital control system implementation. A piecewise constant control vector parametrization is considered, which assumes constant control variables during the time interval defined by each finite element.
3. Electrodialysis Process Dynamic Optimization
The work presented here investigates two different problems. The first problem includes the online operation optimization of an ED unit of given structural and capacity features (e.g., membrane area) under the influence of disturbances occurring during operation. The second problem includes the simultaneous design optimization of the ED process under the influence of a set of expected disturbance scenarios. The objective is to determine the capacity of the ED process (unit capacity and membrane area) that would enable the most efficient operation under a given set of disturbance scenarios. These two problems are presented in detail in Sections and 3.2, respectively.
3.1. Online Operation Optimization and Control
The schematic of the operation optimization and control problem is shown in Figure .
4.
Online optimization and control of an ED process unit.
The “Plant” block represents the real electrodialysis plant that provides measurements for the control system. The “Model” block represents the ED model as described by the system of equations (differential and algebraic) as well as its discretized form. In a simulated case study, the “Plant” block is represented by the ED model, with disturbances affecting its performance. Vector d 1 is defined as a vector of disturbances applied to the system. The “Estimator” block considers the deviations between the plant measurements and the model predictions to update the process state variables and disturbance estimates so that the accuracy of the ED process model is increased. The state and disturbance estimation requires that the state variable vector, consisting of the electric density in the stack and the concentrate and dilute streams in the ED compartments and the summation tanks, is augmented by adding an additional state variable accounting for the disturbances in the ions transferring through the membranes in the form of the correction factor in the effective membrane area as follows
| 13 |
The objective function, F est, in the “Estimator” blocks attempts to calculate the state estimates that minimize the difference between the process model and the plant measurements
| 14 |
with NCE denoting the number of finite elements that coincide with the time that the most current measurements become available. For the last iteration, NCE = NE will apply, where NE is the number of finite elements.
The “Optimizer” block solves the optimization problem defined in formulation () based on the updated process model incorporating the most recent process measurements that calculate the optimal profile for the stack voltage and recirculation flow rate for the remaining batch time. Obviously, the efficiency of the optimization problem increases as the process model predictions are as close as possible to the ED plant response. However, a continuous variation of the process disturbances may drift the plant away from the target specifications for purity of the dilute solution. Slow varying disturbances in the effective membrane area are considered. The estimation of the current level of the disturbance enables the process optimization and control system to calculate an updated profile for the electric field and liquid circulation in the ED process. The control vector u(t) = [E Est,Q] contains the voltage for the development of the electric field in the membrane stack and the liquid recirculation rate.
The objective function consists of two main parts; (a) the cost from possible target deviations at the final time of the batch and (b) a time-varying term that accounts for the total batch time, the energy consumption during the batch duration, the deviations of the state variables from a desired trajectory, and the control effort for the achievement of the control goals. Similar to the work of Rohman and Aziz, the objective function incorporates the minimization of the batch process time and energy consumption and the maximization of the achieved degree of separation, defined as the achieved ratio of the diluate’s final to initial ion concentrations. The objective function takes the following form
| 15 |
Parameters , and W R denote the weighting factors that determine the relative importance of each term in the objective function.
3.2. Simultaneous Process Design and Operation Optimization
In the second problem, the simultaneous ED process design and operation optimization under a set of expected disturbance scenarios is sought. The goal is to build an ED process unit that exhibits high flexibility and robust operation by alleviating process disturbances effectively with minimal operating cost. The reasoning is that ED process design decisions may have a favorable impact on the ability of the process system along with its associated optimization-based control system, as defined in Section , to compensate for the disturbances in the membrane effectiveness, the variability in the concentration of ions in the concentrated solution and so forth. In this way, the overall cost of the separation can be maintained at the lowest possible level while satisfying the separation targets. The design optimization variable that is considered is the total membrane surface area, A st , available for the separation of the ions from the concentrated liquid. In the problem formulation, instead of the membrane area, a coefficient is used that defines the membrane surface area change from a nominal value
| 16 |
where m_A is the membrane area increase/decrease factor and is the new membrane area.
The objective function of the simultaneous design and operation optimization problem includes the minimization of the total process time, the minimization of the energy consumption for the separation, the maximization of the degree of separation, and the penalty applied to the control effort defined as the rate of change for the control actions E Est and Q. In addition, the level of the circulation rate, Q, is explicitly included in the objective function as it affects the process economics and performance. Regarding process design cost, the optimization of the membrane area increase/decrease factor is imposed. The overall objective function of the simultaneous design and operation optimization problem is the following
| 17 |
where W q and W A are additional weight matrices to those of eq used to normalize the different goals of the objective function.
The user may run the optimization problem for different combinations of the weighting factors to investigate the entire span of possible optimal solutions. Each combination of weights leads to a different combination of optimal operating profiles and design values. In order to select the designs that exhibit optimum trade-offs, a multicriteria assessment methodology is employed.
3.3. Multiobjective Problem Formulation
Observing the format of the considered objective functions both in the case of the online optimization problem (eq ) and in the case of the simultaneous dynamic operating and design optimization (eq ) shows that the final result is inextricably linked to the final choice of weight matrices. There is therefore a need for a systematic study and selection of the different weight cases. In this work, we use 52 different combinations, which lead to 52 optimum results, using eq as the objective function. The weights serve to generate different realizations for each one of the terms of eq , and hence, each optimum result corresponds to a different value for the key parameters that are included in these terms. The best way for investigating the trade-offs among these parameters is to perform a multicriteria analysis with them as objective functions.
Considering that all cases under study (computed for all the 52 weight values in eq ) are part of a set G, the proposed multicriteria problem takes the following form
| 18 |
| 19 |
The objective functions of formulations () and () represent specific terms of eq . Regarding the time-varying terms, objective t f represents the ED batch duration, which must be minimized (third term of eq ), and objective E des represents the energy consumption for the system, which must also be minimized (the fourth term of eq ). Objective E Est,max is the maximal value of the voltage profile in the ED process, which indicates the capacity of the electric voltage source for the separation and is associated with the process plant economics. Objective m_A represents the first term of eq as it is desirable to minimize the change of the surface area, and objective Q max represents the last term of eq as it is desirable to minimize the maximum flow in the system and term. Finally, objective D sep represents the second term of eq as it is desirable to maximize the separation efficiency.
While this formulation will generate an adequate Pareto front for the calculated cases, the goal in this work is to draw comprehensive conclusions about the differences between the performance indicators. Therefore, the expressions shown in () and () are transformed into an overall index in order to then create the Pareto front between the overall index and each performance index. In this way, it can be observed how the overall performance (i.e., from all indicators at the same time) of each individual process case changes against each indicator separately. For the set of computed cases G and the set of indices Pr = {t f ,E des,E Est,m_A,Q max,D sep}, a global index J m is proposed, which merges the properties into a unified criterion that satisfies the objectives chosen and described in () and () (i.e., the simultaneous minimization and maximization of the corresponding properties), as follows
| 20 |
where represents the considered scaled index on P r for each instance of design m (i.e., for each set of optimum values for the parameters in Pr that corresponds to one of the 53 weight combinations). a l,m represents a unit coefficient that is positive for properties to be minimized and negative for those to be maximized. Based on eq , the selection of design cases with increased performance translates into the minimization of the index J m . Scaling gives equal importance to each index used in eq . In the present study, the above is carried out with the standardization method of Zarogiannis et al.
| 21 |
where x l,m represents the initial value of the performance index and and represent the mean and standard deviation of the index under consideration, respectively, calculated over the entire set of instances of process G. The solved multicriteria problem involves determining the Pareto indexes by creating a Pareto front per index l ∈ Pr, taking the total index J m , for each m ∈ G, against each index represented by the values of x l,m . The problem is formulated as follows
| 22 |
For example, for the first set of optimum values for the parameters in Pr (that resulted from solving the optimization problem with eq for the first combination of weights), it holds that
hence
| 23 |
In this case, J 1 will be used, together with each one of index l ∈ Pr (e.g., t f, E des, and so forth).
4. Implementation and Discussion of Results
4.1. Online Operation Optimization
The operation optimization of a batch ED system for the recovery of sulfuric anions is performed. The process system parameters and initial conditions are taken from Voutetaki et al. and Latinis et al. and are shown in Table . Model parameters are listed in Table .
1. Initial Values of Main Variables and Parameters.
| Variable | U st (V) | Q (L/s) | C conc (mol/m3) | C dil (mol/m3) | C conc (mol/m3) | C dil (mol/m3) | V tank (m3) | V tank (m3) |
|---|---|---|---|---|---|---|---|---|
| Initial values | 20 | 0.042 | 20.4 | 20.4 | 20.4 | 20.4 | 0.02 | 0.02 |
A1. List of Parameters.
| Parameters | Units | Values |
|---|---|---|
| A | m2 | 0.038 |
| D AEM | m2 s–1 | 24.2 × 10–11 |
| D CEM | m2 s–1 | 24.2 × 10–11 |
| l AEM | m | 0.1 × 10–3 |
| l CEM | m | 0.1 × 10–3 |
| L | m | 5 × 10–4 |
| N | - | 68 |
| V comp | m–3 | 0.19 × 10–3 |
| ϕ | - | 0.92 |
| F | C mol–1 | 96,485 |
| R | J mol–1 K–1 | 8.314 |
| z | - | 2 |
| E el | V | 1.5 |
| V conc | L | 20 |
| V dil | L | 20 |
| r AEM | Ω cm2 | 3.984 |
| r CEM | Ω cm2 | 15 |
The goal of achieving a minimum final diluate concentration is introduced in the form of a constraint, so as not to affect the form of the objective function in (eq ), as well as the significance of the other goals, and was selected based on the usual values attained by the experimental results
| 24 |
The OCFE method uses ten equally sized finite elements, NE = 10, four internal collocation points, and one interpolation point at the beginning of each finite element. Therefore, fifth-order Lagrange interpolation polynomials are used for the approximation of the state variables within each finite element since the polynomial degree equals the number of collocation points plus one. − The size of each finite element coincides with the time duration of the control interval. This selection provides high-order accuracy without unnecessary computational cost. As shown by Rohman and Aziz, moderate collocation orders and element numbers already yield accurate dynamic profiles, and piecewise-constant control parametrization performs better than linear or second-order continuous representations. Therefore, fifth-order Lagrange interpolation polynomials are used for the approximation of the state variables within each finite element. The size of each finite element coincides with the time duration of the control interval.
To ensure implementable input trajectories, we imposed rate-of-change constraints on the manipulated variables (inequality constraints), ±25% per update for stack voltage and ±50% for flow rate from their nominal values (E Est = 20 V and Q const = 3.08 × 10–6 L/s), within our dynamic optimization. Such Δu bounds are standard in optimal control formulations solved by direct collocation or multiple shooting and are implemented as simple inequality constraints on control moves or their time derivatives. − In ED, rapid voltage increases can drive transient polarization and water splitting. Operation is commonly kept below the limiting current density (LCD), typically 70–80% of LCD. , Additionally, stack design can limit practicable flow because narrow channels incur a substantial pressure drop (1–2 bar at 6–12 cm s–1). In parallel, vendor guidance defines electrical and hydraulic envelopes: the GE E-Cell MK-3 manual lists 400 V DC as the stack maximum and, at start up, instructs operators to slowly increase current to 2 A per stack, while the PCCell ED cell manual requires zero TMP and Δp ≤ 0.5 bar per cell (with a maximum of 30 V per cell). These provide equipment-based reasons to limit single-step changes in both voltage and flow. , The selected bounds therefore stabilize the computed trajectories and respect electrical and hydraulic constraints while preserving a wide feasible operating space.
The volumetric flow rate value corresponds to the treatment of 0.2 m3 effluent solution on an hourly basis. The “Optimizer” block of the closed loop problem determines the control actions. The weight values of the objective function remain constant for the online optimization problem during the batch duration.
During the ED process, the phenomenon of ion polarization is very common and it develops near the surface of the exchange membranes. Ion polarization develops films of ions at the sides of the membranes that inhibit the transfer of ions through the membranes, separating the dilute and concentrated compartments. In addition, the treated solution may contain impurities that are not intended to be collected but are excreted. These impurities settle on the surface of the exchange membranes. Therefore, the effective size of the final active surface of the membranes reduces and can be considered to be a disturbance for the system. In the present study, the correction term A corr was used to describe the effect of ion membrane polarization on the value of A, namely, the membrane area of a cell pair. So, a new variable is introduced as follows
| 25 |
The value A corr was chosen to be equal to A corr = 1 – c(t), essentially expressing the change in the active surface A of the membranes. Consistent with the extensive evidence that fouling/scaling is the dominant cause of ED performance deterioration, via reduced conducting surface fraction and increased stack resistance, we modeled a deliberately severe loss of active area to stress-test the controller. − We chose the value c(0) = 0.5, which increases linearly with time, finally reaching the value c(t f) = 0.65, to include the cases of severe disturbances (from 50% reduction to 65% reduction of the original value, see Figure ). This range overlaps with reported surface coverage levels (45%) and conservatively brackets unmodeled codisturbances whose first-order effects also appear as added resistance or reduced conductive area. − Therefore, the negative disturbance scenario being studied forces the algorithm to follow more drastic control actions to reach the desired separation goals. A broader scenario study (explicit temperature, pH, and feed composition variations and their interactions) is recommended as future work, but focusing on the empirically dominant foulant-driven area loss keeps the present analysis targeted and industrially relevant. , The presence of the disturbance may cause the system to deviate from its initial set specification in eq . To enable a feasible ED process system, the final constraint level for the diluate tank is adapted to the corresponding final value achieved in the optimal open loop case
| 26 |
5.

Time variation of the percentage reduction of the active membrane area.
The optimal control actions are then calculated from the solution of the problem in formulation (). The “Estimator” block calculates the estimate of the disturbance. The disturbance is estimated from the measurement data so that the optimization-based control is more effective.
The results of operation optimization under the influence of membrane performance degradation due to ion polarization are summarized in Figure . The optimal operating profile for the circulation flow rate and the applied voltage at the beginning of the batch is calculated (Figure ; square markers). The voltage profile increases gradually as the concentration of the sulfuric anions drops, and the concentration driving forces are diminished. The model predicts that a batch duration of 13.5 min is sufficient to meet the purity specifications. The deviation obtained between the measured and predicted values for the concentration of the treated solution after 3 min is then used to update the disturbance estimate, which is subsequently used to update the optimal profiles for the control vector (Figure ; circle markers). Due to the degradation of the membrane, the flow rate and the voltage profile are increased. Additionally, a total batch time of approximately 18 min is predicted. Successive model updates every 3 min provide renewed optimal profiles for the control variables. Saturation of both control variables is observed as the disturbance severely affected the ability of the ED process to meet the purity specifications. The overall implemented profile for the control actions is shown in Figure .
6.

(a) Updated time optimal overall flow rate trajectories and (b) updated time optimal applied voltage trajectories.
7.
(a) Uncorrected and updated control profile for the overall flow rate. (b) Uncorrected and updated control profile for overall applied voltage.
Figure depicts the concentration profiles in the concentrate and dilute tanks for different scenarios. The solid curves indicate the achieved concentration profiles under the influence of the disturbance and the implementation of the operation optimization. Clearly, the ED process system manages to meet the purity specification for the diluate tank C final = 304 mL/L (Table ). The operation optimization with disturbance state updates enables an increase of 34.9% in the overall degree of separation but with a 3-fold increase in the energy consumption. The energy increase is explained by the severity of the disturbance and the attempt of the optimizer to counterbalance energy consumption with product purity. The batch duration is increased by only 15.5% (1 min, 26 s). The dashed–dotted curves (Figure ) show the concentration profiles without the implementation of a real-time update strategy of the control variables profiles. The ED process would clearly miss the target for the diluate tank concentration, reaching a dilute tank concentration of C final = 755 mg/L (Table ), much higher than the limit of 600 mg/L. The ideal case without the disturbance would have resulted in the dotted profiles, which are drawn for comparison purposes. The behavior of the disturbance estimates along the duration of the batch is provided in Figure . The variability of the disturbance estimates reduces as more measurements become available, and they eventually reach the actual disturbance values.
8.

Initial, uncorrected, and updated concentrate and diluate tank concentrations.
2. Results of Initial, Uncorrected, and Updated Cases.
| t f (min) | C dil (t f) (mg/L) | C conc (t f) (mg/L) | E des (kWh/m3) | D sep (%) | |
|---|---|---|---|---|---|
| initial selected optimal case | 13.5 | 519 | 3481 | 2.1 | 74 |
| uncorrected profile with disturbance | 13.5 | 755 | 3245 | 2.1 | 63 |
| updated profile with disturbance | 15.6 | 304 | 3696 | 9.5 | 85 |
9.

Actual (predicted) values and calculated estimates for the disturbance.
Our results align with reported benefits of time-varying operation while addressing acid recovery objectives. In our disturbance scenario, updating the control profiles increased the achieved degree of separation by 34.9% while meeting the diluate purity target, with only a 15.5% increase in the batch time. As expected under severe disturbances, this came at a substantially higher energy consumption (3-fold vs the initial selected case) because the optimizer traded energy to enforce product quality constraints. The key advantage of our approach is that the optimization-based disturbance estimator identifies the magnitude of the unknown disturbance during the batch and continuously corrects the voltage and flow schedules. As more measurements arrive, the estimator variance shrinks and converges to the actual disturbance (Figure ). This online estimation is what prevents target violations observed with an uncorrected profile, which missed the diluate specification limit at 600 mg L–1.
These findings are consistent with the literature on time-variant operation. In batch ED desalination, feed-forward voltage control increased production by up to 37% over constant voltage by maintaining high current without crossing limiting conditions. Time-variant voltage–flow cocontrol delivered up to 45% higher production than steady operation at the same stack size. Operating-regime studies further indicate energy reductions for constant-current and constant-entropy-generation relative to constant-voltage, and two-stage ED can reduce power by up to 29%. In renewable direct-drive contexts, cascade PID flow-commanded current control achieved about 94% photovoltaic utilization with >99.6–99.8% lower battery than literature medians, while real-time model-based EDR attained 77% direct PV use with −92% battery and −22% levelized cost of water, illustrating the value of closed-loop tracking for productivity and cost. ,
Within this context, our dynamic-optimization policy improves robustness to unknown disturbances by combining trajectory optimization with in-run disturbance estimation and rate-limited actuation. Relative to our constant-operation baseline, it delivers +34.9% separation with a +15.5% batch-time penalty at the expense of higher energy consumption, a trade-off pattern that matches the magnitudes and directions reported across prior time-variant control studies while uniquely preserving the diluate specification under disturbance.
4.2. Simultaneous Design and Operation Optimization
The design optimization of a specific industrial-scale unit with an average amount of Q = 45 m3/d liquid wastewater produced is performed. The characteristics of the wastewater in (SO4 ) before treatment are C conc (t 0) = 3000 – 8000 mg/L (30.61–81.63 mol/m3), whereas the after-treatment requirement is C dil (t f ) <800 mg/L (8.16 mol/m3). The volume of the wastewater storage tank is V = 10 m3, so it can be deduced that the tank filling time is t f = 5.3 h. Based on the tank filling time, the upper limit of the process time is chosen for the optimization problem, defined as h. The concentrate and diluate tanks have a capacity of V tank = V tank = 5 m3 . The objective function is shown in eq . The design variable denoting the total membrane area, m_A, is the only design decision variable. The bounds for the control variables are as follows
| 27 |
| 28 |
| 29 |
There are no bounds for the state variables. The OCFE model employs ten finite elements with four interior collocation points within each element. The initial values for the concentrations are set as follows
| 30 |
The nominal values for the current voltage and fluid flow rate are E Est = 50 V and Q const = 7.72 × 10–8 m3/s (1 m3/h). The weighting matrix for the variation of the control variables is diagonal with the nonzero elements derived from the nominal operating values for the control variables as follows
| 31 |
The values of the remaining weight matrices are chosen to normalize the objectives to be comparable and to cover the entire area of the Pareto optimal front.
The design and operation optimization problem is solved for a set of combinations of weighting factors in the objective function of eq . Table in the Appendix shows the optimization results for the entire set of weighting factors. The Pareto fronts between the overall objective function, J, and each of the individual terms in the objective function are provided in Figure . In this way, trade-offs among the competing terms in the objective function can be assessed. Additionally, the shape of the Pareto fronts can be investigated, and the sensitivity of each term can be evaluated.
A2. Optimization Results for Different Combinations of Weights in the Objective Function for the Industrial Unit Simulations.
| Case No. | Final Time (t f) [h] | C final | Energy Consumption (E des ) | Degree of Separation (D sep ) | m_A | Maximum Flow Rate Q max | Maximum Voltage (E Est) [V] | Performance Index J |
|---|---|---|---|---|---|---|---|---|
| 1 | 3.00 | 7.970 | 3.38 | 0.8438 | 20.00 | 0.00266 | 64.2 | 0.8 |
| 2 | 2.52 | 7.983 | 6.46 | 0.8435 | 12.11 | 0.00210 | 153.8 | 0.4 |
| 3 | 2.22 | 7.991 | 8.49 | 0.8434 | 7.79 | 0.00223 | 239.3 | 2.5 |
| 4 | 2.49 | 7.988 | 6.82 | 0.8434 | 11.85 | 0.00197 | 190.7 | 1.1 |
| 5 | 1.93 | 8.016 | 4.17 | 0.8429 | 20.00 | 0.00249 | 92.3 | 1.0 |
| 6 | 3.07 | 7.972 | 4.10 | 0.8437 | 14.66 | 0.00185 | 115.4 | –1.0 |
| 7 | 2.48 | 7.964 | 6.03 | 0.8439 | 7.13 | 0.00237 | 208.0 | 0.5 |
| 8 | 3.52 | 7.960 | 10.00 | 0.9025 | 16.59 | 0.00194 | 114.2 | 0.1 |
| 9 | 3.24 | 7.949 | 11.54 | 0.9026 | 12.43 | 0.00194 | 183.5 | 0.5 |
| 10 | 3.31 | 7.947 | 11.03 | 0.9027 | 12.97 | 0.00194 | 172.5 | 0.2 |
| 11 | 2.63 | 8.003 | 4.51 | 0.8431 | 17.70 | 0.00198 | 90.3 | –0.1 |
| 12 | 2.78 | 7.932 | 4.75 | 0.8445 | 8.80 | 0.00253 | 164.9 | –0.9 |
| 13 | 3.17 | 7.915 | 4.11 | 0.8449 | 18.51 | 0.00232 | 117.0 | –0.9 |
| 14 | 2.66 | 7.936 | 5.06 | 0.8445 | 7.50 | 0.00260 | 185.7 | –0.4 |
| 15 | 3.71 | 7.958 | 9.35 | 0.9025 | 17.93 | 0.00194 | 103.6 | 0.1 |
| 16 | 3.60 | 7.933 | 9.74 | 0.9028 | 15.35 | 0.00194 | 148.0 | –0.4 |
| 17 | 2.34 | 7.999 | 4.25 | 0.8432 | 15.39 | 0.00249 | 87.4 | 0.1 |
| 18 | 3.72 | 7.949 | 9.35 | 0.9026 | 18.18 | 0.00194 | 110.0 | 0.0 |
| 19 | 3.08 | 7.995 | 4.12 | 0.8433 | 15.23 | 0.00183 | 86.1 | –0.7 |
| 20 | 2.68 | 7.932 | 4.97 | 0.8445 | 7.68 | 0.00263 | 182.0 | –0.5 |
| 21 | 3.72 | 7.932 | 9.45 | 0.9028 | 18.27 | 0.00194 | 128.7 | –0.2 |
| 22 | 3.75 | 7.958 | 9.32 | 0.9025 | 19.18 | 0.00194 | 100.0 | 0.4 |
| 23 | 3.75 | 7.960 | 9.21 | 0.9025 | 19.04 | 0.00194 | 98.9 | 0.3 |
| 24 | 2.96 | 7.936 | 4.19 | 0.8444 | 12.51 | 0.00246 | 115.5 | –1.2 |
| 25 | 1.88 | 8.015 | 4.35 | 0.8429 | 20.00 | 0.00272 | 85.0 | 1.5 |
| 26 | 2.74 | 7.927 | 4.65 | 0.8446 | 8.28 | 0.00265 | 169.7 | –0.9 |
| 27 | 2.57 | 7.943 | 5.47 | 0.8443 | 7.02 | 0.00264 | 186.5 | –0.1 |
| 28 | 2.56 | 7.942 | 5.55 | 0.8443 | 6.93 | 0.00265 | 194.0 | 0.0 |
| 29 | 3.56 | 7.946 | 9.79 | 0.9027 | 14.98 | 0.00194 | 132.6 | –0.4 |
| 30 | 3.20 | 7.951 | 11.87 | 0.9026 | 12.49 | 0.00194 | 187.5 | 0.7 |
| 31 | 3.21 | 7.950 | 11.77 | 0.9026 | 12.45 | 0.00194 | 186.4 | 0.6 |
| 32 | 2.67 | 7.943 | 4.93 | 0.8443 | 7.55 | 0.00264 | 159.1 | –0.6 |
| 33 | 2.48 | 7.944 | 6.01 | 0.8443 | 6.71 | 0.00264 | 221.1 | 0.7 |
| 34 | 2.41 | 7.949 | 6.38 | 0.8442 | 6.64 | 0.00264 | 233.7 | 1.2 |
| 35 | 2.57 | 7.943 | 5.48 | 0.8443 | 7.01 | 0.00264 | 189.4 | –0.1 |
| 36 | 3.19 | 7.945 | 4.49 | 0.8443 | 20.00 | 0.00199 | 117.4 | –0.2 |
| 37 | 3.19 | 7.930 | 4.52 | 0.8446 | 20.00 | 0.00212 | 120.2 | –0.3 |
| 38 | 3.11 | 7.945 | 4.52 | 0.8443 | 16.71 | 0.00206 | 129.3 | –0.5 |
| 39 | 3.17 | 7.947 | 4.53 | 0.8442 | 20.00 | 0.00198 | 117.8 | –0.2 |
| 40 | 2.87 | 7.918 | 4.08 | 0.8448 | 10.14 | 0.00264 | 145.3 | –1.4 |
| 41 | 3.13 | 7.965 | 4.34 | 0.8439 | 16.81 | 0.00185 | 119.9 | –0.6 |
| 42 | 3.19 | 7.961 | 3.65 | 0.8440 | 19.62 | 0.00230 | 73.7 | 0.0 |
| 43 | 1.44 | 8.028 | 4.88 | 0.8426 | 20.00 | 0.00278 | 121.7 | 2.4 |
| 44 | 3.19 | 7.945 | 4.49 | 0.8443 | 20.00 | 0.00199 | 117.2 | –0.2 |
| 45 | 2.51 | 7.942 | 5.87 | 0.8443 | 6.77 | 0.00264 | 215.8 | 0.5 |
| 46 | 2.48 | 7.944 | 6.01 | 0.8443 | 6.71 | 0.00264 | 221.0 | 0.7 |
| 47 | 2.57 | 7.942 | 5.48 | 0.8443 | 7.01 | 0.00264 | 189.8 | –0.1 |
| 48 | 2.71 | 7.965 | 4.83 | 0.8439 | 8.00 | 0.00236 | 140.9 | –0.9 |
| 49 | 2.68 | 7.951 | 4.83 | 0.8442 | 7.68 | 0.00264 | 142.4 | –0.7 |
| 50 | 2.68 | 7.951 | 4.85 | 0.8442 | 7.65 | 0.00264 | 142.9 | –0.7 |
| 51 | 2.75 | 7.929 | 4.57 | 0.8446 | 8.45 | 0.00264 | 160.6 | –1.0 |
| 52 | 2.78 | 7.932 | 4.75 | 0.8445 | 8.80 | 0.00253 | 164.9 | –0.9 |
10.
Pareto optimal fronts between (a) Degree of Separation and Overall Performance Index (J), (b) Energy Consumption and Overall Performance Index (J), (c) Maximum Desirable Fluid Flow rate and Overall Performance Index (J), (d) Area Growth Factor and Overall Performance Index (J), (e) Final time and Overall Performance Index (J), and (f) Maximum Desired Operating Voltage and Overall Performance Index (J).
In order to confirm that the 52 selected weight combinations provide adequate and unbiased coverage of the design space, we performed a statistical analysis of the resulting solutions using normalized boxplots (Figure ). These 52 combinations were obtained via a systematic enumeration of discrete weight vectors, in the spirit of exhaustive enumeration approaches reported in the literature (e.g., Prousalis et al.), to ensure that all relevant trade-off directions were explored. The degree of separation was excluded from this analysis since this was the only imposed requirement across all cases: all solutions had to meet the minimum recovery specification defined by regulations, and therefore, it does not serve as a discriminating objective in the Pareto analysis.
11.

Normalized boxplots of the 52 solutions across the main objectives. Each box shows the interquartile range (25–75%), the horizontal line marks the median, whiskers extend to the nonoutlier minima and maxima, and any points beyond whiskers indicate outliers. The wide distributions confirm that the selected weight combinations span the entire spectrum of feasible values.
The boxplots clearly indicate that the solutions span the entire normalized range (0–1) of each objective, with broad interquartile ranges that confirm good coverage of intermediate compromise points. Of particular importance are the Maximum Desirable Fluid Flow Rate, Area Growth Factor, and Maximum Desired Operating Voltage as these represent the design-related decision variables that ultimately define the capacity and specifications of the new system. The wide distributions observed for these three objectives demonstrate that the chosen weight combinations successfully generated solutions ranging from low-capacity/low-cost designs to high-capacity/high-demand designs. This shows that the resulting Pareto fronts capture the full set of meaningful trade-offs among design and operational goals.
The frequency chart of the appearance for each case in the Pareto fronts is presented in Figure . Case 40 appears in the Pareto optimal front for each objective term and overall objective function pair, whereas several other cases appear more than once in the Pareto fronts.
12.

Frequency chart of occurrence of studied cases by the Pareto chart.
For Case 40, the control actions and corresponding concentrations are presented in Figure . Both the recirculation flow rate and the applied voltage increase gradually over the duration of the batch. This is behavior observed also in the small-scale unit of Section accounting for the gradual decrease in the concentration driving forces in the ED compartments. The maximum fluid flow rate value (Q) is 2.64 L/s, and the maximum current voltage value (E Est) is 145.3 V. The value of the membrane surface area growth coefficient is calculated to be m_A = 10.14, leading to a membrane exchange surface area per cell pair of = 0.3853 m2. The final diluate tank concentration is C final = 7.918 mol/m3, with an achieved separation degree of D sep = 84.47%. The system fulfills the concentration specification requirements in 2.87 h < 5 h. The energy consumption for the process is evaluated at 4.1 kWh/m3. The first selected case exhibits optimal characteristics in terms of many of the criteria. However, some objectives have the potential for significant improvement. Therefore, the area that achieves lower values in the maximum current voltage required, in the energy consumed, and in the area growth factor needs to be investigated.
13.

Case 40: (a) optimal control profiles, imposed voltage (left-blue), fluid flow rate (right-red) along the duration of the batch, and (b) concentrate and diluate tanks and compartments concentration profiles.
For Case 35, the control actions and the concentrate and diluate tank concentration profiles are listed in Figure . The corresponding operational characteristics of Figure a indicate as optimal design characteristics a maximum fluid flow rate value (Q) of 2.64 L/s and a maximum current voltage value (E Est) of 189.4 V. The area growth factor is calculated to be m_A = 7.01, and the membrane area is = 0.266 m2. The final diluate tank concentration is C final = 7.943 mol/m3, resulting in a degree of separation equal to D sep = 84.43%. The duration of the process is 2.57 h < 5 h, and the energy consumption required is estimated to be 5.5 kWh/m3. Case 35 therefore uses a smaller area growth factor; therefore, overall, it requires a smaller membrane area than Case 40 in a shorter process time.
14.

Case 35: (a) process control actions, imposed voltage (left-blue), fluid flow rate (right-red) against time, and (b) concentrate and diluate tanks and compartments concentrations against process time.
For Case 1, the control actions and concentration profiles are listed in Figure . The optimum characteristics include a maximum fluid flow rate value (Q) of 2.66 L/s and a maximum current voltage value (E Est ) of 64.2 V. The area growth factor was found to be m_A = 20, the maximum available for the algorithm, and the exchange area per membrane cell pair = 0.76 m2. The final dilution tank concentration value is calculated to be C final = 7.97 mol/m3 and the degree of separation is D sep = 84.38%. The current unit requires 3 h, which is again less than the constraint set at 5 h. The energy consumption required for the ED process is estimated to be 3.4 kWh/m3. Compared to Cases 40 and 35, Case 1 attains a lower (maximum) operating voltage value.
15.

Case 1: (a) process control actions, imposed voltage (left-blue), fluid flow rate (right-red) against time, and (b) concentrate and diluate tanks and compartments concentrations against process time.
The results of all of the characteristics of the selected cases are summarized in Table . It appears that all cases are within the limits of final concentration and process time that were set, so they are acceptable. More specifically, Case 40 comparatively manages to achieve a low final concentration value in the diluate tank and, thus, a greater final separation, with low energy consumption at the same time. Case 35 uses a small area growth factor of 7.01 at a short final process time of 2.57 h. As an undesirable feature, this case requires a large allowable voltage and a large power consumption, 38% higher than that of Case 40. Case 1 uses the maximum allowable area growth factor of 20 but achieves the smallest desired voltage value of 64.2 V. Another positive characteristic is the low energy consumption of 3.38 kWh/m3, 21% and 62% lower than the other selected cases.
3. Aggregate Results of Selected Industrial-Scale Unit Cases.
| case No. | t f (h) | C dil (t f) (mol/m3) | C conc (t f) (mol/m3) | E des (kWh/m3) | exchange membrane area (m2) | maximum flow rate Q (L/s) | maximum voltage E Est (V) |
|---|---|---|---|---|---|---|---|
| 40 | 2.87 | 7.918 | 94.12 | 4.08 | 0.385 | 2.64 | 145.3 |
| 35 | 2.57 | 7.943 | 94.1 | 5.48 | 0.266 | 2.64 | 189.4 |
| 1 | 3.00 | 7.970 | 94.07 | 3.38 | 0.76 | 2.66 | 64.2 |
The published batch-ED work provides scaling theory and pilot demonstrations, but we did not find intermediate-area experimental validation bridging our lab unit (A = 0.038 m2) to A = 0.76 m2 for sulfate/sulfuric systems. Accordingly, we verified the model and control strategy on the unit-scale ED using validated sulfuric acid parameters and then explored designs by varying the membrane area growth factor mA, explicitly reporting intermediate in silico areas (e.g., A = 0.266 and 0.385 m2 in Table ) before the largest case. This pathway follows batch-ED scaling guidance (area–time product, Aτ ≈ const.) and is consistent with the current practice in the field; note also that pilot-scale batch ED has been demonstrated for sulfate/lead at 5 m2 effective area. ,,
Potential scale-up challenges and how they affect optimal policies include the following: As area grows, (i) flow maldistribution reduces the limiting current density (LCD), so current density caps/penalties are warranted in optimization. (ii) Fouling/scaling at higher residence times and in more complex manifolds increases resistance and can push the optimum toward higher energy or longer batch time. , (iii) Pressure drop and pump work become non-negligible, reshaping the energy–time Pareto front. (iv) Shunt currents and Joule heating lower current efficiency and alter transport coefficients; conservative current density limits and temperature-aware properties mitigate this. In our formulation, we constrain voltage and flow and penalize Umax and Qmax to keep trajectories within realistic regimes and to avoid aggressive actuation, i.e., smooth, equipment-friendly control actions aligned with batch-ED operation theory. ,
Overall, it is observed that each one of the three selected cases exhibits trade-offs among the employed objective functions. Case 1 achieves the lowest energy consumption and the lowest operating voltage, whereas Case 35 achieves the shortest final process time and the smallest total membrane area growth factor, and finally, Case 40 achieves the smallest final dilute tank concentration. In this study, we deliberately focused on operating parameters and energy consumption without including costs related to maintenance, membrane replacement, or capital depreciation so as to avoid extending the scope into a full technoeconomic analysis or life cycle assessment (LCA). We advise that future work should complement the present results with a detailed LCA and technoeconomic evaluation to support end-users and engineers in selecting the most suitable case for industrial application.
5. Conclusions
The present work studied the effect of disturbances in the membranes in a batch electrodialysis system with recirculation. An online dynamic optimization system was developed to alleviate the effects of disturbances on the satisfaction of the effluent quality specifications. The system achieved optimal performance of the electrodialysis unit through control of the operating conditions. The successive optimization enables optimal adjustments periodically of the control variables to accommodate the set of specifications in the final concentrations of the diluate and concentrate tanks. The applied disturbance implicates the reduction of the active membranes’ surface by more than half (50–65%). The control actions of the iterative optimization algorithm manage to satisfy the final state requirement, slightly increasing the processing time and achieving an even lower final concentration in the diluate tank. To compensate for the disturbance, the system increases gradually the energy consumption, though maintaining a good balance among the competing control objectives.
Acknowledgments
This research has been cofinanced by the European Union and Greek national funds through the Operational Program Competitiveness, Entrepreneurship and Innovation, under the call RESEARCH–CREATE–INNOVATE (project code: T1EDK-02677).
Glossary
Nomenclature
- A
membrane area (m2)
- A corr
coefficient of change in active membrane area A
- A f
membrane area under the disturbance (m2)
- A st
membrane area per cell pair (m2)
- AEM
anion exchange membrane
- C
concentration (mol/m3)
- C CEM/AEM
membrane surface concentration (mol/m3)
- c
change in active membrane area A
- c i
internal collocation points
- c u
vector of constraints of control variables
- constEst
constraint of power source voltage (V)
- constq
constraint of flow rate (m3/s)
- CEM
cation exchange membrane
- D
diffusion coefficient (m2 s–1)
- E AEM
AEM potential (V)
- E CEM
CEM potential (V)
- E des
electrical energy consumption (kWh/m3)
- E el
electrode potential difference (V)
- E stack
power source voltage (V)
- F
Faraday constant (C mol–1)
- f
set of differential and algebraic equations related to mass balances
- g
set of inequality constraints of differential and algebraic equations
- h
set of equality constraints of differential and algebraic equations
- I stack
stack current (A)
- J
objective function
- j st
current density per cell pair (A/m2)
- L
membrane thickness (m)
- M
mass matrix
- N
number of cell pairs
- NC
number of collocation points
- NE
number of finite elements
- NFE
number of finite elements used in the iterative disturbance estimation loop
- Q
flow rate (m3/s)
- W x
weight matrix for state variables
- W R
weight matrix for control variables
- r
residual equation of the approximation solution
- W1
weight for power voltage
- W2
weight for flow rate
- R AEM
AEM Ohmic resistance (Ω)
- R CEM
CEM Ohmic resistance (Ω)
- R conc
concentrate compartment resistance (Ω)
- R dil
dilute compartment resistance (Ω)
- t
time (sec)
- u
vector of manipulated or control variables
- U st
applied potential difference
- V comp
volume compartment
- W t
weight matrix for time
- W E
weight matrix for energy consumption
- W Deg
weight matrix for degree of separation
- x
vector of state variables
- z
ion charge
Glossary
Superscripts/subscripts
- comp
compartment
- conc
concentrate
- dil
dilute
- f
final value
- i
finite element
- j
collocation point
- L
lower bound
- model
state and control values calculated from the model
- process
state and control values calculated from the plant
- tank
tank
- U
upper bound
- 0
initial value
Glossary
Greek letters
- δ
the Dirac delta
- δkj
the Kronecker delta
- Δζ
length of time interval
- Λ
Lagrange function
- λ
Lagrange multiplier vector
- Σ
number of the time domain elements
- τ
dimensionless time
- φ
current efficiency
- φi
Lagrange polynomials
Appendix
The appendix tables show the model parameters and optimization results for the entire set of weighting factors.
The open access publishing of this article is financially supported by HEAL-Link.
The authors declare no competing financial interest.
References
- Arana Juve J. M., Christensen F. M. S., Wang Y., Wei Z.. Electrodialysis for Metal Removal and Recovery: A Review. Chem. Eng. J. 2022;435:134857. doi: 10.1016/j.cej.2022.134857. [DOI] [Google Scholar]
- Voutetaki A., Plakas K. V., Seferlis P., Papadopoulos A. I.. A Data-Driven Approach for Integrated Design and Dynamic Optimization Under Water Demand Uncertainty of Renewable Electrodialysis Systems. Processes. 2025;13:3773. doi: 10.3390/pr13123773. [DOI] [Google Scholar]
- Mir N., Bicer Y.. Integration of Electrodialysis with Renewable Energy Sources for Sustainable Freshwater Production: A Review. J. Environ. Manage. 2021;289:112496. doi: 10.1016/j.jenvman.2021.112496. [DOI] [PubMed] [Google Scholar]
- Malek P., Ortiz J. M., Schulte-Herbrüggen H. M. A.. Decentralized Desalination of Brackish Water Using an Electrodialysis System Directly Powered by Wind Energy. Desalination. 2016;377:54–64. doi: 10.1016/j.desal.2015.08.023. [DOI] [Google Scholar]
- Hansima M. A. C. K., Ketharani J., Samarajeewa D. R., Nanayakkara K. G. N., Herath A. C., Makehelwala M., Indika S., Jinadasa K. B. S. N., Weragoda S. K., Wei Y., Weerasooriya R.. Probing Fouling Mechanism of Anion Exchange Membranes Used in Electrodialysis Self-Reversible Treatment by Humic Acid and Calcium Ions. Chem. Eng. J. Adv. 2021;8:100173. doi: 10.1016/j.ceja.2021.100173. [DOI] [Google Scholar]
- Vermaas D. A., Kunteng D., Veerman J., Saakes M., Nijmeijer K.. Periodic Feedwater Reversal and Air Sparging as Antifouling Strategies in Reverse Electrodialysis. Environ. Sci. Technol. 2014;48:3065–3073. doi: 10.1021/es4045456. [DOI] [PubMed] [Google Scholar]
- He W., Le Hénaff A.-C., Amrose S., Buonassisi T., Peters I. M., Winter A. G. V.. Voltage- and Flow-Controlled Electrodialysis Batch Operation: Flexible and Optimized Brackish Water Desalination. Desalination. 2021;500:114837. doi: 10.1016/j.desal.2020.114837. [DOI] [Google Scholar]
- Parulekar S. J.. Optimal Current and Voltage Trajectories for Minimum Energy Consumption in Batch Electrodialysis. J. Membr. Sci. 1998;148:91–103. doi: 10.1016/S0376-7388(98)00148-3. [DOI] [Google Scholar]
- Rohman F. S., Aziz N.. Optimization of Batch Electrodialysis for Hydrochloric Acid Recovery Using Orthogonal Collocation Method. Desalination. 2011;275:37–49. doi: 10.1016/j.desal.2011.02.025. [DOI] [Google Scholar]
- Kim K. S., Ryoo W., Chun M. S., Chung G. Y.. Simulation of Enhanced Power Generation by Reverse Electrodialysis Stack Module in Serial Configuration. Desalination. 2013;318:79–87. doi: 10.1016/j.desal.2013.03.023. [DOI] [Google Scholar]
- Rohman F. S., Aziz N.. Comparison of Orthogonal Collocation, Control Vector Parameterization and Multiple Shooting for Optimization of Acid Recovery in Batch Electrodialysis. AIP Conf. Proc. 2019;2124:020013. doi: 10.1063/1.5117073. [DOI] [Google Scholar]
- Kadam J. V., Schlegel M., Srinivasan B., Bonvin D., Marquardt W.. Dynamic Optimization in the Presence of Uncertainty: From Off-Line Nominal Solution to Measurement-Based Implementation. J. Process Control. 2007;17:389–398. doi: 10.1016/j.jprocont.2006.06.006. [DOI] [Google Scholar]
- Engell S.. Feedback Control for Optimal Process Operation. J. Process Control. 2007;17:203–219. doi: 10.1016/j.jprocont.2006.10.011. [DOI] [Google Scholar]
- Kiparissides C., Seferlis P., Mourikas G., Morris A. J.. Online Optimizing Control of Molecular Weight Properties in Batch Free-Radical Polymerization Reactors. Ind. Eng. Chem. Res. 2002;41:6120–6131. doi: 10.1021/ie0103409. [DOI] [Google Scholar]
- Finkler T. F., Kawohl M., Piechottka U., Engell S.. Realization of Online Optimizing Control in an Industrial Semi-Batch Polymerization. J. Process Control. 2014;24:399–414. doi: 10.1016/j.jprocont.2013.09.028. [DOI] [Google Scholar]
- Shah S. R., Wright N. C., Nepsky P. A., Winter A. G.. Cost-Optimal Design of a Batch Electrodialysis System for Domestic Desalination of Brackish Groundwater. Desalination. 2018;443:198–211. doi: 10.1016/j.desal.2018.05.010. [DOI] [Google Scholar]
- Shah S. R., Walter S. L., Winter A. G. V.. Using Feed-Forward Voltage-Control to Increase the Ion Removal Rate during Batch Electrodialysis Desalination of Brackish Water. Desalination. 2019;457:62–74. doi: 10.1016/j.desal.2019.01.022. [DOI] [Google Scholar]
- Le Henaff, A. Time-Variant Solar-Powered Electrodialysis Reversal Desalination for Affordable Off-Grid Clean Water Supply. M.S. Thesis, Massachusetts Institute of Technology, Cambridge, MA, 2019. [Google Scholar]
- Connors, G. B. Predictive Time-Variant Photovoltaic Electrodialysis Reversal: A Novel Design Optimization Using Predictive Machine Learning and Control Theory. M.S. Thesis, Massachusetts Institute of Technology, Cambridge, MA, 2021. [Google Scholar]
- Chehayeb K. M., Lienhard J. H. V.. On the Electrical Operation of Batch Electrodialysis for Reduced Energy Consumption. Environ. Sci.: Water Res. Technol. 2019;5:1172–1182. doi: 10.1039/C9EW00097F. [DOI] [Google Scholar]
- Chehayeb K. M., Nayar K. G., Lienhard J. H. V.. On the Merits of Using Multi-Stage and Counterflow Electrodialysis for Reduced Energy Consumption. Desalination. 2018;439:1–16. doi: 10.1016/j.desal.2018.03.026. [DOI] [Google Scholar]
- Bessette J. T.-Y., Pratt S. R., Winter A. G. V.. Direct-Drive Photovoltaic Electrodialysis via Flow-Commanded Current Control. Nat. Water. 2024;2:1019–1027. doi: 10.1038/s44221-024-00314-6. [DOI] [Google Scholar]
- He W., Le Hénaff A.-C., Amrose S., Buonassisi T., Peters I. M., Winter A. G. V.. Flexible Batch Electrodialysis for Low-Cost Solar-Powered Brackish Water Desalination. Nat. Water. 2024;2:370–379. doi: 10.1038/s44221-024-00213-w. [DOI] [Google Scholar]
- Rohman F. S., Othman M. R., Aziz N.. Modeling of Batch Electrodialysis for Hydrochloric Acid Recovery. Chem. Eng. J. 2010;162:466–479. doi: 10.1016/j.cej.2010.05.030. [DOI] [Google Scholar]
- Lindheimer A., Boudet-Dummy M., Gavach C.. Electrodialysis of Hydrochloric Acid. Desalination. 1993;94(2):151–165. doi: 10.1016/0011-9164(93)EO127-J. [DOI] [Google Scholar]
- Wright N. C., Shah S. R., Amrose S. E., Winter A. G.. A Robust Model of Brackish Water Electrodialysis Desalination with Experimental Comparison at Different Size Scales. Desalination. 2018;443:27–43. doi: 10.1016/j.desal.2018.04.018. [DOI] [Google Scholar]
- Ortiz J. M., Sotoca J. A., Expósito E., Gallud F., García-García V., Montiel V., Aldaz A.. Brackish Water Desalination by Electrodialysis: Batch Recirculation Operation Modeling. J. Membr. Sci. 2005;252:65–75. doi: 10.1016/j.memsci.2004.11.021. [DOI] [Google Scholar]
- Zarogiannis T., Papadopoulos A. I., Seferlis P.. Systematic Selection of Amine Mixtures as Post-Combustion CO2 Capture Solvent Candidates. J. Clean. Prod. 2016;136:159–175. doi: 10.1016/j.jclepro.2016.04.110. [DOI] [Google Scholar]
- Voutetaki A., Gkouletsos D., Papadopoulos A. I., Seferlis P., Plakas K., Bollas D., Parcharidis S.. Efficient Modeling of Electrodialysis Process for Waste Water Treatment through Systematic Parameter Estimation. Chem. Eng. Trans. 2020;81:841–846. doi: 10.3303/CET2081141[. [DOI] [Google Scholar]
- Latinis A., Papadopoulos A. I., Seferlis P.. Optimal Operational Profiles in an Electrodialysis Unit for Ion Recovery. Chem. Eng. Trans. 2021;88:1021–1026. doi: 10.3303/CET2188170. [DOI] [Google Scholar]
- Seferlis P., Hrymak A. N.. Adaptive Collocation on Finite Elements Models for the Optimization of Multistage Distillation Units. Chem. Eng. Sci. 1994;49(9):1369–1382. doi: 10.1016/0009-2509(93)E0015-5. [DOI] [Google Scholar]
- Carey G. F., Finlayson B. A.. Orthogonal Collocation on Finite Elements. Chem. Eng. Sci. 1975;30(5):587–596. doi: 10.1016/0009-2509(75)80031-5. [DOI] [Google Scholar]
- Biegler, L. T. Nonlinear Programming: Concepts, Algorithms, and Applications to Chemical Processes; SIAM: Philadelphia, PA, 2010; pp 287–324. [Google Scholar]
- Kelly M.. An Introduction to Trajectory Optimization: How to Do Your Own Direct Collocation. SIAM Rev. 2017;59(4):849–904. doi: 10.1137/16M1062569. [DOI] [Google Scholar]
- Betts, J. T. Practical Methods for Optimal Control and Estimation Using Nonlinear Programming, 2nd ed.; SIAM: Philadelphia, PA, 2010; pp 123–217. [Google Scholar]
- Biegler L. T.. An Overview of Simultaneous Strategies for Dynamic Optimization. Chem. Eng. Process. Process Intensif. 2007;46(11):1043–1053. doi: 10.1016/j.cep.2006.06.021. [DOI] [Google Scholar]
- Nie Y., Kerrigan E. C.. Efficient Implementation of Rate Constraints for Nonlinear Optimal Control. IEEE Trans. Autom. Control. 2021;66(1):329–334. doi: 10.1109/TAC.2020.2976051. [DOI] [Google Scholar]
- Strathmann H.. Electrodialysis, a Mature Technology with a Multitude of New Applications. Desalination. 2010;264(3):268–288. doi: 10.1016/j.desal.2010.04.069. [DOI] [Google Scholar]
- Zimmermann P., Tekinalp O. ¨., Solberg S. B. B., Wilhelmsen Ø., Deng L., Burheim O. S.. Limiting Current Density as a Selectivity Factor in Electrodialysis of Multi-Ionic Mixtures. Desalination. 2023;558:116613. doi: 10.1016/j.desal.2023.116613. [DOI] [Google Scholar]
- GE Water & Process Technologies . E-Cell Stack MK-3 Series Owner’s Manual, Rev. 1.1, 2007. https://www.watersurplus.com/techfiles/GE%20Water%20Systems/MK-2%20E-Cell%20Manual.pdf (accessed Oct 25, 2024).
- PCCell . GmbH Electrodialysis Cell Unit: PCCell Micro-ED, ED 64002, ED 64004 and ED 200Operating & Maintenance Instructions. Version 18.05.2017; PCCell GmbH: Heusweiler, Germany, 2017. [Google Scholar]
- Pismenskaya N., Bdiri M., Sarapulova V., Kozmai A., Fouilloux J., Baklouti L., Larchet C., Renard E., Dammak L.. A Review on Ion-Exchange Membranes Fouling during Electrodialysis Process in Food Industry, Part 2: Influence on Transport Properties and Electrochemical Characteristics, Cleaning and Its Consequences. Membranes. 2021;11(11):811. doi: 10.3390/membranes11110811. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Dammak L., Fouilloux J., Bdiri M., Larchet C., Renard E., Baklouti L., Sarapulova V., Kozmai A., Pismenskaya N.. A Review on Ion-Exchange Membrane Fouling during the Electrodialysis Process in the Food Industry, Part 1: Types, Effects, Characterization Methods, Fouling Mechanisms and Interactions. Membranes. 2021;11(10):789. doi: 10.3390/membranes11100789. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Wenten I. G., Bazant M. Z., Khoiruddin K.. Mitigating Electrodialysis Membrane Fouling in Seawater Desalination. Sep. Purif. Technol. 2024;345:127228. doi: 10.1016/j.seppur.2024.127228. [DOI] [Google Scholar]
- Vaselbehagh M., Karkhanechi H., Takagi R., Matsuyama H.. Biofouling Phenomena on Anion Exchange Membranes under the Reverse Electrodialysis Process. J. Membr. Sci. 2017;530:232–239. doi: 10.1016/j.memsci.2017.02.036. [DOI] [Google Scholar]
- Benneker A. M., Klomp J., Lammertink R. G. H., Wood J. A.. Influence of Temperature Gradients on Mono- and Divalent Ion Transport in Electrodialysis at Limiting Currents. Desalination. 2018;443:62–69. doi: 10.1016/j.desal.2018.05.005. [DOI] [Google Scholar]
- Dévora-Isiordia G. E., Ayala-Espinoza A., Lares-Rangel L. A., Encinas-Guzmán M. I., Sánchez-Duarte R. G., Álvarez-Sánchez J., Martínez-Macías M. d. R.. Effect of Temperature on Diluate Water in Batch Electrodialysis Reversal. Separations. 2021;8(12):229. doi: 10.3390/separations8120229. [DOI] [Google Scholar]
- Liu H., She Q.. Scaling-Enhanced Scaling during Electrodialysis Desalination. ACS ES&T Eng. 2024;4(5):1063–1072. doi: 10.1021/acsestengg.3c00549. [DOI] [Google Scholar]
- Prousalis T., Kantouros B., Papadopoulos A. I., Seferlis P.. Optimum Design under Uncertainty of CO2 Capture, Utilization, Mineralization and Sequestration Networks Using Rotating Packed Beds. Comput. Chem. Eng. 2026;204:109398. doi: 10.1016/j.compchemeng.2025.109398. [DOI] [Google Scholar]
- Ledingham J., Sedransk Campbell K. L., In ’t Veen B., Keyzer L., Campbell A. N.. Barriers to Electrodialysis Implementation: Maldistribution and Its Impact on Resistance and Limiting Current Density. Desalination. 2022;531:115691. doi: 10.1016/j.desal.2022.115691. [DOI] [Google Scholar]





