当前位置:网站首页>MATLB | multi micro grid and distributed energy trading
MATLB | multi micro grid and distributed energy trading
2022-07-05 01:31:00 【Power system code】
Catalog
3、 ... and 、Matlab Code implementation

One 、 summary
In humans 、 Driven by the energy demand of industry and electric vehicles , Global energy demand is expected to grow steadily in the next few years ; More precisely , Expect to 2030 The annual growth will reach 40%. This demand is caused by the increasingly energy dependent lifestyle of mankind 、 The emergence of electric vehicles as major means of transportation and machines will promote the further automation of the process . In today's power grid , Energy is in centralized and large energy plants ( Micro grid energy generation ) Produced in ; then , Transmit energy to the final client , Usually through very long distances and through complex energy transmission grids . Such a complex structure , Less flexibility , It is difficult to adapt to the growth of demand , Thus, the probability of power grid instability and power failure is increased . The impact is huge , The recent power outages in Europe and North America caused millions of euros in losses, which proves this .
under these circumstances , Microgrid is becoming a promising energy solution , Among them, distributed ( reproducible ) Energy is meeting local needs . When local production cannot meet the requirements of microgrid , Purchase energy from major utility companies . Imagine that microgrid will provide many benefits , For example, the reliability of power transmission ( for example , Through the island ), Improve efficiency and sustainability by increasing the penetration of renewable energy , Scalability and investment delays , And provide auxiliary services . Island is one of the outstanding characteristics of microgrid , It refers to the ability to disconnect the microgrid load from the main grid , And it is specially powered by local energy . The main power grid cannot support the total demand and / Or when the operator detects some major grid problems that may degenerate into blackouts , The expected island will be implemented . In these cases , Microgrid can provide enough energy , At least basic power services can be guaranteed . Once the whole system stabilizes again , The connection to the main grid will be restored . obviously , These are important functions that may lead to instability .
In order to improve the capacity of smart grid , A typical method is to consider the exchange of energy between several microgrids , Even if these micro grids are isolated , That is, disconnect from the main power grid . In other words , There is energy flow in a group of continuous microgrids , However, there is no energy flow between the microgrid and the main grid . In this context , The optimal power flow problem has recently attracted considerable attention . for example ,Ochoa and Harrison The power flow problem of coordinated voltage control is jointly considered . perhaps , The work in relevant literature focuses on Unbalanced Distribution Networks , A method to solve the three-phase power flow problem based on Newton descent method is proposed . Because these centralized solutions may be affected by scalability and privacy issues , Generally speaking , The optimal power flow problem is nonconvex ; therefore , The exact solution may be too complex to calculate . therefore , Suboptimal methods are often used . Some literatures use the so-called multiplier alternating direction method ( Participate in solving power flow problems in a distributed way .、
In this paper , A distributed convex optimization framework is developed for energy trading between island microgrids . More specifically , This problem consists of several isolated island microgrids , These grids exchange energy flow through any topology . Due to scalability problems , In order to protect the local information of the cost function , Explained a Cost minimization algorithm based on sub gradient , The algorithm converges to the optimal solution within the actual number of iterations . Besides , This method allows a very intuitive economic explanation , from “ Supply and demand model ” and “ Market clearing ” The numerical results of the iteration of the algorithm are explained from the perspective of, and the convergence speed of the algorithm and the implementation cost of different network topologies are given .
Two 、 mathematical model
Consider a reason for M An interconnected microgrid
Multi microgrid system composed of , The microgrid operates in island mode . During each scheduling interval , Each microgrid
produce
Units of electricity and consumption
A unit of electrical energy . Besides , It is permissible to
towards
Sell electricity
(
), And from
(
) Buy energy
. then ,
The electric energy balance in the needs :

3、 ... and 、Matlab Code implementation
This article only shows part of the code , All code points here : We are shipping your work details

%% visualization
figure
plot(inputdata{:,end-2},uGcosts'/1000)
xlabel('E_4^{(c)} [MWh]')
ylabel(' cost [k$]')
grid
axis([0 12 0 1.4])
hold
plot(inputdata{:,end-2},C{1}(inputdata{:,1})/1000,'k--')
plot(inputdata{:,end-2},C{1}(inputdata{:,end-2})/1000,'k-.')
legend('uG1','uG2','uG3','uG4','disc. {1,2,3}','disc. 4','Location','northwest')
saveas(gcf, 'local_costs.png')
figure
hh = plotyy(inputdata{:,end-2},Sell4,inputdata{:,end-2},[Price Sell4.*Price]/1000);
xlabel('E_4^{(c)} [MWh]')
ylabel(hh(1),'[MWh]')
ylabel(hh(2),'[k$]')
grid
axis(hh(1),[0 12 0 3.6])
set(hh(1),'YTick',0:3)
axis(hh(2),[0 12 0 1.8])
set(hh(2),'YTick',0:.5:1.5)
legend(' Sold electricity ', ' The unit price ', ' earnings ')
saveas(gcf, 'trading.png')
Four 、 Result visualization



边栏推荐
- Compare whether two lists are equal
- Global and Chinese market of veterinary thermometers 2022-2028: Research Report on technology, participants, trends, market size and share
- Interesting practice of robot programming 16 synchronous positioning and map building (SLAM)
- 视频网站手绘
- 【纯音听力测试】基于MATLAB的纯音听力测试系统
- Nebula importer data import practice
- Great God developed the new H5 version of arXiv, saying goodbye to formula typography errors in one step, and mobile phones can also easily read literature
- Application and Optimization Practice of redis in vivo push platform
- Classification of performance tests (learning summary)
- Es uses collapsebuilder to de duplicate and return only a certain field
猜你喜欢

【LeetCode】88. Merge two ordered arrays

JS implementation determines whether the point is within the polygon range

Logstash、Fluentd、Fluent Bit、Vector? How to choose the appropriate open source log collector

Chia Tai International Futures: what is the master account and how to open it?

Wechat applet: wechat applet source code download new community system optimized version support agent member system function super high income

Introduction to redis (1)

I was beaten by the interviewer because I didn't understand the sorting

小程序容器技术与物联网 IoT 可以碰撞出什么样的火花

Behind the cluster listing, to what extent is the Chinese restaurant chain "rolled"?

微信小程序:全网独家小程序版本独立微信社群人脉
随机推荐
Kibana installation and configuration
[microprocessor] VHDL development of microprocessor based on FPGA
Wechat applet: independent background with distribution function, Yuelao office blind box for making friends
【海浪建模2】三维海浪建模以及海浪发电机建模matlab仿真
Armv8-a programming guide MMU (3)
Basic operation of database and table ----- phased test II
Wechat applet: exclusive applet version of the whole network, independent wechat community contacts
Yyds dry goods inventory kubernetes management business configuration methods? (08)
I was beaten by the interviewer because I didn't understand the sorting
【纯音听力测试】基于MATLAB的纯音听力测试系统
19. Delete the penultimate node of the linked list
A simple SSO unified login design
[FPGA tutorial case 10] design and implementation of complex multiplier based on Verilog
微信小程序:星宿UI V1.5 wordpress系统资讯资源博客下载小程序微信QQ双端源码支持wordpress二级分类 加载动画优化
JS implementation determines whether the point is within the polygon range
【微处理器】基于FPGA的微处理器VHDL开发
Wechat applet: wechat applet source code download new community system optimized version support agent member system function super high income
Global and Chinese markets of emergency rescue vessels (errv) 2022-2028: Research Report on technology, participants, trends, market size and share
Analysis and comparison of leetcode weekly race + acwing weekly race (t4/t3)
【大型电商项目开发】性能压测-优化-中间件对性能的影响-40