# Economic dispatch of a single micro gas turbine under CHP operation with uncertain demands
This contains the source code for the article in the title, found in https://doi.org/10.1016/j.apenergy.2021.118391
```tex
@article{Sharf_2022,
title = {Economic dispatch of a single micro gas turbine under {CHP} operation with uncertain demands},
author = {Miel Sharf and Iliya Romm and Michael Palman and Daniel Zelazo and Beni Cukurel},
year = 2022,
month = {mar},
journal = {Applied Energy},
publisher = {Elsevier {BV}},
volume = 309,
pages = 118391,
doi = {10.1016/j.apenergy.2021.118391},
url = {https://doi.org/10.1016%2Fj.apenergy.2021.118391}
}
```
**Contributors (in chronological order): Johannes F. Rist, Miguel de Freitas Dias, Iliya Romm, Anoop Jain, Miel Sharf.**
See also:
> Johannes F. Rist, et al. "_Economic dispatch of a single micro-gas turbine under CHP operation._" Applied Energy 200 (2017): 1-18. [DOI](https://doi.org/10.1016/j.apenergy.2017.05.064)
---
## Preparations
1) All data is saved in the folder called "Data", one level above this code package. This folder must:
- ... contain a file with maps of a given turbine. This file must be called either `CHP.mat` or `sv_mappings.mat`.
- ... have about 3.5GB of free space available for the saving of intermediate results.
1) `nakeinterp1.c` must be [compiled to MEX](https://www.mathworks.com/help/matlab/ref/mex.html).
1) Some version of the [`progressbar` library](https://github.com/fsaxen/ParforProgMon) must be on the MATLAB path.
---
## Description of Functions and Scripts
<span style="font-size:9pt;">Below are the functions and scripts needed to generate the transition table and case studies. Entries are ordered according to the sequential steps needed to go generate the econ report.</span>
---
**`createTransitionNetwork`** - generates the transition table. Does not need any external data files. The script is divided into several parts:
1. Build a small adjacency matrix, defining all possibile transitions from all states `(t,S,V)` for a fixed `t`, `S=1,...,s` and `V = 0,...,v-1`.
2. Replicate the adjacency matrix `T` times, where `T` is the number of time instances in the economic dispatch problem.
3. Add the source and terminal nodes.
4. Build the graph from the composite adjacency matrix.
Here, the nodes are indexed as `1,2,3,...`:
- Node `1` is the source node.
- The next `(s*v+1)` nodes correspond to time `0`, followed by `(s*v+1)` nodes for time `1`, etc.
- This repeats a total of `T` times, culminating in a single terminal node.
Inside each layer, the nodes are organized as follows:
- The first node is the `'off'` state.
- The rest are ordered in the following way:
`(1,0),(2,0),...(s,0),(1,1),(2,1),...,(s,1),......,(1,v-1),(2,v-1),...,(s,v-1)`
- This script does not need to be run every time, only when changes to the structure of the network are required.
- All the other scripts use the output of this one, called `graph_24h.mat`.
---
**`assignAllCosts`** - assigns the costs of the edges for all days and buildings combinations. Also generates the demand profiles and electricity tariffs and stores them
in a matrix. Smoothing of the demand data is performed here.
All the data needed to run the shortest path solver is assembled and generated here and the results are
saved in the file `graph_data_all_days.mat`. This script uses the function `assignCosts`, which is the building block of edge cost assignment.
Furthermore, the function `transformAdjacencyMatrix` is used to conduct auxiliary computations, allowing for a faster computation.
---
**`generate_all_figures`** - runs the shortest path solver, plots figures for all days, buildings and fuel costs, and generates all the economic metrics.
---
**`econAnalysisTables`** - with the data generated from `generate_all_figures`, performs analysis of economic metrics and outputs the results as an Excel spreadsheet.
---
**`createDemandProfileVector`** - Johannes' code, returns the electricity and heat demand profiles (note that the large hotel is the first building).
---
**`createElectricityTariffProfile`** - generates the electricity tariff profiles based on the pfd references, for all buildings.
---
**`generateDemandCharges`** - computes the demand charges for a given building and day. Used by `generate_all_figures`.
---
**`extractPath`** - retrieves the solution of the shortest path algorithm as power and heat production profiles, as well as the fuel consumption at each time step.
Uses the function `nakeinterp1` to interpolate the production when `w` the speed is ramped up so that the final length of the vector is correct.
---
**`transformAdjacencyMatrix`** - transforms the transitions table generated by `createTransitionNetwork` into a more memory-efficient representation.
---
**`runAll`** - runs `assignAllCosts`, `generate_all_figures` and `econAnalysisTables` in sequence.
---
### Notes
If there is a need to speed up the code, some computations can be moved to the GPU.
没有合适的资源?快使用搜索试试~ 我知道了~
热电联产运行下单台微型燃气轮机的经济调度.zip

共54个文件
m:45个
sh:4个
txt:1个

1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 80 浏览量
2025-08-03
16:26:33
上传
评论
收藏 108KB ZIP 举报
温馨提示
1.版本:matlab2014a/2019b/2024b 2.附赠案例数据可直接运行。 3.代码特点:参数化编程、参数可方便更改、代码编程思路清晰、注释明细。 4.适用对象:计算机,电子信息工程、数学等专业的大学生课程设计、期末大作业和毕业设计。
资源推荐
资源详情
资源评论





















收起资源包目录


























































共 54 条
- 1
资源评论



海神之光
- 粉丝: 6w+
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助


最新资源
- QT6 直线 QLine 与 QLineF 的源代码带注释
- 微信股价预警提示【因微信封禁第三方 API,此项目停止维护】
- 新一代 Django 开发脚手架,支持微信及小程序登录功能
- 微信客户服务软件开发工具包
- 目标跟踪器全流程解析:从训练到部署的深度实践[DeepSort/其他+Yolov8/其他]
- Egret 引擎微信小游戏快速开发工具包
- 实现微信消息的自动发送功能
- 收藏的精品资料软件开发设计外文翻译文献.doc
- 项目1-网络安全概述.pptx
- 网络520情人节经典文案.docx
- 计算机专业毕业总结.doc
- 金属矿山实时数据采集传送软件开发设计.pdf
- 贸大复习提纲-项目管理.docx
- 算法初步复习.pptx
- 无线网络的搭建.doc
- 最新企业网站建设方案完整版.doc
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈



安全验证
文档复制为VIP权益,开通VIP直接复制
