Commit d4689f54 authored by DaKi404's avatar DaKi404
Browse files

Add timeseries in q_unitEqualityConstraint and q_unitGreaterThanConstraint

Timeseries option tested for the wastewater input data. Testing successful, but might require additional testing with power system input
parent fb6bcd58
......@@ -1966,12 +1966,16 @@ q_conversionSOS2IntermediateOutput(s_active(s), suft(effLambda(effGroup), unit,
q_unitEqualityConstraint(s_active(s), eq_constraint, uft(unit, f, t))
${ sft(s, f, t)
and sum(node$p_unitConstraintNode(unit, eq_constraint, node), 1)
and sum(node${p_unitConstraintNode(unit, eq_constraint, node, 'useConstant') or p_unitConstraintNode(unit, eq_constraint, node, 'useTimeseries')}, 1)
} ..
// Inputs and/or outputs multiplied by their coefficient
+ sum(gnu(grid, node, unit)$p_unitConstraintNode(unit, eq_constraint, node),
+ v_gen(grid, node, unit, s, f, t) * p_unitConstraintNode(unit, eq_constraint, node)
+ sum(gnu(grid, node, unit)$p_unitConstraintNode(unit, eq_constraint, node, 'useConstant'),
+ v_gen(grid, node, unit, s, f, t) * p_unitConstraintNode(unit, eq_constraint, node, 'coefficient')
)
+ sum(gnu(grid, node, unit)$p_unitConstraintNode(unit, eq_constraint, node, 'useTimeseries'),
+ v_gen(grid, node, unit, s, f, t) * ts_unitConstraintNode(unit, eq_constraint, node, f, t)
)
=E=
......@@ -1992,12 +1996,16 @@ q_unitEqualityConstraint(s_active(s), eq_constraint, uft(unit, f, t))
q_unitGreaterThanConstraint(s_active(s), gt_constraint, uft(unit, f, t))
${ sft(s, f, t)
and sum(node$p_unitConstraintNode(unit, gt_constraint, node), 1)
and sum(node${p_unitConstraintNode(unit, gt_constraint, node, 'useConstant') or p_unitConstraintNode(unit, gt_constraint, node, 'useTimeseries')}, 1)
} ..
// Inputs and/or outputs multiplied by their coefficient
+ sum(gnu(grid, node, unit)$p_unitConstraintNode(unit, gt_constraint, node),
+ v_gen(grid, node, unit, s, f, t) * p_unitConstraintNode(unit, gt_constraint, node)
+ sum(gnu(grid, node, unit)$p_unitConstraintNode(unit, gt_constraint, node, 'useConstant'),
+ v_gen(grid, node, unit, s, f, t) * p_unitConstraintNode(unit, gt_constraint, node, 'coefficient')
)
+ sum(gnu(grid, node, unit)$p_unitConstraintNode(unit, gt_constraint, node, 'useTimeseries'),
+ v_gen(grid, node, unit, s, f, t) * ts_unitConstraintNode(unit, gt_constraint, node, f, t)
)
=G=
......
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