Old data structures waste memory space
Leonhard-B opened this issue · comments
The pyomo ConcreteModel holds the data from the excel sheet twice. First loaded data is saved as a pandas DataFrame (e.g. prob.commodity). Then the DataFrame is converted into a dictionary (e.g. prob.commodity_dict). At the moment the DataFrame is barely used since the dictionary provides faster item search. Removing the DataFrames could decrease the size of the pyomo model und thus save memory space.