The present application claims rights and interests to Chinese Patent Application No. 202111441452.X filed on Nov. 30, 2021, which is incorporated by reference in its entirety.
The present invention relates to the technical field of UPS control, in particular to an electrical state quantity prediction method and system and a control method and system for a UPS system.
As shown in
Bypass working mode: the UPS fails or a bypass switch is manually enabled, a grid directly supplies power to a load, and the UPS is latched.
UPS power supply mode: when both the mains supply and the UPS are normal, the bypass switch is turned off, a T-type three-level rectifier works in a PWM rectifier state, a T-type three-level inverter works in a PWM inverter state, the grid supplies power to the load through the rectifier and the inverter, and a three-level bidirectional direct current converter obtains power from a direct current bus to charge a battery.
Battery power supply mode: when the mains supply is abnormal and the UPS is normal, the electromagnetic bypass switch is turned off, the T-type three-level rectifier module is latched, and the battery may directly supply power to the load through the bidirectional direct current converter and the T-type three-level inverter module, so as to ensure continuity of power supply.
Battery feed mode: when both the mains supply and the UPS are normal, the load does not require power supply, and an SOC (State of Charge) of the battery is >0.8, the electromagnetic bypass switch is turned off, the T-type three-level inverter module is latched, and the battery feeds electric energy back to the grid through the bidirectional direct current converter and the T-type three-level rectifier (working in an inversion mode). In recent years, the UPS has been developing towards large scales and modularization, and system integration and central monitoring have also been continuously improved. However, with continuous expansion of the market, use of the UPS is also increasing, loads are increasingly complex, and the uninterruptible power supply needs to adapt to increasingly harsh conditions, which put forward many adjustment requirements for the UPS. How to achieve high-power applications of the UPS and improve operating efficiency and control stability of UPS systems is an important research topic in current development of UPS technology and industry.
The technical problem to be solved by the present invention is to provide an electrical state quantity prediction method and system and a control method and system for a UPS system in response to the shortcomings of the prior art, to solve problems of complex multi-converter control and low reliability in existing UPS systems.
To solve the above technical problem, the technical solution adopted by the present invention is:
An electrical state quantity prediction method for a UPS system includes:
a calculation formula for a predicted value ig(k+1) of alternating current output by a T-type three-level rectifier of the UPS system is:
a calculation formula for a reference value ur_ref(k) of alternating current voltage output by the T-type three-level rectifier of the UPS system is:
a calculation formula for a reference value ui_ref(k) of alternating current voltage output by a T-type three-level inverter of the UPS system is:
u
i_ref(k)=un(k);
a calculation formula for a predicted value u(k+1) of alternating current voltage of the UPS system is:
u(k+1)=u(k)ejωT
a calculation formula for a predicted value Ucn(k+1) of direct current side voltage stabilization capacitor of the UPS system is:
a calculation formula for a predicted value iL(k+1) of inductance current of a three-level three-phase direct current converter of the UPS system is:
where u(k) is alternating current voltage output by the T-type three-level rectifier, Ls is a value of filter inductance output by the T-type three-level rectifier, Ts is sampling interval time, RS is resistance of an output line of the UPS system, ig(k) is grid side current at sampling time k, and ug(k) is grid voltage at the sampling time k; ur_ref(k) is instruction voltage output by an alternating current side of the T-type three-level rectifier at the sampling time k, and irg_ref (k) is an instruction value of grid side current at the sampling time k; un(k) is a sampling value of rated load voltage at the sampling time k; ω is an angular frequency of a grid; Ucn(k+1) is a voltage value of a direct current side capacitor Cn of the T-type three-level rectifier at sampling time k+1, Ucn(k) is a voltage value of Cn at the sampling time k, and icn(k) is a value of current flowing through Cn at the sampling time k; UES is voltage of an energy storage battery, L is an inductance value of the three-level three-phase direct current converter of the UPS system, T1-T4 are output states of a switch tube of the three-level three-phase direct current converter, and iL(k) is an inductance current value of the three-level bidirectional direct current converter at the time k; n=1, 2; and ∥ represents a logical OR operation.
The present invention may predict an electrical state corresponding to each switch quantity, and facilitates overall optimization and control of the UPS system in a control process of the UPS system, thereby solving problems of complex multi-converter control and low reliability in existing UPS systems.
The present invention further provides an electrical state quantity prediction system for a UPS system. The prediction system includes a processor and a memory; the processor is used to execute a computer program stored in the memory; and the computer program is configured to execute the steps of the prediction method of the present invention.
The present invention further provides a control method for a UPS system, including: when the UPS system works in a UPS power supply mode, if a SOC of a battery ≥0.8, constructing an optimization function Q=J1+J2;
when the UPS system works in the UPS power supply mode, if the SOC of the battery <0.8, constructing an optimization function Q=J1+J2+J3;
when the UPS system works in a battery power supply mode, or when the UPS system works in a battery feed mode, if the SOC of the battery >0.2, constructing an optimization function Q=J2+J4;
where,
J
1
|u
rα_ref(k+1)−urα(k+1)|+|urβ_ref(k+1)−urβ(k+1)|+λ1|Uc1(k+1)−Uc2(k+1)|;
J
2
=|u
iα_ref(k+1)−uiα(k+1)|+|uiβ_ref(k+1)−uiβ(k+1)|;
J
3
=|U
dc_ref
−U
dc(k+1)|+|iL_ref−iL(k+1)|;
J
4
=|U
dc_ref
−U
dc(k+1)|+|iL_ref−iL(k+1)|+|λ2|Uc1(k+1)−Uc2(k+1)|;
urα(k+1) is a projection of alternating current voltage ur(k+1) output by a T-type three-level rectifier on an α-axis at sampling time k+1, and urα_ref(k+1) is a projection of a reference value ur_ref(k+1) of the alternating current voltage output by the T-type three-level rectifier on the α-axis; urβ(k+1) is a projection of the alternating current voltage ur(k+1) output by the T-type three-level rectifier on a β-axis at the sampling time k+1, and urβ_ref(k+1) is a projection of the reference value ur_ref(k+1) of the alternating current voltage output by the T-type three-level rectifier on the β-axis at the sampling time k+1; Uc1(k+1) and Uc2(k+1) represent voltage values of direct current side capacitors C1 and C2 of the T-type three-level rectifier at the sampling time k+1 respectively, uiα(k+1) is a projection of alternating current voltage ui(k+1) output by a T-type three-level inverter on the α-axis at the sampling time k+1, ui_ref(k+1) is a projection of a reference value ui_ref(k+1) of the alternating current voltage output by the T-type three-level inverter on the α-axis at the sampling time k+1, uiβ(k+1) is a projection of the reference value ui_ref(k+1) of the alternating current voltage output by the T-type three-level inverter on the β-axis at the sampling time k+1, uiβ_ref(k+1) is a projection of the reference value ui_ref(k+1) of the alternating current voltage output by the T-type three-level inverter on the β-axis, λ1 is a control weight of the T-type three-level rectifier, and λ2 is a control weight of a three-level three-phase direct current converter; iL_ref is an inductance current value of the T-type three-level three-phase direct current converter; Udc_ ref is an instruction value of direct current side voltage of the T-type three-level rectifier, and Udc(k+1) is a value of direct current side capacitor voltage at the time k+1; and
selecting an output quantity of each switch tube when the optimization function is minimum (1 represents on of the switch tube, and 0 represents off of the switch tube), and controlling on-off of the switch tube of the T-type three-level rectifier, the switch tube of the T-type three-level inverter, and the switch tube of the three-level three-phase direct current converter according to the output quantity of the corresponding switch tube;
where ur_ref(k+1) and ui_ref(k+1) are calculated according to the prediction method in the present invention, or calculated by using the prediction system in the present invention;
where ur_ref(k+1) and ui_ref(k+1) are calculated according to the electrical state quantity prediction method for a UPS system in the present invention, or calculated by using the electrical state quantity prediction system for a UPS system in the present invention.
The control method for a UPS system in the present invention has significant advantages over traditional control methods (PI control, current tracking control, etc.) in multi-terminal converter systems. Because a control object of the traditional control methods is mostly a system, such as an energy storage output port in a UPS, an input port of a UPS rectifier, or an output port of a UPS inverter, optimal switching control of each port may have mutual restriction, making it difficult to achieve comprehensive optimization. The control method for a UPS system in the present invention predicts in advance an electrical state corresponding to each switch quantity, and uses a comprehensive optimization function to achieve overall optimal control of a multi-port system, so there is no mutual restriction in optimal switching control of each port.
The control method of optimizing a switch quantity by using an overall objective function may implement a coordinated optimization function for multiple ports, and find, through the optimization function Q, a switch combination that can quickly approach an instruction value, so compared with traditional PI control, the response speed of the present invention is faster and the reliability is higher.
In the present invention, λ1+λ2=1, and direct current side balances of the T-type three-level rectifier and the three-phase direct current converter may restrict each other during control, so direct current side capacitor balance control of the converter is determined according to a power margin, where an overall system balance factor is 1, and λ1 and λ2 are weights of respective controllers and are set according to margins of the controllers. The setting of λ1+λ2=1 in the present invention may overcome the problem of mutual restriction between the direct current side balances of the T-type three-level rectifier and the three-phase direct current converter during control.
As an inventive concept, the present invention further provides a control system for a UPS system. The control system includes a processor and a memory; the processor is used to execute a computer program stored in the memory; and the computer program is configured to execute the steps of the control method in the present invention.
Compared with the prior art, beneficial effects of the present invention are as follows: a target optimization control function is constructed through MPC (Model Predictive Control), and cost values Q of the target optimization control function in various switch states are traversed to obtain optimal switch variables at each time, thereby improving work efficiency and operational stability of the UPS system. The present invention solves problems of complex cooperative control, difficult control optimization, and the like in a multi-converter system, improves work efficiency of a high-power UPS system and stability of the control system, and enables the high-power UPS system to be more widely used in various industrial applications.
Refer to
Because a grid is a three-phase system, and each phase has three output modes (P, N, 0), a total of 33=27 possible switching combined vectors (for example, NPN, 0P0, N0N, and the like) may occur in three-phase combinations.
Feed mode: when T2=1, a battery charges a voltage stabilization capacitor C2 on the direct current side; when T3=1, the battery charges a voltage stabilization capacitor C1 on the direct current side; when T2=T3=1, the battery charges an energy storage inductor; and when switch tubes are all switched off, the energy storage battery charges both the voltage stabilization capacitors.
Charging mode: when T1=1, the voltage stabilization capacitor C1 charges the battery; when T4=1, the voltage stabilization capacitor C2 charges the battery; when the switch tubes are all switched off, the battery charges the energy storage inductor; and when T1=T4=1, the voltage stabilization capacitors C1 and C2 jointly supply power to the battery.
A calculation method for an electrical state quantity predicted value of each converter in a UPS system is as follows: through the electrical state quantity prediction calculation, an electrical state quantity at time k+1 may be predicted according to an existing state quantity at time k and in combination with an electrical switch quantity state, and then an optimal switch quantity may be determined according to an optimization function.
In each optimization function calculation formula and electrical state quantity prediction calculation formula of the present invention, dimensions of parameters are not considered.
When the parameters are substituted into calculation, only values of the parameters are considered. A dimension corresponding to a voltage value is V, and a dimension corresponding to a current value is A.
A predicted value ig(k+1) of alternating current output by a rectifier is as follows:
where u(k) is alternating current voltage output by the rectifier, Ls is a value of filter inductance output by the UPS rectifier, Ts is sampling interval time, RS is resistance of an output line of the system, ig(k) is grid side current at sampling time k, and ug(k) is grid voltage at the sampling time k.
A reference value ur_ref(k) of the alternating current voltage output by the rectifier is as follows:
where ur_ref(k) is instruction voltage output by an alternating current side at the sampling time k, and irg_ref(k) is an instruction value of grid side current at the sampling time k.
A reference value ui_ref(k) of alternating current voltage output by an inverter is as follows:
u
i_ref(k)=un(k);
where un(k) is a sampling value of rated load voltage at the time k.
A predicted value u(k+1) of the alternating current voltage is calculated as follows:
u(k+1)=u(k)ejωT
where ω is an angular frequency of the system.
A predicted value Ucn(k+1) of direct current side voltage stabilization capacitor is as follows:
where Ucn(k+1) is a capacitor voltage value of Cn (n=1,2) at sampling time k+1, Ucn(k) is a capacitor voltage value of Cn (n=1,2) at the sampling time k, and icn(k) is a value of capacitor current flowing through Cn (n=1,2) at the sampling time k.
A predicted value iL(k+1) of inductance current in a three-level bidirectional direct current converter is as follows:
where UES is voltage of the energy storage battery, L is an inductance value of the three-level bidirectional direct current converter, T1-T4 are output states of a switch tube (1 indicates that the switch tube is closed, and 0 indicates that the switch tube is opened), Uc1(k) is a capacitor voltage value of C1 at the sampling time k, and Uc2(k) is a capacitor voltage value of C2 at the sampling time k. iL(k) is an inductance current value of the three-level bidirectional direct current converter at the time k.
Refer to
When the UPS works in a UPS power supply mode, an SOC of a battery is first detected.
1) When the SOC of the battery >0.8, a three-level bidirectional direct current converter works in a latched state, and the battery bypasses the system. A load is jointly powered by a rectifier and an inverter, and an optimization function is constructed as follows (the rectifier performs capacitor voltage balance control); if the optimization function Q is minimized, a balance of upper and lower capacitors C1 and C2 on a direct current side can be guaranteed, and control instructions can be accurately tracked.
J
1
|u
rα_ref(k+1)−urα(k+1)|+|urβ_ref(k+1)−urβ(k+1)|+λ1|Uc1(k+1)−Uc2(k+1)|;
J
2
=|u
iα_ref(k+1)−uiα(k+1)|+|uiβ_ref(k+1)−uiβ(k+1)|;
Q=J
1
+J
2;
In the above formulas, J1, J2, and Q are an optimization cost function of the rectifier, a target optimization quantity of the inverter, and a target optimization quantity of the system, respectively. urα(k+1) is a projection of alternating current voltage output by the rectifier on an α-axis at sampling time k+1, and urα_ref is a projection of an instruction value of the alternating current voltage output by the rectifier on the α-axis. urβ(k+1) is a projection of the alternating current voltage output by the rectifier on a β-axis at the sampling time k+1, and urβ_ref is a projection of the instruction value of the alternating current voltage output by the rectifier on the β-axis. Uc1(k+1) and Uc2(k+1) represent direct current voltage of direct current capacitors C1 and C2 at the sampling time k+1 respectively, uiα(k+1) is a projection of alternating current voltage output by the inverter on the α-axis at the sampling time k+1, and uiα_ref is a projection of an instruction value of the alternating current voltage output by the inverter on the α-axis. uiβ(k+1) is a projection of the alternating current voltage output by the inverter on the β-axis at the sampling time k+1, and uiβ_ref is a projection of the instruction value of the alternating current voltage output by the inverter on the β-axis. λ is a weight coefficient, a value of which determines a priority of a controlled variable in global optimization (λ1 is a control weight of the rectifier, and λ2 is a control weight of the direct current converter).
The α-axis and the β-axis are two coordinate axes of two-phase coordinate axes, and an expression for transforming three-phase alternating current voltage from static coordinate abc axis vectors to two-phase coordinate axes with two axes perpendicular to each other is as follows:
A controller needs to traverse and optimize on-off states of the rectifier and the inverter m=(27)2 times within a sampling period, and an on-off digital signal S op that forms a minimum cost function Q is selected.
2) When the SOC of the battery <0.8, the three-level bidirectional direct current converter works in a charging mode, and the battery is charged. The rectifier supplies power to the load and the battery, and an optimization function is constructed as follows (the rectifier performs capacitor voltage balance control): if the optimization function Q is minimized, a balance of the upper and lower capacitors C1 and C2 on the direct current side can be guaranteed, while both UPS output instructions and battery output current instructions can be accurately tracked.
J
1
|u
rα_ref(k+1)−urα(k+1)|+|urβ_ref(k+1)−urβ(k+1)|+λ1|Uc1(k+1)−Uc2(k+1)|;
J
2
=|u
iα_ref(k+1)−uiα(k+1)|+|uiβ_ref(k+1)−uiβ(k+1)|;
J
3
=|U
dc_ref
−U
dc(k+1)|+|iL_ref−iL(k+1)|;
Q=J
1
+J
2
+J
3;
Herein, iL_ref is an inductance current value of the three-level bidirectional direct current converter. Udc_ref is an instruction value of direct current side voltage, Udc(k+1) is a value of direct current side capacitor voltage at the time k+1, and the value is calculated by Udc(k+1)=Uc1(k+1)+Uc2(k+1).
In this case, the three-level bidirectional direct current converter has two working modes: S2=1, and [S2, S3]=1. The controller needs to traverse and optimize on-off states of the rectifier, the inverter and the direct current converter m=2*(27)2 times within a sampling period, and an on-off digital signal S op that forms a minimum cost function Q is selected.
When the UPS works in a battery power supply mode, the SOC of the battery is first detected.
If SOC<0.2, the UPS works in a latched state.
If 0.2<SOC, the battery enters an independent power supply mode, the battery supplies power to the load through the direct current converter and the inverter, and an optimization function is constructed as follows: if the optimization function Q is minimum (a value corresponding to the minimum Q is Qon) UPS output instructions can be accurately tracked.
J
2
=|u
iα_ref(k+1)−uiα(k+1)|+|uiβ_ref(k+1)−uiβ(k+1)|;
J
4
=|U
dc_ref
−U
dc(k+1)|+|iL_ref−iL(k+1)|+|λ2|Uc1(k+1)−Uc2(k+1)|;
Q=J
2
+J
4.
In this case, the three-level bidirectional direct current converter needs to control stability of the direct current side voltage and balance of the capacitors C1 and C2. There are eight working modes of voltage: S1=1, S2=1, S3=1, S4=1, [S1, S4]=1, [S2, S3]=1, and 0 (+, −).
The controller needs to traverse and optimize the on-off states of the inverter and the direct current converter m=8*27 times within a sampling period, and an on-off digital signal Sop that forms a minimum cost function Q is selected.
When the UPS works in a battery feed mode, the SOC of the battery is first detected.
If SOC<0.2, the UPS works in a latched state.
If 0.2<SOC, the battery enters an independent power supply mode, the battery feeds electric energy to a grid through the direct current converter and the rectifier (working in an inversion mode), and an optimization function is constructed as follows: if the optimization function Q is minimum, a UPS feed instruction can be accurately tracked.
J
1
|u
rα_ref(k+1)−urα(k+1)|+|urβ_ref(k+1)−urβ|;
J
4
=|U
dc_ref
−U
dc(k+1)|+|iL_ref−iL(k+1)|+|λ2|Uc1(k+1)−Uc2(k+1)|;
Q=J
2
+J
4.
In this case, the stability of the direct current side voltage of the three-level bidirectional direct current converter and balance of the capacitors C1 and C2 needs to be controlled. There are eight working modes of voltage: S1=1, S2=1, S3=1, S4=1, [S1, S4]=1, [S2, S3]=1, and 0 (+, −). 0 (+, −) indicates that the output of the converter is 0, + indicates that the battery charges an inductor L in a positive direction to store energy in the inductor L, and − indicates that the battery charges the inductor L in a negative direction to store energy in the inductor L.
The controller needs to traverse and optimize the on-off states of the inverter and the direct current converter m=8*27 times within a sampling period, and an on-off digital signal Qop that forms a minimum cost function Q is selected.
By PSim simulation, effectiveness and progressiveness of the control method provided by the present invention is verified.
Number | Date | Country | Kind |
---|---|---|---|
202111441452.X | Nov 2021 | CN | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/CN2022/099325 | 6/17/2022 | WO |