Skip to content

Commit

Permalink
vcpkg
Browse files Browse the repository at this point in the history
  • Loading branch information
h-fournier committed Jan 8, 2025
1 parent 6333550 commit ab844ac
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ struct MaxMRGinput
{
double* spillage = nullptr;
double* dens = nullptr;
double* hydroGeneration = nullptr;
std::vector<double> hydroGeneration;
Antares::Data::TimeSeries* maxHourlyGenPower = nullptr;
double* dtgMargin = nullptr;
unsigned int hourInYear = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,11 @@ void localBuildAnnualSurveyReport(SurveyResults& results,
{
auto reserveName = results.data.area->reserveParticipationIndexMaps()
.LTStorage.get(i);
results.variableCaption = "LongTermStorage_" + reserveName; // VCardType::Caption();
results.variableCaption = reserveName
+ "_LongTermStorage"; // VCardType::Caption();
results.variableUnit = VCardType::Unit();
pValuesForTheCurrentYear[numSpace][0].template buildAnnualSurveyReport<VCardType>(
results, fileLevel, precision);
pValuesForTheCurrentYear[numSpace][i]
.template buildAnnualSurveyReport<VCardType>(results, fileLevel, precision);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -271,11 +271,11 @@ class ReserveParticipationBySTStorage
&& results.data.area->reserveParticipationIndexMaps()
.STStorageClusters.size()) // Bimap is not empty
{
auto [clusterName, reserveName] = results.data.area
auto [reserveName, clusterName] = results.data.area
->reserveParticipationIndexMaps()
.STStorageClusters.get(i);
// Write the data for the current year
results.variableCaption = clusterName + "_" + reserveName; // VCardType::Caption();
results.variableCaption = reserveName + "_" + clusterName; // VCardType::Caption();
results.variableUnit = VCardType::Unit();
pValuesForTheCurrentYear[numSpace][i].template buildAnnualSurveyReport<VCardType>(
results, fileLevel, precision);
Expand Down
5 changes: 1 addition & 4 deletions src/solver/variable/max-mrg-utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,11 @@ MaxMrgDataFactory::MaxMrgDataFactory(const State& state, unsigned int numSpace):
numSpace_(numSpace),
weeklyResults_(state.problemeHebdo->ResultatsHoraires[state.area->index])
{
std::vector<double> hydroGeneration;
hydroGeneration.reserve(weeklyResults_.HydroUsage.size());
std::transform(weeklyResults_.HydroUsage.begin(),
weeklyResults_.HydroUsage.end(),
std::back_inserter(hydroGeneration),
std::back_inserter(maxMRGinput_.hydroGeneration),
[](const OPTIMAL_HYDRO_USAGE& s) { return s.TurbinageHoraire; });

maxMRGinput_.hydroGeneration = hydroGeneration.data();
maxMRGinput_.maxHourlyGenPower = &state_.area->hydro.series->maxHourlyGenPower;
maxMRGinput_.dtgMargin = state_.area->scratchpad[numSpace].dispatchableGenerationMargin;
maxMRGinput_.hourInYear = state.hourInTheYear;
Expand Down
6 changes: 3 additions & 3 deletions src/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "antares-simulator",
"version-string": "9.2.0",
"builtin-baseline": "9484a57dd560b89f0a583be08af6753611c57fd5",
"builtin-baseline": "b322364f06308bdd24823f9d8f03fe0cc86fd46f",
"vcpkg-configuration": {
"overlay-ports": [
"./ports"
Expand All @@ -21,11 +21,11 @@
},
{
"name": "boost-test",
"version>=": "1.81.0"
"version>=": "1.86.0"
},
{
"name": "boost-core",
"version>=": "1.81.0"
"version>=": "1.86.0"
},
{
"name": "minizip-ng",
Expand Down
2 changes: 1 addition & 1 deletion vcpkg
Submodule vcpkg updated 8078 files

0 comments on commit ab844ac

Please sign in to comment.