Skip to content

Commit

Permalink
Revise duality test setup
Browse files Browse the repository at this point in the history
  • Loading branch information
OFR-IIASA committed Jul 6, 2023
1 parent 0122339 commit 7d8ac40
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion message_ix/tests/test_feature_price_emission.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,21 @@ def add_many_tecs(scen, years, n=50):
"""add a range of dirty-to-clean technologies to the scenario"""
output_specs = ["node", "comm", "level", "year", "year"]

# tec: [emissions, var_cost, bound_activity_up]
# tec: [emission_factor, var_cost, bound_activity_up]
tecs = {
"tec1": [10, 5, 1],
"tec2": [-1, 10, 0.4],
"tec3": [-5, 200, 0.3],
"tec4": [-15, 1200, 0.2],
"tec5": [-50, 6000, 0.1],
}
tecs = {
"tec1": [10, 5, 1],
"tec2": [-10, 10, 0.4],
"tec3": [-12, 20, 0.3],
"tec4": [-14, 30, 0.2],
"tec5": [-16, 40, 0.1],
}

for t in tecs:
scen.add_set("technology", t)
Expand Down

0 comments on commit 7d8ac40

Please sign in to comment.