{% extends "base.html" %} {% block title %} » Scenario Runner {% endblock %} {% block nav %} » Scenario Runner {% endblock %} {% block content %}

Scenarios

{% for scenario in scenarios %} {% set props = scenario.make_properties() %} {% endfor %}
Scenario Run View Edit scenario_start scenario_duration
{{scenario.name}} Run View [edit] {{props.scenario_start}} {{props.scenario_duration}}

Rates

{% for contract in db_contracts %} {% endfor %}
Pass-through Contract Rates
Contract Last Rate Script
Start Date Finish Date
{{contract.name}} {{contract.finish_rate_script.start_date|hh_format}} {{contract.finish_rate_script.finish_date|hh_format}}

Template Scenario Properties

{
  "scenario_start": 2011-01-01T00:00:00Z,  /* Date or null for this month */
  "scenario_duration": 1,  /* Number of months */


  /* Industry rates - those you can't edit in Chellow */

  "industry_rates": [
    {
      "contract_name": "ccl",
      "start_date": 2014-10-01T00:00:00Z,
      "finish_date": 2015-05-01T00:00:00Z,
      "script": {
        "ccl_gbp_per_msp_kwh": 0.00568}},

    {
      "contract_name": "aahedc",
      "start_date": 2015-01-01T00:00:00Z,
      "finish_date": 2016-09-04T00:00:00Z,
      "script": {
        "aahedc_gbp_per_gsp_kwh": 0.00023116}}],


  /* Local rates - those that you can edit in Chellow */

  "local_rates": [
    {
      "contract_id": 46,
      "start_date": 2014-10-01T00:00:00Z,
      "finish_date": 2015-05-01T00:00:00Z,
      "script": {
        "gbp_per_msp_kwh": 0.667}},

    {
      "contract_id": 3,
      "start_date": 2015-01-01T00:00:00Z,
      "finish_date": 2015-03-01T00:00:00Z,
      "script": {
        "gbp_per_gsp_kwh": 5.77}}],


  "era_maps": {
    2012-09-01T00:00:00Z: {
      "llfcs": {
        "20": {
          "409": "607",
          "090": "502"},
        "22": {
          "711": "003"}},
      "pcs": {
        "03": "00",
        "04": "00"},
			"cops": {
        "6c": "5"},
      "supplier_contracts": {
        74: 3,
        9: 51},
      "sc": 400}},


  /* HH data to use instead of the data in the database. For each site code,
     you can specify the hh data that's used, generated or parasitic on the
     site. */

  "hh_data": {

    /* For site code 12098 */

    "12098": {
      "used": "
        2017-10-04 19:00, 78.0
        2017-10-04 19:30, 74.8
        2017-10-04 20:00, 65.3",
      "generated": "
        2017-10-04 19:00, 8.0
        2017-10-04 19:30, 8.7
        2017-10-04 20:00, 8.5",
      "parasitic": "
        2017-10-04 19:00, 2.0
        2017-10-04 19:30, 2.1
        2017-10-04 20:00, 2.0"},

    /* For site code 59987 */

    "59987": {
      "generated": "
        2017-10-09 10:00, 3.0
        2017-10-09 10:30, 2.7
        2017-10-09 11:00, 3.5"}}}

HH Data

Default forecasting

Before the forecast_date Chellow uses data in the database (if any), and after that date it uses data from the same month but in the year before the forecast_date.

If a rate script isn't found for a particular date, then the most recent rate script is used. In the case of TNUoS TRIAD dates, years are added on to the dates in the rate script to bring it forward to the TRIAD year that's being calculated.

Virtual bills can include TRIAD estimates and actuals in a variety of ways. For example, a virtual bill may use TRIAD estimates for all months until triad dates are available for that financial year, in which case it switches to using the actual TRIAD for March.

Applying HH data in the scenario runner

Taking 'generated' as an example, for each half-hour Chellow will calculate the difference between the scenario_generated and the existing_generated. If scenario_generated >= existing_generated then any imported_net will be reduced first, then exported_net will be increased until all the difference is exhausted. Otherwise if scenario_generated < existing_generated then exported_net will be reduced first, and then imported_net will be increased. A similar approach is taken with used and parasitic kWh.

The method is the same for months after the forecast_date but with the existing_generated being found from the default forecast.

{% endblock %}