项目作者: stephane-caron

项目描述 :
智能电网的能耗调度算法
高级语言: Python
项目地址: git://github.com/stephane-caron/smart-grid-scheduling.git
创建时间: 2014-04-25T10:29:09Z
项目社区:https://github.com/stephane-caron/smart-grid-scheduling

开源协议:GNU General Public License v2.0

下载


DR StartComp

License
Status

DR StratComp stands for Demand-Response Strategies Comparator. Its purpose is
to assess the efficiency of different energy-consumption scheduling algorithms
in a smart power grid. This is the code associated with the paper
Incentive-based Energy Consumption Scheduling Algorithms for the Smart
Grid
. I wrote it in
2010 during my internship with Pr George Kesidis at Penn State University.

Installation

DR StratComp requires Python 2.4+ with the matplotlib library. Execution goes
through the main.py file:

  1. % python main.py

Look at the source code to find the different default scenarii available.

Writing your own test case

Format of the input files is rather loose. First four lines describe (in that
order) the values of L, the number of slots, C0 (constant cost) and C1 (overage
part of the cost function). Lines should look like this:

  1. L = 3000
  2. nb_slots = 36
  3. C0 = 2.8e-6
  4. C1 = 2.8e-8

Anyway you can add anything you want after you specified the values of the
parameters. Hence, the following syntax is allowed (and recommanded):

  1. L = 3000 kW
  2. nb_slots = 36 slots (10 min/slot)
  3. C0 = 2.8e-6 $/kW/s (slope 1 in the BC Hydro model)
  4. C1 = 2.8e-8 $/kW^2/s

Total duration is 6 hours (you can change it in scheduling.Settings.T). Energy
units are up to the test file, yet kW should be preferred. Please note that C0
and C1 must use second as “time component” of their units (this has an
incidence on the way costs are computed in scheduling.py).

Rest of the file describes the jobs. Next line indicates the number P of task
“packs”. Each of the P following lines describe a pack, and consist in two
integers and a floating point number, respectively the number of jobs, their
duration (in time slots) and their instant cost (in whatever unit you chose for
L), e.g.

  1. 5
  2. 1 15 462.24
  3. 2 30 132.12
  4. 10 10 56.42
  5. 10 20 17.51
  6. 20 10 19.18