A list,

1 Definition of smart power grid Smart power grid is a new type of power grid based on the physical power grid, which integrates modern advanced sensing and measurement technology, communication technology, information technology, computer technology and control technology with the physical power grid. 1.1 Hardware foundation: Power grid and the integrated high-speed two-way communication network. 1.2 Software Foundation: Intelligent control technology refers to devices and algorithms for diagnosing power grid status, preventing power supply interruption and improving power quality disturbance.

2 Composition of smart grid Smart grid consists of many parts, which can be divided into: smart substation, smart distribution network, smart electricity meter, intelligent interaction terminal, intelligent dispatching, smart home appliances, smart power buildings, smart city power grid, smart power generation system, new energy storage system. It is built on the basis of integrated, high-speed two-way communication network, through the application of advanced sensing and measurement technology, advanced equipment technology, advanced control methods and advanced decision support system technology, to achieve the power grid reliable, safe, economic, efficient, environmentally friendly and safe to use. Key features include self-healing, energizing and including customers, defending against attacks, providing power quality that meets the needs of customers in the 21st century, allowing access to a wide variety of generation forms, enabling electricity markets, and optimizing the efficient operation of assets.

3 Definition of microgrid Micro-grid, also known as micro-grid, is a new network structure. It is a system unit composed of micropower, load, energy storage system and control device. Microgrid is an independent system composed of distributed power supply, which is generally connected to the large system through the connection line. Due to the unbalanced relationship between power supply and demand, microgrid can choose to operate with the main network in mutual supply or independently. Microgrid is an autonomous system that can realize self-control, protection and management. It can be connected to the external power grid or run in isolation. Microgrid is a concept relative to the traditional large power grid. It refers to a network composed of multiple distributed power sources and their related loads according to a certain topology structure and associated to the conventional power grid through static switches. The development and extension of microgrid can fully promote the large-scale access of distributed power and renewable energy, and realize the high reliable supply of various energy forms to load. It is an effective way to realize the active distribution network and the transition from traditional power grid to smart grid.

4 Composition of microgrid Microgrid is an independent system composed of distributed power supply. It is a small power generation and distribution system composed of distributed power supply, energy storage device, energy conversion device, related load, monitoring and protection devices. It is generally connected with the large system through the link line. Due to the imbalance between power supply and demand, the microgrid can choose to operate with the main network in mutual supply or independent operation. The power supply in microgrid is mostly distributed power supply with small capacity, that is, small unit with power electronic interface, including micro gas turbine, fuel cell, photovoltaic cell, small wind turbine and energy storage device such as supercapacitor, flywheel and battery. They are connected to the user side and have the characteristics of low cost, low voltage and low pollution.

5 Smart microgrid Smart microgrid can realize the two-way flow of information and electric energy between all nodes in the entire transmission and distribution process from distributed microgrids, power generation equipment groups to end users, so as to realize the digitalization, intelligentization and rapidness of the control process.

Ii. Source code

format long; % initialization conditions * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * % micro gas turbine maximum power MTMaxPower =5; % minimum power of micro gas turbine MTMinPower=1; % Maximum power input to microgrid GridMaxImportPower=250; % Minimum power input to microgrid GridMinImportPower=10; Energy storage maximum discharge power StorageMaxDischargingPower % =150; % Maximum charging power StorageMaxChargingPower=- 100.;

Max_Dt=300; % Maximum number of iterations300
D=72; % Dimension of search space (number of unknowns) N=600; % Number of particles600
s=1; % initialize population individuals (position and speed) ***********************for i=1:N
    for j=1:72
%         v(i,j)=randn;
        if j<25
        elseif j>24&&j<49
        elseif j>48&&j<73x(i,j)=StorageMaxChargingPower+rand()*(StorageMaxDischargingPower-StorageMaxChargingPower); End end % Calculates the fitness of each particle and initializes Pi and Pg****************for i=1:N p(i)=fitness(x(i,:),s); y(i,:)=x(i,:); % Pbest=fitness(x()1,:),s);
pg=x(1, :); %Pg is globally optimalfor i=2:N
    iffitness(x(i,:),s)<fitness(pg,s) Pbest=fitness(x(i,:),s); pg=x(i,:); % % global optimal update end end to enter the main loop * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *for t=1:Max_Dt
    for i=1:N w=w_max-(w_max-w_min)*t/Max_Dt; % inertia weight update c1=(0.52.5)*t/Max_Dt+2.5; Cognitive c2% = (2.50.5)*t/Max_Dt+0.5; % social awareness % w=0.7;
%         c1=2.05; % cognition % c2=2.05; % society know v (I, :) = v (I, :) + c1 * w * rand () * (y (I, :) - x (I, :)) + c2 * rand () * (pg - x (I, :));for m=1:72
        x(i,:)=x(i,:)+v(i,:); % for particle boundary processing *****************************for n=1:72
            if n<25
                   if x(i,n)<MTMinPower
                   elseif x(i,n)>MTMaxPower
            elseif n>24&&n<49
                    if x(i,n)<GridMinImportPower
                   elseif  x(i,n)>GridMaxImportPower
                    if x(i,n)<StorageMaxChargingPower
                   elseif x(i,n)>StorageMaxDischargingPower
                        delt(i,n)=0; End end end % Evaluate the particle, find the optimal value ******************if fitness(x(i,:),t)<p(i)
        if p(i)<Pbest
Copy the code

3. Operation results

Fourth, note

Version: 2014 a