The invention relates to the technical field of rain and
sewage diversion, in particular to a rain and
sewage diversion optimization method based on combination of
terrain gravity and a
pipe network, in the rain and
sewage diversion optimization method, slope calculation, flow
gradient analysis and section resistance matching are combined, a rain and sewage
mixed flow trend and a pipeline full flow section are accurately recognized, drainage capacity distribution is optimized, and the rain and sewage diversion efficiency is improved. According to the method, a slope imbalance section and a
discharge capacity difference area can be recognized in advance
through transmission capacity calculation and flow velocity
gradient analysis, data support is provided for
load distribution optimization, a Markov switching
system is combined with flow direction transfer rate calculation and pressure fluctuation analysis, the
system adjusts the flow direction based on dynamic changes of different
discharge modes, and the flow direction transfer rate calculation and pressure fluctuation analysis are combined. The influence of burst flow
impact is reduced, a dynamic flow direction adjusting strategy is constructed through a
hidden Markov model, self-
adaptive matching is formed between flow direction
change analysis and a diversion transfer strategy, the accuracy of rainwater and sewage diversion is improved, regulation and
control error calculation is combined with flow direction equilibrium adjustment, and setting of switching points and overflow adjusting parameters is more flexible.