decogo.solver.settings
Manages and stores solver settings
Classes
|
Class which stores all settings. |
- class decogo.solver.settings.Settings[source]
Class which stores all settings. The attributes in the are not set explicitly in the constructor method. Instead they are set dynamically from the dictionary with default values defined above. Non-default settings should be set in the file decogo.set, which should be located in the working directory of the script
- _settings_file_reader()[source]
Reads non-default settings from file decogo.set (located in the working directory). The file should should be in the following form:
setting1 = value1 setting2 = value2
- _validate_non_default_settings(settings)[source]
Validates nondefault settings, i.e. checks if the values of the settings are in the right form
- Parameters
settings (dict) – Dictionary of settings
- Raises
ValueError – Invalid for value for some setting
- get_minlp_solver_options()[source]
Gets MINLP solver options
- Returns
List of nondefault options for external solver
- Return type
list