Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 8.6.9 #2263

Open
wants to merge 8 commits into
base: release/8.6.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/centos7.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ env:
GITHUB_TOKEN: ${{ github.token }}
IS_RELEASE: ${{ github.event_name == 'release' && github.event.action == 'created' }}
IS_PUSH: ${{ github.event_name == 'push' }}
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true

jobs:

Expand Down
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 3.14) # FetchContent_MakeAvailable
# Version
set(ANTARES_VERSION_HI 8)
set(ANTARES_VERSION_LO 6)
set(ANTARES_VERSION_REVISION 8)
set(ANTARES_VERSION_REVISION 9)
set(ANTARES_VERSION_YEAR 2024)

project(antares
Expand Down
24 changes: 14 additions & 10 deletions src/libs/antares/study/parts/short-term-storage/properties.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
*/

#include <antares/logs.h>
#include <boost/algorithm/string/case_conv.hpp>

#include <stdexcept>

#include "properties.h"
Expand All @@ -35,15 +37,15 @@
namespace Antares::Data::ShortTermStorage
{
const std::map<std::string, enum Group> Properties::ST_STORAGE_PROPERTY_GROUP_ENUM
= {{"PSP_open", Group::PSP_open},
{"PSP_closed", Group::PSP_closed},
{"Pondage", Group::Pondage},
{"Battery", Group::Battery},
{"Other1", Group::Other1},
{"Other2", Group::Other2},
{"Other3", Group::Other3},
{"Other4", Group::Other4},
{"Other5", Group::Other5}};
= {{"PSP_OPEN", Group::PSP_open},
{"PSP_CLOSED", Group::PSP_closed},
{"PONDAGE", Group::Pondage},
{"BATTERY", Group::Battery},
{"OTHER1", Group::Other1},
{"OTHER2", Group::Other2},
{"OTHER3", Group::Other3},
{"OTHER4", Group::Other4},
{"OTHER5", Group::Other5}};

unsigned int groupIndex(Group group)
{
Expand Down Expand Up @@ -106,7 +108,9 @@ bool Properties::loadKey(const IniFile::Property* p)

if (p->key == "group")
{
if (auto it = Properties::ST_STORAGE_PROPERTY_GROUP_ENUM.find(p->value.c_str());
std::string groupUpper = p->value.c_str();
boost::to_upper(groupUpper);
if (auto it = Properties::ST_STORAGE_PROPERTY_GROUP_ENUM.find(groupUpper);
it != Properties::ST_STORAGE_PROPERTY_GROUP_ENUM.end())
{
this->group = it->second;
Expand Down
14 changes: 0 additions & 14 deletions src/solver/misc/options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,20 +54,6 @@ using namespace Yuni;
using namespace Antares;
using namespace Antares::Data;

static std::string availableOrToolsSolversString()
{
const std::list<std::string> availableSolverList = getAvailableOrtoolsSolverName();
std::string availableSolverListStr;
for (auto it = availableSolverList.begin(); it != availableSolverList.end(); it++)
{
availableSolverListStr += *it + ";";
}
// Remove last semicolumn
if (!availableSolverListStr.empty())
availableSolverListStr.pop_back();
return availableSolverListStr;
}

std::unique_ptr<GetOpt::Parser> CreateParser(Settings& settings,
Antares::Data::StudyLoadOptions& options)
{
Expand Down
6 changes: 3 additions & 3 deletions src/solver/optimisation/post_process_commands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -263,9 +263,9 @@ double CurtailmentSharingPostProcessCmd::calculateDensNewAndTotalLmrViolation()
const auto& scratchpad = area_list_[Area]->scratchpad[thread_number_];
double dtgMrg = scratchpad.dispatchableGenerationMargin[hour];
// write down densNew values for all the hours
problemeHebdo_->ResultatsHoraires[Area].ValeursHorairesDENS[hour]
= std::max(0.0, densNew - dtgMrg);
;
problemeHebdo_->ResultatsHoraires[Area].ValeursHorairesDENS[hour] = std::max(
0.0,
densNew);
// copy spilled Energy values into spilled Energy values after CSR
problemeHebdo_->ResultatsHoraires[Area].ValeursHorairesSpilledEnergyAfterCSR[hour]
= problemeHebdo_->ResultatsHoraires[Area]
Expand Down
13 changes: 13 additions & 0 deletions src/solver/utils/ortools_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,19 @@ std::list<std::string> getAvailableOrtoolsSolverName()
return result;
}

std::string availableOrToolsSolversString()
{
const std::list<std::string> availableSolverList = getAvailableOrtoolsSolverName();
std::ostringstream solvers;
for (const std::string& avail: availableSolverList)
{
bool last = &avail == &availableSolverList.back();
std::string sep = last ? "." : ", ";
solvers << avail << sep;
}
return solvers.str();
}

MPSolver* MPSolverFactory(const Antares::Optimization::PROBLEME_SIMPLEXE_NOMME* probleme,
const std::string& solverName)
{
Expand Down
7 changes: 7 additions & 0 deletions src/solver/utils/ortools_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@ void ORTOOLS_EcrireJeuDeDonneesLineaireAuFormatMPS(MPSolver* solver,
*/
std::list<std::string> getAvailableOrtoolsSolverName();

/*!
* \brief Return a single string containing all solvers available, separated by a ", " and ending
* with a ".".
*
*/
std::string availableOrToolsSolversString();

/*!
* \brief Create a MPSolver with correct linear or mixed variant
*
Expand Down
1 change: 1 addition & 0 deletions src/tools/batchrun/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ set(BATCHRUN_LIBS
libantares-core
libantares-core-calendar
yuni-static-core
utils
${CMAKE_THREADS_LIBS_INIT}
)

Expand Down
Loading
Loading