diff --git a/src/andromede/simulation/optimization.py b/src/andromede/simulation/optimization.py index 2052eccd..45805f86 100644 --- a/src/andromede/simulation/optimization.py +++ b/src/andromede/simulation/optimization.py @@ -735,10 +735,6 @@ def _create_variables(self) -> None: model_var.upper_bound, component.id, self.context ) - # Set solver var name - # Externally, for the Solver, this variable will have a full name - # Internally, it will be indexed by a structure that takes into account - # the component id, variable name, timestep and scenario separately var_name: str = f"{model_var.name}" component_prefix = f"{component.id}_" if component.id else "" @@ -769,6 +765,7 @@ def _create_variables(self) -> None: else "" ) + # Set solver var name # Externally, for the Solver, this variable will have a full name # Internally, it will be indexed by a structure that into account # the component id, variable name, timestep and scenario separately