Commit 339470bb authored by Topi Rasku's avatar Topi Rasku
Browse files

*r_totalObj* is now recorded separately for each *tSolve* in order to allow...

*r_totalObj* is now recorded separately for each *tSolve* in order to allow better diagnostics of how the simulation proceeded.
parent 378c552c
...@@ -24,7 +24,7 @@ Parameters ...@@ -24,7 +24,7 @@ Parameters
* --- Cost Results ------------------------------------------------------------ * --- Cost Results ------------------------------------------------------------
// Total Objective Function // Total Objective Function
r_totalObj "Total cost over the simulation (EUR)" / 0 / r_totalObj(t) "Total accumulated value of the objective function over all solves"
// Unit Operational Cost Components // Unit Operational Cost Components
r_gnuVOMCost(grid, node, unit, f, t) "Variable O&M costs for energy outputs (MEUR)" r_gnuVOMCost(grid, node, unit, f, t) "Variable O&M costs for energy outputs (MEUR)"
...@@ -166,6 +166,7 @@ Scalar r_realizedLast "Order of last realised time step"; ...@@ -166,6 +166,7 @@ Scalar r_realizedLast "Order of last realised time step";
* --- Initialize a few of the results arrays, required by model structure ----- * --- Initialize a few of the results arrays, required by model structure -----
Option clear = r_totalObj;
Option clear = r_state; Option clear = r_state;
Option clear = r_online; Option clear = r_online;
Option clear = r_reserve; Option clear = r_reserve;
...@@ -179,6 +180,7 @@ Option clear = r_invest; ...@@ -179,6 +180,7 @@ Option clear = r_invest;
Option clear = r_investTransfer; Option clear = r_investTransfer;
Option clear = r_qResDemand; Option clear = r_qResDemand;
Option clear = r_resDemandLargestInfeedUnit; Option clear = r_resDemandLargestInfeedUnit;
* ============================================================================= * =============================================================================
* --- Diagnostics Results Arrays ---------------------------------------------- * --- Diagnostics Results Arrays ----------------------------------------------
* ============================================================================= * =============================================================================
......
...@@ -124,8 +124,8 @@ loop(sft_realized(s, f, t), ...@@ -124,8 +124,8 @@ loop(sft_realized(s, f, t),
); );
// Total Objective function // Total Objective function
r_totalObj r_totalObj(tSolve)
= r_totalObj + v_obj.l = r_totalObj(tSolve - mSettings(mSolve, 't_jump')) + v_obj.l
; ;
// q_balance marginal values // q_balance marginal values
......
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