TemoaProject / temoa

Tools for Energy Model Optimization and Analysis
http://temoacloud.com
GNU General Public License v2.0
84 stars 48 forks source link

Add Emission Pricing Feature #57

Closed SutubraResearch closed 11 months ago

SutubraResearch commented 11 months ago

This PR adds an emissions pricing feature to Temoa.

Users can now specify an emissions price in the "CostEmissions" table. This table is indexed by regions, year and emission commodity.

The objective function is updated to include the cost of emissions. This is done in a similar way to the variable costs, only the total activity of processes are multiplied by [EmissionActivity * CostEmissions] (over the proper indices) instead of [CostVariable]. The associated costs are also reported in the results database under the "Output_Costs" table, similar to other reported costs.

The docstring of the "TotalCost_rule" function has been updated to reflect these changes.

This has been tested on databases using both perfect foresight and myopic runs.