The invention relates to the technical field of mobile charging and discharging control, and particularly discloses a bidirectional
energy control and
grid connection method of a mobile charging and discharging
system supporting V2G (Vehicle-to-Grid), in which V2G: Vehile-to-Grid, a vehicle is connected to a
power grid. The method comprises the steps of collecting multi-
source data of a battery state, a
power grid operation state and
renewable energy output, and performing preprocessing such as filtering and coordinate transformation on the multi-
source data to evaluate a current
safe operation boundary of a
system; based on the operation boundary, calculating target charging and discharging power of the
system by adopting a dynamic periodic
model predictive control (MPC)
algorithm; and in response to a grid-connected request, starting a grid-connected
control flow according to the target charging and discharging power. Zero-
impact smooth
grid connection under the dynamic boundary condition is achieved, a source-load pulse synchronous counteracting
mechanism based on flow direction hedging is provided, the traditional peak shifting thinking is broken, source and load attribute vehicle pulse synchronous conduction is forcibly controlled, direct self-balance of
internal energy of a system is achieved, and power
ripple oscillation of a
power grid side is eliminated.