Commit 6685500f authored by Tomi J. Lindroos's avatar Tomi J. Lindroos
Browse files

un_commodity_in and un_commodity_out when reporting fuel costs

parent 4568eb9e
......@@ -36,9 +36,12 @@ loop(m,
= 1e-6 // Scaling to MEUR
* p_stepLengthNoReset(m, f, t)
* r_fuelUse(commodity, unit, f, t)
* [ // Fuel price
+ p_price(commodity, 'price')$p_price(commodity, 'useConstant')
+ ts_price(commodity, t)$p_price(commodity, 'useTimeSeries')
* [ // Fuel price when input
+ p_price(commodity, 'price')${p_price(commodity, 'useConstant') and un_commodity_in(unit, commodity)}
+ ts_price(commodity, t)${p_price(commodity, 'useTimeSeries') and un_commodity_in(unit, commodity)}
// Fuel price when output
- p_price(commodity, 'price')${p_price(commodity, 'useConstant') and un_commodity_out(unit, commodity)}
- ts_price(commodity, t)${p_price(commodity, 'useTimeSeries') and un_commodity_out(unit, commodity)}
// Emission costs
+ sum(emission, p_unitEmissionCost(unit, commodity, emission))
];
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment