Next Article in Journal
Chitosan Glutaraldegyde Cryogels for Wastewater Treatment and Extraction of Silver Nanoparticles
Next Article in Special Issue
Enhancing Power Generation Stability in Oscillating-Water-Column Wave Energy Converters through Deep-Learning-Based Time Delay Compensation
Previous Article in Journal
Numerical Simulation Study on the Influence of Twist Tape Parameters on Hydrate Particle Deposition
Previous Article in Special Issue
Economic Dispatch of Combined Heat and Power Plant Units within Energy Network Integrated with Wind Power Plant
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Dynamic Optimization of Variable Load Process for Combined Heat and Power Unit Based on Sequential Quadratic Programming and Interior Point Method Alternating Solution Method

College of Electrical Engineering and New Energy, China Three Gorges University, Yichang 443002, China
*
Author to whom correspondence should be addressed.
Processes 2023, 11(6), 1660; https://doi.org/10.3390/pr11061660
Submission received: 18 April 2023 / Revised: 19 May 2023 / Accepted: 22 May 2023 / Published: 30 May 2023
(This article belongs to the Special Issue Recent Advances in Sustainable Electrical Energy Technologies)

Abstract

:
Aiming at the problem that the modeling and solving method of combined heat and power (CHP) unit variable load control process is challenging to meet the demand for efficient analysis of complex systems, this paper proposes a method based on sequential quadratic programming and interior point method (SQP-IPM) alternating solution for dynamic optimization of the CHP unit variable load process. Firstly, by constructing the CHP unit mechanism model, multi-variable coordination control constraints, and output variable process constraints, the dynamic optimization proposition of the CHP unit variable load control process is formed. Then, the large-scale nonlinear programming (NLP) problem formed by using the orthogonal configuration method to discrete the state and control variables is optimally solved using the IPM-SQP alternating solution method. Further, from the perspective of balancing the accuracy of the solution and computational efficiency, the flexible convergence depth control (CDC) strategy is introduced into the alternative solution method to improve the real-time performance of the algorithm. Finally, the variable load control process of 300MW extraction CHP unit is simulated to verify that the proposed method reduces the calculation time for 12 consecutive variable load scenarios by about 70%, effectively improving the real-time performance of scenario applications.

1. Introduction

In order to meet the demand for variable load capability of CHP units participating in integrated energy system frequency regulation [1], short-term dispatch, and other scenarios, optimal control technology modification solutions to improve the fast regulation capability of units are constantly proposed [2,3]. The dynamic regulation characteristics of the modified units are complex, showing characteristics such as multivariable, multi-process coupling, multiparameter superposition, and strong nonlinearity, which often lead to difficulties in accurate modeling and fast simulation calculation of the variable load response capability of the units. Differential algebraic equations (DAEs) are often used to describe the dynamic characteristics of the unit in the operating interval, which makes NLP with the constraints of the DAEs model of CHP units a dynamic optimization problem. Therefore, how to efficiently and reliably solve the optimal control problem of the modified CHP units becomes an urgent problem for integrated energy utilization.
The widely used simultaneous method [4,5,6] for dynamic process control optimization is often used for dynamic optimization problem solving, and the method has advantages in dealing with complex constrained CHP unit variable load control optimization problems. However, its practice of discretizing both state and control variables often makes the size of the discretized NLP proposition exponentially larger. The discrete operation will lead to more difficult optimization calculations and increased solution time, which often makes it difficult to meet the computational performance requirements of optimization solutions for different application scenarios of integrated energy systems. The existing research on NLP problem solving is mainly in the following areas. Full-space methods and simplex space methods are often used to deal with problems with equation constraints. For large-scale optimization problems with a large number of equation constraints and limited degrees of freedom, the simplex space method can be used to reduce the dimensionality of the SQP subproblem through a spatial decomposition strategy, thereby reducing the computational effort of the Hessian matrix and improving the solution efficiency of the algorithm [7,8,9]. However, the spatial decomposition process adds additional computational cost and its convergence is not as good as the full-space method based on exact second-order derivative information. The positive set method and the IPM are commonly used for problems with inequality constraints. IPM converts inequality constraints into obstacle terms added to the objective function, and the original problem solution is converted into a series of equationally constrained obstacle subproblem solutions, thus avoiding the determination of the positive set by the solution process [10,11]. Nevertheless, algorithms that use linear search strategies based on evaluation functions and trust strategies [12,13,14] to ensure global convergence, although less dependent on the initial point, cannot balance convergence and convergence speed when solving large-scale complex process optimization problems where the initial point is far from the optimal point. The algorithm has better local convergence and can converge quickly only when the initial point is closer to the optimal point; otherwise, it may fail to converge.
Meanwhile, another reason limiting the convergence of the above algorithm is the waste of computational resources caused by the convergence criterion. The convergence criterion significantly impacts the computational time, and the computational delay will lead to a decrease in controller performance. The traditional Himmelblau termination criterion (H-criterion for short) [15] is commonly used to control all or part of the convergence of optimization algorithms. The H-criterion is rigid and can only give a simple conclusion of “convergence” or “non-convergence”. When considering the degree of change of variables and the degree of reduction (or increase) of the objective function, it often makes the optimization calculation index enter a stage where the computational cost is much greater than the improvement of the convergence effect (“over convergence”) after reaching a certain level of convergence. Nonlinear optimization solution algorithms based on traditional criteria often need to satisfy pre-given tolerance values when solving dynamic optimization problems. Without significantly improving the numerical solution, over-iterations consume much computational time, making the control action not act on the controlled system in time. Moreover, there is no general termination criterion applicable to all optimization problems and various optimization algorithms in existing studies.
To address the above problems, this paper proposes the dynamic optimization of the variable load process of the CHP unit based on the IPM-SQP alternating solution method. The paper is structured as follows: Section 2 constructs the CHP unit mechanism model, designs the multivariable coordinated control model and the control process output variable constraints, and forms the CHP unit variable load control process dynamic optimization proposition. In Section 3, the finite element orthogonal collocation method is used for discretization to generate large-scale NLP problems. In Section 4, an alternating IPM-SQP solution strategy based on CDC is designed to solve the NLP problems to improve the algorithm’s real-time performance. Section 5 describes a case study to prove the effectiveness of the proposed method. Section 6 presents our conclusions.

2. Proposition Construction for Dynamic Optimization of CHP Unit Variable Load Process

CHP unit variable load control is the process of regulating the operating unit’s electrical output and thermal output, mainly in response to changes in the electrical and thermal energy demand of the energy supply system. As shown in Figure 1, the variable load process controls the amount of fuel entering the boiler to produce high-temperature steam by adjusting the coal feed mass flow rate VB through the controller. The amount of steam entering the high-pressure cylinder is controlled by adjusting the turbine regulating valve opening VT. The amount of steam entering the low-pressure cylinder to do work is controlled by adjusting the opening of the pumping regulating butterfly valve VH to output electrical power, while the amount of steam in the medium-pressure cylinder is controlled to supply the heat source. DAEs describe the CHP unit mechanism relationship. The unit control variables are constrained by the control method to meet the variable load demand. To ensure safe and stable operation, the unit control process is subject to state and output constraints. This process control optimization seeks the feasible regulation path of the unit electric output and thermal output change process from initial to final value under satisfying the performance requirements. Therefore, the CHP unit variable load problem can be described as an optimal control problem.

2.1. Objective Function of the Optimization Proposition

To ensure that the control process of the CHP unit is accurate and fast, and smooth to achieve variable load regulation, the mathematical form of the combination of control variables and output variables is chosen as the optimal control performance objective function [16], which is described as
m i n u , y J = t 0 t f   u t u t 1 R 2 + y t y S 2 2 d t
where y are the set values of output variables; u t is the control variable at the t-th moment,   u t u t 1 R 2 minimizes the smooth variation of the control variable; y t is the measured output of the control object at the t−1-th moment as the feedback of the closed-loop system at the t-th moment; R and S are positive definite weighting matrix to determine the initial values by normalization.
In the model, u is the control variable, y is the algebraic state variable, and x is the differential state variable, where:
x = ψ d , P H , ψ z , V f T u = V T , V B , V H T y = ψ t , P H , m H T

2.2. CHP Unit Model Constraints

2.2.1. Mechanism Model

By analyzing the thermal component characteristics of the heating unit and the steam work process in the turbine [17], a simplified nonlinear mechanism model description of the CHP unit can be obtained as follows:
V m t = V B t t B
d V f t d t = V f t T f + V B t t B T f
d ψ d t d t = K 3 ψ t t V T t C d + K 1 V f t C d
ψ d t ψ t t = K 2 K 1 V f t 1.5
d P H t d t = K 3 K 4 ψ t t V T t T t + K 5 ψ z t V H t T t P H t T t
ψ 1 t = 0.01 ψ t t V T t
d ψ z t d t = K 6 m r t 96 ψ z t ε r t + 103 C z + K 3 1 K 4 ψ t t V T t C z K 5 ψ z t V H t C z
m H t = K 7 K 6 m r t 96 ψ z t ε r t + 103
Equations (3) and (4) characterize the dynamic relationship of the coal-fired pulverizing system. Equations (5) and (6) characterize the dynamic relationship of the steam package boiler system. Equations (7)–(9) characterize the dynamic relationship of the turbine system. Equation (10) characterizes the dynamic relationship of the heating system. K1, K2, K3, K4, K5, K6, and K7 are static parameters.

2.2.2. Multivariate Coordinated Control Model

The CHP unit controller cooperatively regulates the direction and magnitude of V B t , V T t , and V H t through the designed control algorithm, which makes the output variables ψ t t , m H t , and P H t change. For the above mechanism model, a coordinated thermal-electric control algorithm is designed to achieve the three critical functions of accurate electric power tracking, fast thermal power recovery, and system pressure safety [2,3]. Its mathematical model is as follows:
V T t = K P T E T t + K I T 0 t E T t d t + K D T d E T t d t V B t = K P B E B t + K I B 0 t E B t d t + K D B d E B t d t V H t = K P H E H t + K I H 0 t E H t d t + K D H d E H t d t E T t = S P ψ ψ t t E B t = S P P m H t K e t T c T c P H t E H t = S P m m H t
where KPT, KIT, KDT, KPB, KIB, KDB, KPH, KIH, KDH, K, and Tc are the control system regulation parameters.

2.2.3. Output Variable Constraints for Control Processes

Considering the safety and stability of CHP unit operation, the fluctuation range of the process value of the output variable and the error range of the steady-state value during the control process should not exceed the allowed limits, and the constraints should be satisfied as follows:
Δ ψ S P ψ ψ t t Δ ψ Δ P S P P P H t Δ P Δ m S P m m H t Δ m
δ ψ ψ t t f S P ψ δ ψ δ P P H t f S P P δ P δ m m H t f S P m δ m

2.3. Boundary Constraints

The CHP unit completes variable load regulation in the time period t 0 , t f , and the initial and termination states of each control variable and output variable are shown below:
ψ t t 0 = ψ t 0 V T t 0 = V T 0 P H t 0 = P H 0 V B t 0 = V B 0 m H t 0 = m H 0 V H t 0 = V H 0
ψ t t f = ψ t f V T t f = V T f P H t f = P H f V B t f = V B f m H t f = m H f V H t f = V H f
where ψ t 0 , P H 0 , m H 0 and ψ t f , P H f , m H f are the output values at the start and end times, respectively. V T 0 , V B 0 , V H 0 and V T f , V B f , V H f are the control values at the start and end times, respectively.

2.4. Path Constraints

Due to the limits of the CHP unit’s own component properties, VT, VB, and VH need to meet the following constraints during variable load regulation.
V T m i n V T t V T m a x V B m i n V B t V B m a x V H m i n V H t V H m a x
where V T m i n and V T m a x are the minimum and maximum values of the variation of the turbine regulator opening, respectively; VB and VH are the same.

3. Discretization of Dynamic Optimization Problems

Without loss of generality, the unit variable load optimal control problem obtained in Chapter 1 can be expressed as a dynamic optimization problem in the form of DAEs as follows:
min   J x t f s.t. x ˙ t = F x t , y t , u t , g E x t , y t , u t = 0 , h E x t f , y t f , u t f = 0 , g I E x t , y t , u t < 0 , h I E x t f , y t f , u t f < 0 , u L u t u U , x t 0 = x 0 , x t f = x f , t t 0 , t f
where F is the dynamic model of the CHP unit DAEs, corresponding to Equations (3)–(10); g E and g I E are the equal and unequal path constraints, corresponding to Equations (11), (12) and (16); hE and hIE are the final value constraints at moment t f , corresponding to Equation (13); the initial and termination boundary values of the state variable x are calculated by Equations (14) and (15).
The whole time domain [ t 0 , t f ] is divided into 𝑁-segment finite elements, and on each finite element t i 1 , t i i = 1 , 2 , , N , the Lagrange interpolation function based on Radau orthogonal configuration points approximates the state variables, control variables and algebraic output variables of the original functions. The interpolation equation is as follows:
x t = j = 0 K l j τ x i j u t = j = 1 K l ˉ j τ u i j y t = j = 1 K l ˉ j τ y i j
where l j τ = k = 0 , j K τ τ k / τ j τ k and l ˉ j τ = k = 1 , j K τ τ k / τ j τ k are the Lagrangian interpolation polynomials of the corresponding variables, respectively. K is the interpolation order.
The initial and final value conditions of the state variables are:
x 1 , 0 = x 0 ,   x f = x N , K
Since the state variables are derivable, the values of the state variables at the nodes of adjacent finite element connections should be continuous, so there is a continuity condition as:
x i + 1 , 0 = j = 0 K l j 1 x i j , i = 1 , 2 , , N 1
The advantage of the Lagrange interpolation polynomial is that the value of the variable at each configuration point is exactly equal to its coefficient.
t i j = t i 1 + t i t i 1 τ j
x t i j = x i j ,   u t i j = u i j ,     y t i j = y i j
Substituting Equations (18), (21), and (22) into the set of differential equations of proposition (17), we obtain the configuration equation:
R i τ j = k = 0 K l ˙ k τ j x i k h i f x i j , u i j = 0 , i = 1 , 2 , , N , j = 1 , 2 , , K .
t = t i 1 + h i τ ,   h i = t i t i 1
So far, the NLP proposition form of the original optimal proposition (17) after discretization is obtained:
min   J x t f s.t. k = 0 K l ˙ k τ j x i k h i F x i j , y i j , u i j = 0 , g E x i j , y i j , u i j = 0 , h E x i j , y i j , u i j = 0 , g I E x i j , y i j , u i j < 0 , h I E x i j , y i j , u i j < 0 , u L u i j u U , i = 1 , 2 , , N ; j = 1 , 2 , , K ; x ( 0 ) = x 0 , x t f = x f x i + 1 , 0 = j = 0 K l j ( 1 ) x i j ,           i = 1 , 2 , , N 1 .
For the above NLP problems containing many inequality constraints after discretization, SQP and IPM [18] are often used for optimization solutions. However, they still do not provide a good balance of convergence and convergence speed when solving large-scale complex process optimization problems. The SQP algorithm with good local convergence often converges quickly only when the initial point is close to the optimal point; otherwise, it may fail to converge. The IPM algorithm with good global convergence does not depend strongly on the initial point, but the local convergence and convergence speed are difficult to guarantee. Currently, the solution of dynamic optimization problems faces the challenge that the convergence rate of the optimization search and the solution accuracy are difficult to be balanced at the same time. In the CHP unit nonlinear optimal control of variable load problems, the real-time requirement is very high, and the solution time is vital. The computational delay prevents the control action from being applied to the controlled object promptly, resulting in a degradation of the system control performance.

4. IPM-SQP Alternate Solution Based on Convergence Depth Control

In this paper, we design an alternate solution method using the advantages of each IPM and SQP algorithm. The two nonlinear planning algorithms are regarded as the elemental algorithms of the alternate solution method, and the CDC is used to realize the alternate solution of the two elemental algorithms in collaboration with each other. This method can improve the algorithm’s overall robustness and computational efficiency to complete the solution of large-scale complex problems.

4.1. Convergence Depth Control

Due to the requirements of the CHP unit variable load process on the real-time performance of the solution algorithm, the design of the dynamic optimization convergence criterion should take into account the computational accuracy and operational efficiency, and a balance should be achieved between them. The traditional convergence criterion has only convergence success and failure states when terminating the algorithm, which is too strict in practical applications [19] and is not conducive to real-time optimization calculation. In order to better control the termination condition of the algorithm, this paper introduces the convergence depth and progress degree to describe the convergence state at the current iteration point quantitatively. Furthermore, the Sigmoid function is used to soften the traditional rigid convergence criterion, to control the termination of the algorithm.
The nonlinear programming problem shown in the original proposition (25) can be abbreviated as:
min x R n   f x       s . t . c x = 0 x 0
where f is a scalar objective function, x R n is an n-dimensional real vector, and c R m is an m-dimensional equation. The solution to the problem (26) must satisfy the following first-order optimality condition:
f x + c x λ v = 0 c x = 0 X v = 0 , v 0
where f x is the gradient vector of the objective function; c x is the Jacobi matrix of the constraint equation; 𝜆 is the Lagrangian multiplier corresponding to the constraint equation; ν is the pairwise variable corresponding to x , and X = diag x .
Assuming that the sequence of iterations generated by the optimization algorithm is {xk}, define the feasibility error δ feasErr   k at the current iteration point xk, and the amount of improvement predicted by the objective function δ o b j E r r k [20]:
δ f e a s E r r k = max c x k ; max x i k
δ o b j E r r k = f T x k d k , d k = x k x k 1
where x i k is the i-th component of the vector.
S is introduced as a deformed Sigmoid function for softening the traditional rigid convergence criterion defined as:
S δ k , ε 0 = tanh ξ log δ k / log ε 0 / tanh ξ
where the function S δ k , ε 0 smoothly connects the interval ε 0 , 1 / ε 0 ; ξ measures the degree of smoothness of the function S in this interval, and ξ takes 1.5.
Then the depth of convergence θ convg k is:
θ convg k = S max δ feasErr k , δ objErr k , ε 0
The softening of the Sigmoid function to the rigid convergence criterion is shown in Figure 2. Given different tolerances ε 0 (1 × 10−10 for curve 1, 1 × 10−5 for curve 2, 1 × 10−3 for curve 3, and rigid criterion for curve 4). The degree of deformation of curve 2 is more appropriate, while curve 1 is too flat and curve 3 is too steep.
The depth of convergence based on the flexible criterion is more intuitive than the first-order optimality condition (Equation (27)). The criterion uniformly characterizes the quality (feasibility and optimality) of each iteration point generated by the optimization algorithm and can quantitatively describe the distance between it and the optimal point [19,21]. When the depth of convergence reaches 1.0, the feasibility error and the amount of improvement in the objective function prediction also reach ɛ0, at which point the iteration point is already a good approximation of the optimal point.

4.2. IPM-SQP Alternate Solution Algorithm

The CDC-based IPM-SQP alternate solution method uses the globally convergent IPM algorithm to advance the initial point to the optimal point and uses the depth of convergence to measure the distance between the current iteration point and the optimal point. By controlling the degree of advancement, and then switching to the SQP algorithm with better local convergence to make the iteration point converge to the optimal point quickly. This paper introduces the progress degree index for switching between IPM-SQP alternate solution methods.
The amount of feasible change δ feasChg   k and the amount of change in the objective function δ objChg k are:
δ feasChg k = δ feasErr k δ feasErr k 1
δ objChg k = f x k f x k 1
From the above equation, the degree of progress θ prog   k can be defined as [22]:
θ prog   k = S max δ feasChg   k , δ o b j C h g k , ε 0
When the degree of progress reaches 1.0, the algorithm has reached ε 0 in terms of the amount of feasibility change and the amount of improvement in the objective function, which means that the algorithm has almost no more progress in terms of the objective function and feasibility improvement.
The CDC-IPM-SQP alternate solution method framework is designed based on the depth of convergence and the degree of progress introduced above. The framework for solving the dynamic optimization problem in the form of Equation (25) using the simultaneous method is shown in Figure 3. First, the finite element Orthogonal collocation method is used for discretization, and then the IPM-SQP optimization algorithm is used for optimization.
(1)
Establishing dynamic optimization problems
Design input for dynamic optimization problems based on the dynamic process scenario of CHP unit variable load optimization control, which includes: the CHP unit mechanism model, multiple control variable coordination control model, control process output variable constraints, boundary constraints, and path constraints.
(2)
Discrete processing of original problems
The variables of the original optimization problem are fully discretized by the finite element Orthogonal collocation method. Lagrange interpolation function based on Radau Orthogonal collocation points approximates the original functions of state variables and control variables. The original dynamic optimization problem after discretization becomes an NLP problem.
(3)
Real-time planning NLP model
Follow the process of inputting “initial information → generating initial values → optimizing the solver → obtaining the optimal solution” for real-time planning. During the optimization process, input NLP model information and calculated residuals into the solver. The variable values obtained from each optimization iteration are fed back to the NLP model. When using the SQP-IPM optimization algorithm for calculation and solution, it is necessary to select configuration points, calculate derivatives, approximate Jacobian matrices for the NLP model, and input the sparse Jacobian matrix into the optimization algorithm.
In the optimization algorithm solving section, IPM is first selected to solve the NLP problem, and the depth of convergence at each step is calculated using Equation (31) during the iteration. When the convergence depth satisfies the specified threshold θ c , the information of the iteration points is saved; Terminate the current algorithm and switch to SQP, and the last saved iteration point is used as the initial point to continue the iteration. Since different algorithms have different local convergence radii, this paper first gives the threshold θ c an initial value of θ c 0 0 , 1 . If the SQP convergence is unsuccessful, the iteration point obtained from IPM enters the local convergence radius; the convergence depth threshold is increased by d θ 0 , 1 , and returns to IPM for iteration. The specific steps of the alternate solution method are as follows:
(1)
Let k = 0, given the initial point x0; specify the convergence depth threshold θ c , the progress degree threshold θ p , the convergence depth advance step d θ , and the maximum convergence depth value θ m a x ; and set the flag bit IPM to 0.
(2)
Select the IPM and set its flag bit to 1 for solving the optimization problem.
(3)
Iterate one step, k = k + 1, if the termination criterion of IPM is satisfied, the solution is successful, and the whole algorithm is terminated; otherwise, go to step 4).
(4)
Calculate the depth of convergence, check whether θ c o n v g k θ c is satisfied; if it is satisfied, assign the current iteration point xk to x0 and clear the flag bit of SQP, go to step 6); otherwise, go to step 5).
(5)
If the termination criterion (solution failure) of IPM is not satisfied, turn to step 3); otherwise, the solution fails, and the whole algorithm terminates.
(6)
Select SQP, set its flag bit to 1, and solve the optimization problem with x0 as the initial point.
(7)
Iterate one step, k = k + 1; if the termination criterion of SQP is satisfied, the solution succeeds, and the whole algorithm terminates; otherwise, go to step 8).
(8)
Calculate the degree of progress; if both θ c o n v g k θ p and the termination criterion of SQP are not satisfied, turn to step 7); otherwise, go to step 9).
(9)
Assign the current iteration point xk to x0 and go to step 10).
(10)
Let θ c = θ c + d θ ; if θ c θ m a x , the solution fails, and the whole algorithm terminates; otherwise, the flag bit of IPM is cleared to 0; turn to step 2).
The simultaneous method framework and the specific implementation flow of the CDC-based IPM-SQP alternate solution to dynamic optimization problems in this paper are shown in Figure 3.
Figure 3. Simultaneous method framework for alternating SQP-IPM solutions based on CDC.
Figure 3. Simultaneous method framework for alternating SQP-IPM solutions based on CDC.
Processes 11 01660 g003

5. Simulation Case and Analysis

The numerical experiments in this paper are conducted on a computer-based Intel(R) Core(TM) i7-8550U processor with 32 GB RAM. The NLP solvers used are IPM-based IPOPT and SQP-based SNOPT. The initial value of the convergence depth threshold θ c 0 is set to 0.6; the convergence depth advancement step d θ is 0.1; the degree of progress threshold θ p is set to 1.0 (the optimization algorithm has made no progress in the objective function and feasibility improvement); the maximum convergence depth θ m a x is 1.0 (the iteration point is already a good approximation of the optimal point). The configuration points are of order 3 (k = 3), the finite elements are 200 (N = 200), and the discrete points are 600 in total.

5.1. Simulation Scenario of CHP Unit Variable Load Control

In this paper, simulation analysis is performed using the parameters of the extracted CHP unit in the literature [17], and the control system parameters of the CHP unit are shown in Table 1. The data of three cases of common variable load requirements for CHP units in integrated energy system applications are shown in Table 2 and Table 3. The adjustment time of the control process from the initial value to the terminal value is 300 s. Three different optimization solution algorithms are set for the simulation calculation. Method 1 is IPM; Method 2 is CDC-based IPM; Method 3 is CDC-based IPM-SQP.

5.2. Simulation Results Analysis

5.2.1. Comparative Analysis of the Effect of Variable Load Simulation

Simulation calculations were carried out by three methods for Case 1 and Case 2, and the results are shown in Figure 4. Different methods are used to solve the CHP unit variable load process under heating and pure condensing conditions. It can be seen that the output variables ( ψ t , P H , m H ) curves are consistent, and the dynamic process’s control variables (VT, VB, VH) have the same trajectory. All of them achieve the optimal control effect.
The mechanistic model-related parameters of Equations (3)–(10) are taken at different values for CHP units under different operating conditions, resulting in the variation of DAEs of the unit model in the dynamic optimization problem. The simultaneous solution framework and algorithm improvement method proposed in this paper can converge and achieve the demanded effect when solving the unit variable load problem under different operating conditions. The simulation results prove that the unified description framework established and the optimization performance objectives designed in this paper for the dynamic optimization problems of CHP units with different operating conditions and different variable load demand scenarios have the generality to be applied to the integrated energy system calculation scenarios.
For the demand of continuously changing load in the application scenario of an integrated energy system, the control process of continuously changing electric and thermal loads for 12 time periods (300 s each) under the heating condition of the CHP unit is selected for simulation. The method proposed in this paper is used for the continuous dynamic optimization solution, and the output quantity curve and control quantity trajectory in this process are shown in Figure 5. The results show that the terminal values of electric power PH and thermal power (related variable mH) of the CHP unit can accurately realize the variable load demand. The unit’s main steam pressure ψ t and heating steam flow mH curves continuously portray the pressure and heat fluctuation changes caused by the variable load process, which is conducive to the analysis of the integrated energy system calculation scenario for safe and stable operation.
Figure 5b shows that the control variables (VT, VB, VH) trajectories enable coherent planning for optimal control of the variable load dynamic process in CHP units. These trajectories provide precise quantitative indicators for repeated adjustment of flow rate and valve opening during unit operation and guide actual CHP units’ continuous variable load regulation.

5.2.2. Method Performance Comparison Analysis

Different solution methods are used to calculate the optimal control problem of the CHP unit for each of the three case scenarios, and a set of optimal indicators are solved to obtain variable load control process paths. Their computational performance indexes are shown in Table 4. It can be seen that the optimal control terminal values of the three methods do not differ much under different working conditions and variable load demands, and the feasibility error also meets the actual requirements. However, the number of iterations and the solution time of the discrete model have significant differences.
When the CDC-based improved method is used to solve the problem, the time interval between two calculations can be shorter, and the deviation between the initial value and the optimal solution becomes smaller, thus reducing the number of iterations in the calculation process. This feature can effectively improve the computational efficiency of the algorithm and greatly reduce the computing time. In case 1, compared with the IPM solution alone, the CDC criterion used in the CDC-IPM solution makes the constraint violation slightly larger than the result of the traditional H criterion. In addition, the objective function value is slightly smaller than the optimal value. However, the computation time of the CDC-IPM solution is reduced by about 30%, and the number of iterations is reduced by about 20%. Under the traditional H-criterion, the termination position of the optimization process (objective function and maximum constraint violation) is the 61st iteration, while the CDC criterion terminates at the 47th iteration. The simulation results show that the CDC criterion can effectively determine the degree of convergence of the solution process, the degree of the constraint violation, and the degree of improvement by continuing the iteration and can terminate the iteration in time to avoid over-convergence.
When the CDC-IPM-SQP method is used to solve the optimization problem of case 1, IPM reaches a convergence depth of 0.67 after 19 iterations, which exceeds the convergence depth threshold (0.6); the algorithm considers that the current iteration point is close to the optimal point and switches to the SQP algorithm; after continuing to iterate for six steps, SQP finds the optimal solution, and the algorithm terminates; the maximum value of the progress degree of SQP during the iteration process is 0.26, which is far from the threshold (1.0), so no switching is performed. Compared with the CDC-IPM solution, its computation time is shortened by about 40%, and the number of iterations is reduced by about 30%.
The improved IPM-SQP alternating solution method based on the CDC criterion can reduce the calculation time of variable load for the 12 time periods in case 3 by about 70%, which effectively improves the real-time performance of the scenario application.

6. Conclusions

In this paper, a method based on alternating SQP-IPM to solve the optimization of the variable-load dynamic process of CHP units is proposed. The computational performance of the CHP unit variable-load dynamic optimization under the three different solution methods is compared through numerical simulations of different arithmetic cases and the following conclusions are drawn:
(1)
Compared with the IPM solution alone, the CDC-IPM solution method uses the CDC criterion so that the constraint violation is slightly larger than the result of the conventional H criterion, while the objective function value is slightly smaller than the optimal value. However, the computation time of CDC-IPM is reduced by about 30%, and the number of iterations is reduced by about 20%.
(2)
Compared with the CDC-IPM solution, the computation time is reduced by about 40%, and the number of iterations is reduced by about 30% using the CDC-IPM-SQP.
(3)
The use of CDC criterion improvement and IPM-SQP alternate solution reduces the calculation time of variable load for 12 consecutive periods by about 70%, which effectively improves the real-time performance of energy system optimization scenario applications.
In summary, the dynamic optimization model and solution method for a variable load of CHP units proposed in this paper can improve the calculation speed while guaranteeing the solution accuracy and provide the possibility of incorporating the finely modeled CHP units into the energy scenario optimization application. This paper compares three solution methods for variable-load process optimization problems on specific CHP units, and further validation is needed for other types of units. It does not consider the technical difficulty of unit optimization and control modification, maintenance cost, and time scale of scenario application. Further discussion and research are needed in practical applications.

Author Contributions

Conceptualization, methodology, Y.H.; writing—original draft preparation and validation, Q.C.; writing—review & editing and supervision, L.Z.; investigation and software, Z.Z.; data curation and formal analysis, X.L.; visualization, J.T. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported by the National Natural Science Foundation of China (52007103) and the Research Fund for Excellent Dissertation of China Three Gorges University (2021BSPY013).

Data Availability Statement

All data used to support the findings of this study are included within the article.

Acknowledgments

The authors thank the National Natural Science Foundation of China and the Research Fund for Excellent Dissertation of China Three Gorges University for their funding support.

Conflicts of Interest

The authors declare no conflict of interest.

Nomenclature

Variables
VB(t)unit coal feed mass flow rate
Vm(t)actual coal feed mass flow rate of the pulverizing system
Vf(t)boiler combustion rate
VT(t)turbine regulating gate opening
ψd(t)steam package pressure
ψt(t)main steam pressure
VH(t)extraction regulating butterfly valve opening
PH(t)unit power generation
ψz(t)medium pressure cylinder discharge pressure
ψ1(t)turbine first-stage pressure
mr(t)circulating water mass flow rate
ɛr(t)circulating water return temperature
mH(t)unit heating extraction flow
SPψmain steam pressure settings
SPPelectric power settings
SPmheat supply extraction flow settings
ψfluctuation ranges of the main steam pressure
Pfluctuation ranges of the electric power
mfluctuation ranges of the heat supply extraction flow
δψerror ranges of the main steam pressure
δPerror ranges of the electric power,
δmerror ranges of the heat supply extraction flow
t0starting moments of the optimal control process
tffinal moments of the optimal control process
Parameters
tBdelay time constant of the pulverizing process
Tfpulverizing inertia time constant
Cdboiler heat storage coefficient
Ttturbine inertia time constant
Czheat storage coefficient of the heat network heater
Abbreviations
CHPcombined heat and power
IPMinterior point method
SQPsequential quadratic programming
NLPnonlinear programming
DAEsdifferential algebraic equations
CDCconvergence depth control

References

  1. Wang, W.; Sun, Y.; Liu, J. Load-change control strategy for combined heat and power units adapted to rapid frequency regulation of power grid. Autom. Electr. Power Syst. 2018, 42, 63–69. [Google Scholar]
  2. Wang, W.; Liu, J.; Gan, Z.; Niu, Y.; Zeng, D. Flexible control of combined heat and power units based on heat-power estimation and coordination. Int. J. Electr. Power Energy Syst. 2020, 123, 106261. [Google Scholar] [CrossRef]
  3. Wang, W.; Liu, J.; Zeng, D.; Fang, F.; Niu, Y. Modeling and flexible load control of combined heat and power units. Appl. Therm. Eng. 2020, 166, 114624. [Google Scholar] [CrossRef]
  4. Song, C.; Wu, B.; Li, P. A hybrid model-based optimal control method for nonlinear systems using simultaneous dynamic optimization strategies. J. Process Control 2012, 22, 852–860. [Google Scholar] [CrossRef]
  5. Li, B.; Wang, K.; Shao, Z. Time-optimal maneuver planning in automatic parallel parking using a simultaneous dynamic optimization approach. IEEE Trans. Intell. Transp. Syst. 2016, 17, 3263–3274. [Google Scholar] [CrossRef]
  6. Zhu, Q.; Shao, Z.; Song, Z. Design and optimization of low-thrust gravity-assist trajectory in multi gravitational fields. Control Theory Appl. 2018, 35, 741–750. [Google Scholar]
  7. Marini, L.; Morini, B.; Porcelli, M. Quasi-Newton methods for constrained nonlinear systems: Complexity analysis and applications. Comput. Optim. Appl. 2018, 71, 147–170. [Google Scholar] [CrossRef]
  8. Gilbert, J. Maintaining the positive definiteness of the matrices in reduced secant methods for equality contrained optimization. Math. Program. 1991, 50, 1–28. [Google Scholar] [CrossRef]
  9. Lee, J.H.; Jung, Y.M.; Yuan, Y.-X.; Yun, S. A subspace SQP method for equality constrained optimization. Comput. Optim. Appl. 2019, 74, 177–194. [Google Scholar] [CrossRef]
  10. Fazlyab, M.; Paternain, S.; Preciado, V.; Ribeiro, A. Prediction-correction interior-point method for time-varying convex optimization. IEEE Trans. Autom. Control 2017, 63, 1973–1986. [Google Scholar] [CrossRef]
  11. Holmqvist, A.; Magnusson, F. Open-loop optimal control of batch chromatographic separation processes using direct collocation. J. Process Control 2016, 46, 55–74. [Google Scholar] [CrossRef]
  12. Jie, H.; Yuan, M.; Hong, W. A quasi-sequential algorithm for PDE-constrained optimization based on space–time orthogonal collocation on finite elements. J. Process Control 2021, 98, 1–9. [Google Scholar] [CrossRef]
  13. Biegler, L.; Yang, X.; Fischer, G. Advances in sensitivity-based nonlinear model predictive control and dynamic real-time optimization. J. Process Control 2015, 30, 104–116. [Google Scholar] [CrossRef]
  14. Fletcher, R.; Leyffer, S. Nonlinear programming without a penalty function. Math. Program. 2002, 90, 239–269. [Google Scholar] [CrossRef]
  15. Gill, P.E.; Murray, W.; Wright, M.H. Practical Optimization; Society for Industrial and Applied Mathematics: Philadelphia, PA, USA, 2019. [Google Scholar]
  16. Pedersen, T.; Aarsnes, U.; Godhavn, J. Flow and pressure control of underbalanced drilling operations using NMPC. J. Process Control 2018, 68, 73–85. [Google Scholar] [CrossRef]
  17. Wang, Q. Research on Optimization Control for Heating Units under the Condition of Large-Scale Integration of Wind Power. Ph.D. Thesis, North China Electric Power University, Beijing, China, 2013. [Google Scholar]
  18. Diehl, M.; Bock, H.; Schlöder, J.P.; Findeisen, R.; Nagy, Z.; Allgöwer, F. Real-time optimization and nonlinear model predictive control of processes governed by differential-algebraic equations. J. Process Control 2002, 12, 577–585. [Google Scholar] [CrossRef]
  19. Chen, W.; Shao, Z.; Wang, K.; Chen, X.; Biegler, L.T. Convergence depth control for interior point methods. AIChE J. 2010, 56, 3146–3161. [Google Scholar] [CrossRef]
  20. Long, C.; Polisetty, P.; Gatzke, E. Nonlinear model predictive control using deterministic global optimization. J. Process Control 2006, 16, 635–643. [Google Scholar] [CrossRef]
  21. Wang, K.; Shao, Z.; Zhang, Z.; Chen, Z.; Fang, X.; Zhou, Z.; Chen, X.; Qian, J. Convergence depth control for process system optimization. Ind. Eng. Chem. Res. 2007, 46, 7729–7738. [Google Scholar] [CrossRef]
  22. Zavala, V.; Laird, C.; Biegler, L. A fast moving horizon estimation algorithm based on nonlinear programming sensitivity. J. Process Control 2008, 18, 876–884. [Google Scholar] [CrossRef]
Figure 1. CHP unit control process structure diagram.
Figure 1. CHP unit control process structure diagram.
Processes 11 01660 g001
Figure 2. Transformation of rigid criteria into flexible criteria.
Figure 2. Transformation of rigid criteria into flexible criteria.
Processes 11 01660 g002
Figure 4. Results of dynamic optimization of CHP unit variable load control process. (a) case 1; (b) case 2.
Figure 4. Results of dynamic optimization of CHP unit variable load control process. (a) case 1; (b) case 2.
Processes 11 01660 g004
Figure 5. CHP unit continuous variable load dynamic process results. (a) Output variables; (b) Control variables.
Figure 5. CHP unit continuous variable load dynamic process results. (a) Output variables; (b) Control variables.
Processes 11 01660 g005
Table 1. CHP unit control system parameters.
Table 1. CHP unit control system parameters.
VT Control ParametersVB Control ParametersVH Control ParametersCoordination Parameters
KPT = −0.9KPB = 0.1KPH = 0.01K = 0.5
KIT = −1KIB = 0.01KIH = 10TC = 15
KDT = 0KDB = 0KDH = 0
Table 2. Variable load requirements for CHP units under different operating conditions.
Table 2. Variable load requirements for CHP units under different operating conditions.
Case Initial   Value   ( P H 0 , ψ t 0 , m H 0 ) Terminal   Value   ( P H f , ψ t f , m H f )
Case 1 (Heating condition)(220, 16.67, 380)(260, 16.67, 390)
Case 2 (Pure condensing condition)(260, 16.67, 0)(235, 16.67, 0)
Table 3. Continuous variable load demand for CHP units under heating conditions (Case 3).
Table 3. Continuous variable load demand for CHP units under heating conditions (Case 3).
Time Period ( P H 0 , ψ t 0 , m H 0 ) ( P H f , ψ t f , m H f )
300–600 s(250, 16.67, 390)(220, 16.67, 380)
600–900 s(220, 16.67, 380)(200, 16.67, 390)
900–1200 s(200, 16.67, 390)(230, 16.67, 395)
1200–1500 s(230, 16.67, 395)(210, 16.67, 385)
1500–1800 s(210, 16.67, 385)(240, 16.67, 395)
1800–2100 s(240, 16.67, 395)(250, 16.67, 385)
2100–2400 s(250, 16.67, 385)(220, 16.67, 380)
2400–2700 s(220, 16.67, 380)(200, 16.67, 390)
2700–3000 s(200, 16.67, 390)(230, 16.67, 395)
3000–3300 s(230, 16.67, 395)(210, 16.67, 385)
3300–3600 s(210, 16.67, 385)(240, 16.67, 395)
3600–3900 s(240, 16.67, 395)(260, 16.67, 385)
Table 4. Comparison of computational performance of different methods.
Table 4. Comparison of computational performance of different methods.
CasePerformance IndicatorsCDC-IPM-SQP (IPOTP-SNOPT)CDC-IPM (IPOTP)IPM (IPOTP)
Case 1Solution time1.34 s2.27 s3.35 s
Iteration number334761
Feasibility error2.03 × 10−51.13 × 10−55.13 × 10−8
ConvergenceSuccessfulSuccessfulSuccessful
Terminal value(259.9, 16.67, 390)(259.9, 16.67, 390)(260, 16.67, 390)
Case 2Solution time1.11 s2.32 s3.07 s
Iteration number234161
Feasibility error2.71 × 10−51.25 × 10−55.93 × 10−8
ConvergenceSuccessfulSuccessfulSuccessful
Terminal value(234.9, 16.67, 0)(234.9, 16.67, 0)(235, 16.67, 0)
Case 3Solution time10.17 s19.92 s38.68 s
ConvergenceSuccessful in all periodsSuccessful in all periodsSuccessful in all periods
Terminal valueAll periods are satisfiedAll periods are satisfiedAll periods are satisfied
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Huang, Y.; Chen, Q.; Zhang, L.; Zhang, Z.; Liu, X.; Tu, J. Dynamic Optimization of Variable Load Process for Combined Heat and Power Unit Based on Sequential Quadratic Programming and Interior Point Method Alternating Solution Method. Processes 2023, 11, 1660. https://doi.org/10.3390/pr11061660

AMA Style

Huang Y, Chen Q, Zhang L, Zhang Z, Liu X, Tu J. Dynamic Optimization of Variable Load Process for Combined Heat and Power Unit Based on Sequential Quadratic Programming and Interior Point Method Alternating Solution Method. Processes. 2023; 11(6):1660. https://doi.org/10.3390/pr11061660

Chicago/Turabian Style

Huang, Yuehua, Qing Chen, Lei Zhang, Zihao Zhang, Xingtao Liu, and Jintong Tu. 2023. "Dynamic Optimization of Variable Load Process for Combined Heat and Power Unit Based on Sequential Quadratic Programming and Interior Point Method Alternating Solution Method" Processes 11, no. 6: 1660. https://doi.org/10.3390/pr11061660

APA Style

Huang, Y., Chen, Q., Zhang, L., Zhang, Z., Liu, X., & Tu, J. (2023). Dynamic Optimization of Variable Load Process for Combined Heat and Power Unit Based on Sequential Quadratic Programming and Interior Point Method Alternating Solution Method. Processes, 11(6), 1660. https://doi.org/10.3390/pr11061660

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

Article Metrics

Back to TopTop