Antares Xpansion
Investment simulations for Antares studies
|
candidate exclusion constraints reading structure More...
#include <AdditionalConstraintsReader.h>
Public Member Functions | |
AdditionalConstraintsReader (std::shared_ptr< ProblemGenerationLog::ProblemGenerationLogger > logger) | |
AdditionalConstraintsReader (std::string const &constraints_file_path, std::shared_ptr< ProblemGenerationLog::ProblemGenerationLogger > logger) | |
AdditionalConstraintsReader from an inifile. | |
std::map< std::string, std::string > const & | getVariablesSection () |
return the section defining the binary variables to add | |
std::set< std::string > const & | getSections () const |
returns the set of the names of sections defined in the file | |
std::map< std::string, std::string > const & | getSection (std::string const §ionName_p) const |
returns a section | |
Static Public Attributes | |
static std::string | illegal_chars = " \n\r\t\f\v-+=:[]()" |
candidate exclusion constraints reading structure
|
inline |
default constructor for struct AdditionalConstraintsReader
|
explicit |
AdditionalConstraintsReader from an inifile.
constraints_file_path | String name of the file to use to read the additional constraints |
std::map< std::string, std::string > const & AdditionalConstraintsReader::getSection | ( | std::string const & | sectionName_p | ) | const |
returns a section
sectionName_p | String name of the section to return |
if | the section does not exist |
std::set< std::string > const & AdditionalConstraintsReader::getSections | ( | ) | const |
returns the set of the names of sections defined in the file
constraints_file_path | String name of the file to use to read the additional constraints |
|
static |
characters to forbid in variables and constraints names