Commit 1a6207a0 authored by Tomi J. Lindroos's avatar Tomi J. Lindroos
Browse files

fixing div by 0 if unit has 0 output capacity

parent e903d7e8
......@@ -153,6 +153,7 @@ loop(m,
/ [
+ p_unit(unit, 'outputCapacityTotal')${p_unit(unit, 'outputCapacityTotal') > 0}
+ p_unit(unit, 'unitOutputCapacityTotal')${not p_unit(unit, 'outputCapacityTotal') > 0}
+ 1${p_unit(unit, 'unitOutputCapacityTotal') + p_unit(unit, 'outputCapacityTotal') = 0}
] // END /
* [
+ sum(un_commodity(unit, node), r_uFuelEmissionCost(node, unit, f, t))
......
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