Antares Xpansion
Investment simulations for Antares studies
Loading...
Searching...
No Matches
driver_multiple_problem_gen.MultipleProblemGenerationDriver Class Reference

Classes

class  MultipleProblemGenerationExecutionError
 
class  MultipleProblemGenerationExeError
 

Public Member Functions

 __init__ (self, MultipleProblemGenerationData data)
 
 launch (self)
 

Public Attributes

 logger = step_logger(__name__, __class__.__name__)
 
 exe_path = data.exe_path
 
 input_root = data.input_root
 
 user_input_file = data.user_input_file
 
 memory = data.memory
 
 input_file = data.mpg_input
 
 node_to_custom_weights_file_file = data.mpg_weights
 
 node_to_add_constraints_file_file = data.mpg_constraints
 
 nodal_lp_info_file = data.mpg_nodal_lp_info_file
 
dict node_to_studies = {}
 
dict node_to_weights_file = {}
 
dict node_to_additional_constraints = {}
 
dict node_to_accurate_mode = {}
 
str formulation = "relaxed"
 
str settings = "settings"
 

Protected Member Functions

 _read_data_and_prepare_input_files (self)
 
 _write_input_files (self)
 
 _get_mpg_args (self)
 
 _get_mpg_command (self)
 
 _launch_executable (self)
 
 _update_study_settings (self, str node, Path study_path, bool memory_mode=True)
 
 _update_all_studies_settings (self)
 
 _revert_all_studies_settings (self)
 

Static Protected Member Functions

 _write_dict_to_file (Dict[str, Path] dict, Path filename)
 

Detailed Description

ONLY MEMORY MODE IS IMPLEMENTED FOR NOW

Member Function Documentation

◆ _read_data_and_prepare_input_files()

driver_multiple_problem_gen.MultipleProblemGenerationDriver._read_data_and_prepare_input_files ( self)
protected
Load the user input file and load into memory the list of studies.
Read the choice of formulation, either "relaxed" or "integer"
Load each study to get the path of the possible weights (resp. additional constraints) file.

◆ _revert_all_studies_settings()

driver_multiple_problem_gen.MultipleProblemGenerationDriver._revert_all_studies_settings ( self)
protected
Revert general data settings for all studies in the trajectory

◆ _update_all_studies_settings()

driver_multiple_problem_gen.MultipleProblemGenerationDriver._update_all_studies_settings ( self)
protected
Update general data settings for all studies in the trajectory

◆ _update_study_settings()

driver_multiple_problem_gen.MultipleProblemGenerationDriver._update_study_settings ( self,
str node,
Path study_path,
bool memory_mode = True )
protected
Update general data settings for a single study
Similar to XpansionDriver.update_study_settings

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