Skip to content

Commit

Permalink
Fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
flomnes committed Dec 17, 2024
1 parent 62deaa9 commit 0d7aa3f
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/solver/variable/economy/priceCSR.h
Original file line number Diff line number Diff line change
Expand Up @@ -232,20 +232,16 @@ class PriceCSR : public Variable::IVariable<PriceCSR<NextT>, NextT, VCardPriceCS

void hourForEachArea(State& state, unsigned int numSpace)
{
// Marginal Price
// Note: The marginal price provided by the solver is negative
// (naming convention).
// IF UNSP. ENR CSR == 0, MRG. PRICE CSR = MRG. PRICE
// ELSE, MRG. PRICE CSR = “Unsupplied Energy Cost”

// MRG. PRICE CSR = “Unsupplied Energy Cost” ( “Unsupplied Energy Cost’ in Antares IF

// after adq patch and DTG MRG netting UNSP. ENR CSR =/=0 ) MRG. PRICE CSR = MRG.
// PRICE_org (== “MRG. PRICE” before any adq patch IF after adq patch AND DTG MRG
// netting UNSP. ENR CSR = 0 )
auto isLow = [](double x) { return ::fabs(x) < 1; };

if (isLow(
state.hourlyResults->ValeursHorairesDeDefaillancePositiveCSR[state.hourInTheWeek]))
{
// Note: The marginal price provided by the solver is negative
// (naming convention).
pValuesForTheCurrentYear[numSpace][state.hourInTheYear]
= -state.hourlyResults->CoutsMarginauxHoraires[state.hourInTheWeek];
}
Expand Down

0 comments on commit 0d7aa3f

Please sign in to comment.