Skip to content

Commit

Permalink
Review
Browse files Browse the repository at this point in the history
  • Loading branch information
flomnes committed Jan 30, 2025
1 parent bc11cb8 commit 7bce061
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,19 @@ ConstantCostProvider::ConstantCostProvider(const ThermalCluster& cluster):
{
}

double ConstantCostProvider::getOperatingCost([[maybe_unused]] uint serieIndex,
uint hourInTheYear) const
double ConstantCostProvider::getOperatingCost(uint /*serieIndex*/, uint hourInTheYear) const
{
const auto* modCost = cluster.modulation[thermalModulationCost];
return cluster.marginalCost * modCost[hourInTheYear];
}

double ConstantCostProvider::getMarginalCost([[maybe_unused]] uint serieIndex,
uint hourInTheYear) const
double ConstantCostProvider::getMarginalCost(uint /*serieIndex*/, uint hourInTheYear) const
{
const double mod = cluster.modulation[Data::thermalModulationCost][hourInTheYear];
return cluster.marginalCost * mod;
}

double ConstantCostProvider::getMarketBidCost(uint hourInTheYear, [[maybe_unused]] uint year) const
double ConstantCostProvider::getMarketBidCost(uint hourInTheYear, uint /*year*/) const
{
const double mod = cluster.modulation[thermalModulationMarketBid][hourInTheYear];
return cluster.marketBidCost * mod;
Expand Down
4 changes: 2 additions & 2 deletions src/solver/simulation/common-hydro-remix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ std::vector<double> extractLoadForCurrentWeek(const Data::Area& area,
const unsigned int firstHourOfWeek)
{
std::vector<double> load_to_return(HOURS_IN_WEEK, 0.);
for (unsigned int h = 0; h < HOURS_IN_WEEK; h++)
for (unsigned int h = 0; h < HOURS_IN_WEEK; ++h)
{
load_to_return[h] = area.load.series.getColumn(year)[h + firstHourOfWeek];
}
Expand All @@ -255,7 +255,7 @@ std::vector<double> extractHydroPmin(const Data::Area& area,
{
// area->hydro.series->mingen.timeSeries
std::vector<double> hydroPmin(HOURS_IN_WEEK, 0.);
for (unsigned int h = 0; h < HOURS_IN_WEEK; h++)
for (unsigned int h = 0; h < HOURS_IN_WEEK; ++h)
{
hydroPmin[h] = area.hydro.series->mingen.getColumn(year)[h + firstHourOfWeek];
}
Expand Down

0 comments on commit 7bce061

Please sign in to comment.