{% 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 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}}

Consider a half-hour H, and a contract with rate scripts. The rate at H is determined by:

start_date
A date
multiplier
A number
constant
A number

If H <= start_date, then the rate script at H is used without any change. If H > start_date, then the rate script at start_date is used to obtain the value of the rate at H by doing (rate_at_start_date * multiplier + constant).

Template Scenario Properties
{
	'bsuos' : {
			'start_date': datetime(2011, 1, 1),
			'multiplier': 1,
			'constant': 0,
	},

	'ccl': {
			'start_date': datetime(2014, 10, 1),
			'multiplier': 1,
			'constant': 0,
	},

	'aahedc': {
			'start_date': datetime(2012, 4, 1),
			'multiplier': 0,
			'constant': 0.00091361,
	},

	'scenario_start': datetime(2011, 1, 1),  # Date or None for this month
	'scenario_duration': 1,  # Number of months
	'resolution': 'hh',  # 'hh' or 'month'
																
	'kw_changes':
	# CSV format with the following columns
	# Site Code, Type ('used' or 'generated') , Date (yyyy-mm-dd), Multiplier
	"""
	CI005, used, 2011-01-01, 0.5
	CI005, generated, 2011-01-01, 2
	""",
}
{% endblock %}