def test_runpair_summary(regtest):
    pair = RunPair(baseline, withCCS, reference)
    regtest.write(pair.summary(["Baseline", "High CCS", "difference"]))
# encoding: utf-8
#
# (c) Minh Ha-Duong  2017
# [email protected]
# Creative Commons Attribution-ShareAlike 4.0 International
#
"""Assess the scenarios."""

import sys

from plan_baseline import baseline
from plan_with_ccs import withCCS
from parameter_reference import reference

from Run import RunPair

if __name__ == '__main__':
    if (len(sys.argv) == 2) and (sys.argv[1] == "summarize"):
        PAIR = RunPair(baseline, withCCS, reference)
        print(PAIR.summary(["Baseline", "High CCS", "difference"]))
Beispiel #3
0
# encoding: utf-8
#
# (c) Minh Ha-Duong  2018
# [email protected]
# Creative Commons Attribution-ShareAlike 4.0 International
#
"""Compare the baseline vs. the more gas scenario.

Coal and gas are costed at domestic prices.
"""

import sys

from plan_baseline import baseline
from plan_more_gas import moreGas
from parameter_reference import reference

from Run import RunPair

if __name__ == '__main__':
    if (len(sys.argv) == 2) and (sys.argv[1] == "summarize"):
        PAIR = RunPair(baseline, moreGas, reference)
        print(PAIR.summary(["Baseline", "More gas", "difference"]))
Beispiel #4
0
loCCS_variable_operating_cost = reference.variable_operating_cost.copy()
loCCS_variable_operating_cost["CoalCCS"] *= discountor(0.018)
loCCS_variable_operating_cost["GasCCS"] *= discountor(0.018)
loCCS_variable_operating_cost["BioCCS"] *= discountor(0.018)

LOCCSCOST = reference._replace(
    construction_cost=loCCS_construction_cost,
    fixed_operating_cost=loCCS_fixed_operating_cost,
    variable_operating_cost=loCCS_variable_operating_cost)
LOCCSCOST.__doc__ = "CCS construction and OM costs fall by 1.8% per year."

ENSEMBLE = [
    reference, HIDISCOUNT, LODISCOUNT, HICARBONPRICE, LOCOALPRICE, LOCCSCOST
]

RUNPAIRS = [RunPair(baseline, withCCS, parameter) for parameter in ENSEMBLE]

if __name__ == '__main__':
    if (len(sys.argv) == 2) and (sys.argv[1] == "summarize"):
        print("""
******************************************
***       Ensemble of Results          ***
******************************************
""")
        for runpair in RUNPAIRS:
            print(runpair.summary(["BAU", "ALT", "difference"]), "\n\n")

#@timefunc
#def speedtest():
#    for runpair in RUNPAIRS:
#        runpair.summary(["BAU", "ALT", "difference"])