Antares Xpansion
Investment simulations for Antares studies
Loading...
Searching...
No Matches
ProblemGeneration Class Reference
Inheritance diagram for ProblemGeneration:
ProblemGenerationSpyAndMock

Public Member Functions

 ProblemGeneration (ProblemGenerationOptions &options)
 
virtual void performAntaresSimulation (const std::filesystem::path &study_dir)
 
std::filesystem::path updateProblems ()
 

Public Attributes

const ProblemGenerationOptionsoptions_
 

Protected Member Functions

void loadProblemsFromAntares (const std::filesystem::path &study_dir, const std::filesystem::path &simulation_dir, ProblemGenerationLog::ProblemGenerationLogger *logger)
 

Protected Attributes

ConfigurationManager configuration_manager_
 
ConfigurationManager::ConfigDirectories directories_
 

Member Function Documentation

◆ performAntaresSimulation()

void ProblemGeneration::performAntaresSimulation ( const std::filesystem::path & study_dir)
virtual

Antares simulator allocate a lot of memory Even if there is no memory leak not all freed memory become available. Allocator or OS may cache some memory to reuse it With malloc_trim(0) we free all memory that is not used anymore to be reclaimed by the program It is necessary to avoid allocating Xpansion memory on top of the unavailable memory from simulator


The documentation for this class was generated from the following files: