Summary of the invention
The purpose of the present invention is a kind of Control Methods for Surge Prevention in Centrifugal Compressors based on prediction model, both effectively preventThe generation of centrifugal compressor surge, while also improving the operational efficiency of centrifugal compressor.
The technical scheme adopted by the invention is that a kind of Control Methods for Surge Prevention in Centrifugal Compressors based on prediction model,Specifically implement in accordance with the following steps:
Step 1, the operation data for acquiring centrifugal compressor system, and using the operation data as sample set, and to sampleThis collection is pre-processed;
Step 2, the prediction model for tentatively establishing centrifugal compressor;
Step 3, the prediction model by determining Model Parameter Optimization centrifugal compressor;
Step 4, by optimization after centrifugal compressor prediction model construct reference locus, the reference locus be from fromHeart compressor control system is currently practical to set out, to the curve of setting value transition;
The reference locus of control line restrictive condition is added in step 5, building;
Step 6 carries out feedback compensation to the reference locus in step 5, obtains prediction correcting model;
Step 7 carries out rolling optimization by control system output valve of the prediction correcting model to centrifugal compressor, obtains KThe outlet pressure of moment centrifugal compressor and the performance indicator of mass flow and control constraints condition.
The features of the present invention also characterized in that
In step 1, the collection process of the operation data of centrifugal compressor system is as follows:
Outlet pressure, mass flow, revolving speed and the outlet throttling valve opening of centrifugal compressor are recorded, and as sample set;Then the dissimilarity concentrated according to criterion Rejection of samples finally obtains 300 sample points as training set;In the control of centrifugal compressorInterference protection measure is added in processing procedure sequence, the dissimilarity then concentrated according to criterion Rejection of samples finally obtains 200 sample point conductsTest set.
In step 1, pretreatment is normalized to the sample set, processing mode is as follows:
In formula (1), xiValue is actually entered for control system.
Detailed process is as follows for step 2:
Step 2.1, establish the two of centrifugal compressor enter it is single go out model, including outlet pressure model and mass flow mouldType is as follows respectively:
M (t+1)=fm(m(t),m(t-1),Pd(t-2),u1(t),...,u1(t-m1,m),u2(t),...,u2(t-m2,m)) (3);
In formula (2) and formula (3), PdIt is the outlet pressure of centrifugal compressor, m is the mass flow of centrifugal compressor, controlInput u1And u2It is revolving speed and outlet throttling valve opening, m respectively1And m2It is the order of control input;
Step 2.2, to the m in each model1And m2Value be combined, every kind of combination is established respectively with training setThen model is verified with test set, find out the root-mean-square error RMSE of every kind of established model of combination:
In formula (4), y* is model output value, yiIt is system real output value, n is test sample number, and taking n is 200;
The prediction model of step 2.3, centrifugal compressor when taking root-mean-square error RMSE minimum:
M (t+1)=fm(m(t),m(t-1),Pd(t-2),u1(t),u1(t-1),u2(t)) (6);
In step 3, the optimization process of the prediction model of the centrifugal compressor is as follows:
Step 3.1, determine centrifugal compressor prediction model model parameter;
Step 3.2 after determining model parameter, introduces regression vector P in outlet pressure and the model of mass flow respectivelydAnd m, it obtains such as minor function:
In formula (7) and formula (8),wmFor with reference to coefficient, bm、For amount of bias;
Step 3.2 solves above-mentioned function, obtains the model of outlet pressure and mass flow, form are as follows:
In formula (9) and formula (10),For Lagrange duality variable,And km(m,mi) it is core letterNumber.
In step 3.1, the determination process of the model parameter is as follows:
(1) setting model parameter C and σ2Candidate Set be more open grid: { 2-5,2-3,...,215And { 2-9,2-7,...,211};
(2) times sample cross is carried out as parameter sample using the node in grid to examine, obtain maximum crosscheck precision,Corresponding grid node outlet pressure model is { 2-3,2-5, mass flow model is { 2-3,2-3};
(3) centered on the mesh point for obtaining maximum crosscheck precision, thinner grid is constructed in a certain range:Outlet pressure model meshes are { 2-5,2-4.5,...,2-1And { 2-7,2-6.5,...,2-3, mass flow model meshes are as follows: { 2-5,2-4.5,...,2-1And { 2-7,2-4.5,...,2-1};
(4) again using the node in grid as parameter sample, and 10 times of sample cross are carried out to it and are examined, finally obtain inspectionTest the C and σ of the highest outlet pressure model of precision2Value is { 2-3,2-6, the C and σ of mass flow model2Value is { 2-2.5,2-4.5}。
In step 4, the reference locus of the outlet pressure and mass flow is respectively as follows:
In formula (13) and formula (14), SPdAnd SmIt is the setting value of outlet pressure and mass flow, P respectivelyd(k) divide with m (k)It is not the reality output of k moment outlet pressure and mass flow, PD, r(k+i) it is exported for the reference of outlet pressure, mr(k+i) it isThe reference of mass flow exports, Tref,PdAnd Tref,mIt is the time constant of outlet pressure and mass flow reference locus respectively.
In step 5, the reference locus of control line restrictive condition is added are as follows:
In formula (16), mCL(Pd,r(k+i)) it indicates on the control line, when outlet pressure is Pd,r(k+i) mass flow when,Pd,CL(mr(k+i)) it indicates on the control line, when mass flow is mr(k+i) outlet pressure when, restrictive condition Pd,r(k+i)≤Pd,CL(mr(k+i)) indicate reference locus determined by operating point be located on control line or control line right side, restrictive condition Pd,r(k+I) > Pd,CL(mr(k+i)) indicate that operating point determined by reference locus is located on the left of control line.
In step 6, the prediction correcting model is as follows:
mp(k+i)=mmp(k+i)+km(m(k)-mmp(k)) (18);
In formula (17) and formula (18), k is Ratio for error modification, and d is prediction time domain;Pd(k) and m (k) is currently to be respectivelyThe practical outlet pressure of system and mass flow.
In step 7, the outlet pressure of the centrifugal compressor and the performance indicator difference of mass flow are as follows:
In formula (19) and formula (20),It is the weighting coefficient for predicting output error, j >=0 λ is the weighting coefficient of control amount, dIt is prediction time domain, Nu controls time domain, and d >=Nu >=1, v are the control output of centrifugal compressor revolving speed, ktIt is that speed control muffler control is defeatedOut;
The control constraints condition is as follows:
s.t. vmin≤x≤vmax(22),
0≤kt≤ 100 (23),
mmin≤mp(k+i)≤mmax(24),
PD, p(k+i)≤PD, CL(mp(k+i)) (26);
In formula (21)~(26), VminAnd VmaxThe respectively minimum and maximum revolving speed of centrifugal compressor;mminAnd mmaxRespectivelyIt is centrifugal compressor minimum and maximum mass flow, Pd,minAnd Pd,maxIt is centrifugal compressor minimum and maximum outlet pressure respectively,Pd,CL(mp(k+i)) it indicates on the control line when mass flow is mp(k+i) corresponding outlet pressure when;Formula (22) and formula(23) be actuator itself constraint condition, formula (24) and formula (25) are the constraint condition of centrifugal compressor working range, formulaIt (26) is anti-surge constraint condition.
The beneficial effects of the present invention are:
Control Methods for Surge Prevention in Centrifugal Compressors based on prediction model of the invention, by the way that centrifugal compressor to be decomposed intoTwo two enter single model out, and optimize two models by the double support vector regression methods of least square, and then building refers toTrack, and restrictive condition is added in reference locus, controller can judge in advance whether operating point crosses control line, so that byOperating point determined by reference locus is always positioned at the right side of control line, therefore can issue control action in advance and open refluxValve avoids surge, effectively increases the operational efficiency of centrifugal compressor.
Specific embodiment
The following describes the present invention in detail with reference to the accompanying drawings and specific embodiments.
A kind of Control Methods for Surge Prevention in Centrifugal Compressors based on prediction model of the present invention, as shown in Figure 1, specifically according to such asLower step is implemented:
Step 1, the operation data for acquiring centrifugal compressor system, and using the operation data as sample set, and to sampleThis collection is pre-processed;
In order to obtain the sample set for training and testing prediction model, it is necessary to acquire data and be located in advance to dataReason: during system trial run, by the operation data of configuration software recording compressed machine system, the sampling time is the second.Stop controlOutlet pressure controllers and mass flow controller in system processed, by changing the revolving speed of driver and opening for speed control mufflerDegree allows the operating point of centrifugal compressor to change on the right side of its surge line, while recording the outlet pressure of centrifugal compressor, quality streamAmount, revolving speed and outlet throttling valve opening, and as sample set;For training sample, any measure is not taken directly to record itData finally obtain 300 sample points as training set according to the dissimilarity that criterion Rejection of samples is concentrated;For test sample, it isIncrease reliability, in the control program of centrifugal compressor is added interference protection measure, then concentrates according to criterion Rejection of samplesDissimilarity, finally obtain 200 sample points as test set.
Since each input variable has different physical significances, variation range is different, it is therefore desirable to sample setPretreatment is normalized, processing mode is as follows:
In formula (1), xiValue is actually entered for control system.
Step 2, the prediction model for tentatively establishing centrifugal compressor;
Detailed process is as follows:
Step 2.1, the present invention are using revolving speed control outlet pressure, the control strategy of outlet throttling control mass flow, thenCentrifugal compressor is decomposed into two two and enters single model, respectively outlet pressure model and mass flow model out, the two modelsForm are as follows:
M (t+1)=fm(m(t),m(t-1),Pd(t-2),u1(t),...,u1(t-m1,m),u2(t),...,u2(t-m2,m)) (3);
In formula (2) and formula (3), PdIt is the outlet pressure of centrifugal compressor, m is the mass flow of centrifugal compressor, controlInput u1And u2It is revolving speed and outlet throttling valve opening, m respectively1And m2It is the order of control input.
Step 2.2, the order in order to determine control input, by the m of each model1And m2All possible value carries out groupIt closes, to the m in each model1And m2Value be combined, every kind of combination is respectively established with training set, then with surveyExamination collection is verified, and the root-mean-square error RMSE of every kind of established model of combination is found out:
In formula (4), y* is model output value, yiIt is system real output value, n is test sample number, and taking n is 200;
The prediction model of step 2.3, centrifugal compressor when taking root-mean-square error RMSE minimum:
M (t+1)=fm(m(t),m(t-1),Pd(t-2),u1(t),u1(t-1),u2(t)) (6)。
Step 3, the prediction model by determining Model Parameter Optimization centrifugal compressor;
Detailed process is as follows:
Step 3.1, determine centrifugal compressor prediction model model parameter;
(1) setting model parameter C and σ2Candidate Set be more open grid: { 2-5,2-3,...,215And { 2-9,2-7,...,211};
(2) times sample cross is carried out as parameter sample using the node in grid to examine, obtain maximum crosscheck precision,Corresponding grid node outlet pressure model is { 2-3,2-5, mass flow model is { 2-3,2-3};
(3) centered on the mesh point for obtaining maximum crosscheck precision, thinner grid is constructed in a certain range:Outlet pressure model meshes are { 2-5,2-4.5,...,2-1And { 2-7,2-6.5,...,2-3, mass flow model meshes are as follows: { 2-5,2-4.5,...,2-1And { 2-7,2-4.5,...,2-1};
(4) again using the node in grid as parameter sample, and 10 times of sample cross are carried out to it and are examined, finally obtain inspectionTest the C and σ of the highest outlet pressure model of precision2Value is { 2-3,2-6, the C and σ of mass flow model2Value is { 2-2.5,2-4.5}。
Step 3.2 after determining model parameter, introduces regression vector P in outlet pressure and the model of mass flow respectivelydAnd m,
Wherein, for outlet pressure model, regression vector are as follows:
Pd,i=(Pd(i),Pd(i-1)Pd(i-2),u1(i),u1(i-1),u2(i)) (27),
Its sample set are as follows: { Pd(i+1),Pd,i, i=1,2 ..., l;
For mass flow model, regression vector is
mi=(m (i), m (i-1), m (i-2), u1(i),u1(i-1),u2(i)) (28),
Its sample set are as follows: { m (i+1), mi, i=1,2 ..., l;
It is to obtain wait find a function such as minor function by model conversation:
In formula (7) and formula (8),wmFor with reference to coefficient, bm、For amount of bias;
Step 3.2 solves above-mentioned function, obtains the model of outlet pressure and mass flow, form are as follows:
In formula (9) and formula (10), αm,i、For Lagrange duality variable,And km(m,mi) it is core letterNumber.
Step 4 constructs reference locus by the prediction model of the centrifugal compressor after optimization, and reference locus is to press from centrifugationContracting machine control system is currently practical to set out, to the curve of setting value transition;
In Model Algorithmic contral, the desired output of control system is by from the currently practical output of system, to setting valueAs defined in the reference locus to smoothly transit;The k moment reference locus can by its following sampling instant value yrTo retouchIt states, it usually may be taken as the form of first order exponential variation.
Outlet pressure and the reference locus of mass flow are respectively as follows:
In formula (13) and formula (14), SPdAnd SmIt is the setting value of outlet pressure and mass flow, P respectivelyd(k) divide with m (k)It is not the reality output of k moment outlet pressure and mass flow, PD, r(k+i) it is exported for the reference of outlet pressure, mr(k+i) it isThe reference of mass flow exports, Tref,PdAnd Tref,mIt is the time constant of outlet pressure and mass flow reference locus respectively.
The reference locus of control line restrictive condition is added in step 5, building, so that the operating point determined by reference locus is begunFinal position is in the right side of control line, as shown in Figure 2.
Reference locus is the guidance to controller, and controller issues control action under the guidance of reference locus, to makeSystem output changes along reference locus.Therefore in the ginseng of centrifugal compressor anti-surge PREDICTIVE CONTROL middle outlet pressure and mass flowThe restrictive condition that control line is added in track is examined, the reference locus of control line restrictive condition is added are as follows:
In formula (16), mCL(Pd,r(k+i)) it indicates on the control line, when outlet pressure is Pd,r(k+i) mass flow when,Pd,CL(mr(k+i)) it indicates on the control line, when mass flow is mr(k+i) outlet pressure when, restrictive condition Pd,r(k+i)≤Pd,CL(mr(k+i)) indicate reference locus determined by operating point be located on control line or control line right side, restrictive condition Pd,r(k+I) > Pd,CL(mr(k+i)) indicate that operating point determined by reference locus is located on the left of control line.By being added in reference locusRestrictive condition, it can be ensured that the operating point determined by reference locus is always positioned at the right side of control line.
Step 6 carries out feedback compensation to the reference locus in step 5, obtains prediction correcting model;
Model prediction output and system certainly exist error between really exporting, and to guarantee to control precision, need to errorFeedback compensation is carried out, the prediction correcting model after feedback is added is as follows:
mp(k+i)=mmp(k+i)+km(m(k)-mmp(k)) (18);
In formula (17) and formula (18), k is Ratio for error modification, and d is prediction time domain;Pd(k) and m (k) is currently to be respectivelyThe practical outlet pressure of system and mass flow.
Step 7 carries out rolling optimization by control system output valve of the prediction correcting model to centrifugal compressor, obtains KThe outlet pressure of moment centrifugal compressor and the performance indicator of mass flow and control constraints condition.
Inside model algorithm, the Optimality Criteria at k moment is will be according to the following Nu control amount, so that future d momentPrediction output is as close as desired output determined by reference locus.
Rolling optimization exports energy with the smallest controller and obtains optimal control effect.
K moment, the outlet pressure of the centrifugal compressor and the performance indicator difference of mass flow are as follows:
In formula (19) and formula (20),It is the weighting coefficient for predicting output error, j >=0 λ is the weighting coefficient of control amount, dIt is prediction time domain, Nu controls time domain, and d >=Nu >=1, v are the control output of centrifugal compressor revolving speed, ktIt is that speed control muffler control is defeatedOut;
In view of the limitation of centrifugal compressor revolving speed, throttle valve opening, working range and control line, Anti-surge Control is askedTopic can be converted into the optimization problem of following control constraints condition:
s.t. vmin≤v≤vmax(22),
0≤kt≤ 100 (23),
mmin≤mp(k+i)≤mmax(24),
PD, p(k+i)≤PD, CL(mp(k+i)) (26);
In formula (21)~(26), VminAnd VmaxThe respectively minimum and maximum revolving speed of centrifugal compressor;mminAnd mmaxRespectivelyIt is centrifugal compressor minimum and maximum mass flow, Pd,minAnd Pd,maxIt is centrifugal compressor minimum and maximum outlet pressure respectively,Pd,CL(mp(k+i)) it indicates on the control line when mass flow is mp(k+i) corresponding outlet pressure when;Formula (22) and formula(23) be actuator itself constraint condition, formula (24) and formula (25) are the constraint condition of centrifugal compressor working range, formulaIt (26) is anti-surge constraint condition.
The present invention solves above-mentioned control constraints condition using MOUSE algorithm.This algorithm is similar to genetic algorithm,It is a kind of global random searching optimizing algorithm, but it does not generate filial generation by intersecting and making a variation, each filial generation is by only changingThe conventional search optimizing algorithm of one variable generates.The complexity of algorithm greatly reduces, and convergence rate greatly improves, energyEnough meet the requirement of control system real-time.
The present invention, using centrifugal compressor characteristic as the function of revolving speed, is controlled to model conveniently by adjusting revolving speedPressure lifting, mass flow are controlled by adjusting throttle valve opening change throttle valve resistance coefficient gas;Centrifugal compressor characteristicIt is obtained by experimental method.In order to protect centrifugal compressor, the present invention carries out anti-surge control using improved Greitzer modelSystem emulation, model form are as follows:
In formula (29) and formula (30), m is centrifugal compressor mass flow, and p is container pressure, p01It is inlet pressure, a01It isEntrance stagnation velocity of sound, Vp are container volume, LcIt is centrifugal compressor and duct length, A1It is area of reference, ktIt is throttle valve resistanceCoefficient, ψcIt is centrifugal compressor characteristic, it is the nonlinear function of centrifugal compressor mass flow and revolving speed, can be obtained by experiment?.
According to the point tested on resulting centrifugal compressor characteristic curve, while considering flow when centrifugal compressor surgeIt may be negative, centrifugal compressor performance curve is obtained using curve-fitting method:
(1) the crucial revolving speed for choosing several centrifugal compressors, takes rated speed, maximum (top) speed, minimum speed, volume hereinDetermine the crucial revolving speed of revolving speed, rated speed this 5;
(2) by changing outlet throttling valve opening under each crucial revolving speed, while paying attention to not allowing operating point to cross surgeLine obtains the relation curve of mass flow and outlet pressure, and here it is the performance curves of centrifugal compressor, and on every curveUniformly take 5 points;
(3) method for using curve matching, while considering that flow may be negative when surge occurs for centrifugal compressor, utilizeCubic curve simulates the performance curve of centrifugal compressor;
(4) point that performance curve upper outlet pressure obtains maximum value is connected, has just obtained the asthma of centrifugal compressorShake line, as shown in Figure 3.
The prediction time domain and control time domain of PREDICTIVE CONTROL are bigger, and the information about system future input and output is abundanter,Control effect is better, it is contemplated that calculation amount, prediction time domain and control time domain can not be too big, and the present invention takes control time domain Nu=3, predict that time domain d=4, each weight in performance indicator are taken as 0.5.
Since PREDICTIVE CONTROL can issue control action according to the output of prediction model in advance, actuator can reduceThe influence of regulating time, the smallest Con trolling index of two secondary controls input difference can reduce operating point fluctuation in addition, therefore can incite somebody to actionThe distance between control line and surge line of centrifugal compressor greatly shorten, and control line are set in away from the right side of surge line when emulationAt 5%, as shown in Figure 4.
Anti-surge actuator uses return valve, and valve opening signal joined 2 in order to simulate the characteristic of valve in practiceThe delay of second, shutdown signal joined delay in 8 seconds.
It is emulated first using variable limit flow method, changes the operating point of centrifugal compressor by C point in Fig. 5 to D point,As can be seen from Figure 5, new operating point is closer away from surge line, when operating point is changed near D point, due to controller overshoot etc. becauseThe influence of element, operating point are continued mobile to cross control line to the left.Since variable limit flow method can not judge in advanceThe running track of operating point, therefore only when control line is crossed in operating point, controller can just issue control action and open refluxValve, but due to the lag characteristic that return valve is opened, cause operating point not return in time on the right side of control line, and be to continue with to the leftIt has been moved across surge line, therefore has resulted in centrifugal compressor and surge has occurred.
It is emulated using the Control Methods for Surge Prevention in Centrifugal Compressors proposed by the present invention based on prediction model, by Fig. 5In as it can be seen that change centrifugal compressor operating point by C point in figure to D point, the centrifugal compressor anti-surge control based on prediction modelMethod processed, controller can judge whether operating point crosses control line in advance, therefore can issue in advance control action and open backValve is flowed, avoids surge, and overshoot is small, operating point variation is steady, makes centrifugal compressor steady operation in D point.