Hello, I wanted to build a model using the electricalline and electricalbus objects. After some testing I realised the electricalline objects are not able to work with bidirectional flows. By bidirectional flows I mean diametrically opposed flows, that are able to repesent an energy flow from Bus A to Bus B and from Bus B to Bus A. After analysing the code I was quite confused, because I found the following codeline:
self.bidirectional = True
This codeline is part of the code for the electricalline object:
class ElectricalLine(Flow):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.reactance = sequence(kwargs.get('reactance', 0.00001))
# set input / output flow values to -1 by default if not set by user
if self.nonconvex is not None:
raise ValueError(
("Attribute `nonconvex` must be None for " +
"component `ElectricalLine` from {} to {}!").format(
self.input, self.output))
if self.min is None:
self.min = -1
# to be used in grouping for all bidi flows
self.bidirectional = True
def constraint_group(self):
return ElectricalLineBlock
Does anyone know what bidirectional stands for if not for bidirectional flows?
Thanks, Philipp