|
Antares Xpansion
Investment simulations for Antares studies
|
Classes | |
| class | InvalidCandidates |
| class | InvalidTrajectoryConstraint |
| class | InvalidTreeStructure |
Public Member Functions | |
| __init__ (self, Path input_file) | |
| verify_tree_probabilities (self) | |
| verify_tree_investment_dates (self) | |
| verify_nodes_candidates_types (self) | |
| verify_constraint_variable_reference (self) | |
| verify_nodes_candidates_match_with_study (self) | |
| verify_candidates_span_continuous_subtree (self) | |
| run_all_verification (self) | |
| set_nodes_parents_names (self) | |
| compute_node_full_probability (self) | |
| compute_node_duration (self) | |
| set_all_candidates (self) | |
| expand_all_keyword_in_constraints (self) | |
| detect_fully_decommed_candidates (self) | |
| add_delta_costs_fully_decommed_candidate (self, dict master_merger_info) | |
| parse_trajectory_user_file (self) | |
| print (self) | |
| write_merger_json (self, Path output_file) | |
| get_root_study (self) | |
Public Attributes | |
| input_file = input_file | |
| Set[str] | all_candidates = set() |
| Dict[str, Set[str]] | candidate_appears_in_nodes = dict() |
| Set[str] | all_nodes = set() |
| Optional[Tree] | tree = None |
| dict | nodes = {} |
| Optional[GlobalData] | global_data = None |
| dict | candidates_types_costs = {} |
| list | constraints = [] |
| dict | initial_capacities = {} |
| Optional[GlobalData] | all_nodes = self.global_data.studies.get(node_name) |
| dict | all_nodes = self.nodes[node].candidate_to_type.keys() |
Parsing, verification and translation of the user input data.
| user_input_translation.UserInputTranslator.add_delta_costs_fully_decommed_candidate | ( | self, | |
| dict | master_merger_info ) |
Given an already generated output master_merger_info dict, We need to manually add the costs of the delta variables for the node where a candidate is fully decommissioned and disappears from the study.
| user_input_translation.UserInputTranslator.compute_node_duration | ( | self | ) |
After parsing the nodes and tree, compute the node's duration from the next investment date / end of horizon date
| user_input_translation.UserInputTranslator.compute_node_full_probability | ( | self | ) |
After parsing the tree and the node's, add the node's full probability to its data
| user_input_translation.UserInputTranslator.detect_fully_decommed_candidates | ( | self | ) |
Returns a list of pairs (candidate, node_where_candidate_disappears) When a candidate disappears, we consider it fully decommissioned
| user_input_translation.UserInputTranslator.parse_trajectory_user_file | ( | self | ) |
Parse the data contained in the user's input file
| user_input_translation.UserInputTranslator.print | ( | self | ) |
Prints a summary of the data in the console.
| user_input_translation.UserInputTranslator.set_all_candidates | ( | self | ) |
Sets all candidates dicts and list from the parsed data.
| user_input_translation.UserInputTranslator.set_nodes_parents_names | ( | self | ) |
After parsing the tree and the nodes, go through the tree to write each node's parent in its data
| user_input_translation.UserInputTranslator.verify_candidates_span_continuous_subtree | ( | self | ) |
A candidate must appear in a continuous bit of the trajecotry tree : can only appear and eventually disappear once.
| user_input_translation.UserInputTranslator.verify_constraint_variable_reference | ( | self | ) |
Verifies the the constraints reference existing variable.