Commit dddeecc6 authored by Juha Kiviluoma's avatar Juha Kiviluoma
Browse files

Solving issue #27. Allows to set v_gen for the first time step of the first...

Solving issue #27. Allows to set v_gen for the first time step of the first solve (e.g. t000000). Use useInitialGeneration and initialGeneration in p_gnu to get this to work.
parent f28b72a3
......@@ -249,6 +249,8 @@ param_gnn "Set of possible data parameters for grid, node, node (nodal interconn
param_gnu "Set of possible data parameters for grid, node, unit" /
maxGen "Maximum output capacity (MW)"
maxCons "Maximum loading capacity (MW)"
useInitialGeneration "A flag to indicate whether to fix generation for the first time step (binary)"
initialGeneration "Initial generation/consumption of the unit in the first time step (MW)"
conversionFactor "Conversion factor for inputs or outputs (for changing the unit of measurement)"
doNotOutput "Flag for inputs that are not included in the output commodities"
cV "Reduction in primary output when increasing secondary output, e.g. reduction of electricity generation due to heat generation in extraction CHP (MWh_e/MWh_h)"
......@@ -275,8 +277,8 @@ param_unit "Set of possible data parameters for units" /
outputCapacityTotal "Output capacity of the unit, calculated by summing all the outputs together by default, unless defined in data"
unitOutputCapacityTotal "Output capacity of the unit, calculated by summing all the subunit output sizes together by default"
availability "Availability of given energy conversion technology (p.u.)"
useInitialOnlineStatus "A flag to fix the online status of a unit for the first time step"
initialOnlineStatus "Initial online status of the unit in the first time step (binary)"
useInitialOnlineStatus "A flag to fix the online status of a unit for the first time step (binary)"
initialOnlineStatus "Initial online status of the unit in the first time step (0-1)"
omCosts "Variable operation and maintenance costs (EUR/MWh)"
startCostCold "Variable start-up costs for cold starts excluding fuel costs (EUR/MW)"
startCostWarm "Variable start-up costs for warm starts excluding fuel costs (EUR/MW)"
......
......@@ -410,15 +410,17 @@ loop(mft_start(mSolve, f, t),
= ts_node(grid, node, 'reference', f, t) // NOTE!!! ts_node_ doesn't contain initial values so using raw data instead.
* p_gnBoundaryPropertiesForStates(grid, node, 'reference', 'multiplier');
// Initial online status for units
v_online_MIP.fx(unit, f, t)${ p_unit(unit, 'useInitialOnlineStatus') and uft_onlineMIP(unit, f, t+1) //sets online status for one time step before the first solve
}
// Initial online status for units
v_online_MIP.fx(unit, f, t)${p_unit(unit, 'useInitialOnlineStatus') and uft_onlineMIP(unit, f, t+1)} //sets online status for one time step before the first solve
= p_unit(unit, 'initialOnlineStatus');
v_online_LP.fx(unit, f, t)${p_unit(unit, 'useInitialOnlineStatus') and uft_onlineLP(unit, f, t+1)
}
v_online_LP.fx(unit, f, t)${p_unit(unit, 'useInitialOnlineStatus') and uft_onlineLP(unit, f, t+1)}
= p_unit(unit, 'initialOnlineStatus');
// Initial generation for units
v_gen.fx(grid, node, unit, f, t)${p_gnu(grid, node, unit, 'useInitialGeneration')}
= p_gnu(grid, node, unit, 'initialGeneration');
else // For all other solves, fix the initial state values based on previous results.
......
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