The invention discloses a
community-distribution network energy optimization method considering flexible resources and internal transactions, and the method comprises the steps: obtaining the internal transaction power of
community members through a
community internal production
consumer transaction model, obtaining the active power and reactive power of a production
consumer side through a community day-ahead optimization scheduling model, and obtaining the day-ahead active power and reactive power curves of the production
consumer side. The active and reactive power curves of the producer and the consumer during real-time operation are obtained through the active and reactive power flexibility boundary models, then the active and reactive power flexibility margins are obtained, and the
branch current violation amount, the node
voltage violation amount and the cost for
purchasing the flexible power are minimized through the power distribution network
system optimization model. According to the community-distribution network
energy management method, the violation amount of the community
electricity charge and the
voltage and current of the distribution network is reduced through resource sharing optimization, the community
electricity utilization cost can be effectively reduced, the
power factor and the operation stability are considered, and a safe, efficient and intelligent solution is provided for community-distribution network
energy management.