|
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 (const std::string &constraints_file_path, std::shared_ptr< ProblemGenerationLog::ProblemGenerationLogger > logger) | |
| AdditionalConstraintsReader from an inifile. | |
| const std::map< std::string, std::string > & | getVariablesSection () |
| return the section defining the binary variables to add | |
| const std::set< std::string > & | getSections () const |
| returns the set of the names of sections defined in the file | |
| const std::map< std::string, std::string > & | getSection (const std::string §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 |
| const std::map< std::string, std::string > & AdditionalConstraintsReader::getSection | ( | const std::string & | sectionName_p | ) | const |
returns a section
| sectionName_p | String name of the section to return |
| if | the section does not exist |
| const std::set< std::string > & 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