With growing analysis capabilities of pandapower, we have added many additional parameters for the different elements. Some of them are added when creating an empty network, others are not considered as part of the core data structure, and we add them on the fly.
All power flow parameters are mandatory and added by default. For other analysis, certain columns have to be added:
Until now our philosphy has been that these columns do not exist in the data frames, but are created if they are specified in the element creation. So creating a gen with minimum active power for OPF:
pp.create_gen(net, min_p_mw=10)
adds the column is added to the data frame. The downside of that is that the user does not see which columns need to be specified, because they are not in the data frame until they are actually specified. My suggestion would be to switch to a system where the columns that should be added are specified at empty_network_creation:
pp.create_empty_network(add_opf_parameters=True)
or
net = pp.create_empty_network()
pp.add_opf_parameters(net)
With growing analysis capabilities of pandapower, we have added many additional parameters for the different elements. Some of them are added when creating an empty network, others are not considered as part of the core data structure, and we add them on the fly.
All power flow parameters are mandatory and added by default. For other analysis, certain columns have to be added:
Until now our philosphy has been that these columns do not exist in the data frames, but are created if they are specified in the element creation. So creating a gen with minimum active power for OPF:
pp.create_gen(net, min_p_mw=10)adds the column is added to the data frame. The downside of that is that the user does not see which columns need to be specified, because they are not in the data frame until they are actually specified. My suggestion would be to switch to a system where the columns that should be added are specified at empty_network_creation:
or