from .generator import Generator


class EconomicDispatch:
    def __init__(self):
        self.generators = dict()
        self.load = float  # extend it to pd.Series to consider multiple steps

    def add_generator(self, generator: Generator):
        self.generators[generator.id] = generator

    def add_load(self, load: float):
        self.load = load

e22ba915c454790ecb9d62f7262fc4c3e8369805
<mask token>


class EconomicDispatch:
    <mask token>
    <mask token>

    def add_load(self, load: float):
        self.load = load

<mask token>


class EconomicDispatch:
    <mask token>

    def add_generator(self, generator: Generator):
        self.generators[generator.id] = generator

    def add_load(self, load: float):
        self.load = load

<mask token>


class EconomicDispatch:

    def __init__(self):
        self.generators = dict()
        self.load = float

    def add_generator(self, generator: Generator):
        self.generators[generator.id] = generator

    def add_load(self, load: float):
        self.load = load

from .generator import Generator


class EconomicDispatch:

    def __init__(self):
        self.generators = dict()
        self.load = float

    def add_generator(self, generator: Generator):
        self.generators[generator.id] = generator

    def add_load(self, load: float):
        self.load = load

from .generator import Generator


class EconomicDispatch:
    def __init__(self):
        self.generators = dict()
        self.load = float  # extend it to pd.Series to consider multiple steps

    def add_generator(self, generator: Generator):
        self.generators[generator.id] = generator

    def add_load(self, load: float):
        self.load = load
