Skip to content

Commit

Permalink
Add capacity minimum
Browse files Browse the repository at this point in the history
  • Loading branch information
simnh committed Sep 22, 2020
1 parent 85a88d5 commit cb1ce4d
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion src/oemof/tabular/facades.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@ def _investment(self):
maximum=getattr(
self, "capacity_potential", float("+inf")
),
minimum=getattr(
self, "capacity_minimum", 0
),
existing=getattr(self, "capacity", 0),
)
else:
Expand Down Expand Up @@ -296,7 +299,8 @@ class Dispatchable(Source, Facade):
Edge/Flow class for possible arguments)
capacity_potential: numeric
Max install capacity if capacity is to be expanded
capacity_minimum: numeric
Minimum install capacity if capacity is to be expanded
The mathematical representations for this components are dependent on the
user defined attributes. If the capacity is fixed before
Expand Down Expand Up @@ -365,6 +369,8 @@ def __init__(self, *args, **kwargs):

self.capacity_cost = kwargs.get("capacity_cost")

self.capacity_minimum = kwargs.get("capacity_minimum")

self.expandable = bool(kwargs.get("expandable", False))

self.output_parameters = kwargs.get("output_parameters", {})
Expand Down Expand Up @@ -416,6 +422,8 @@ class Volatile(Source, Facade):
Edge/Flow class for possible arguments)
capacity_potential: numeric
Max install capacity if investment
capacity_minimum: numeric
Minimum install capacity if investment
expandable: boolean
True, if capacity can be expanded within optimization. Default: False.
Expand Down Expand Up @@ -479,6 +487,8 @@ def __init__(self, *args, **kwargs):

self.capacity_potential = kwargs.get("capacity_potential")

self.capacity_minimum = kwargs.get("capacity_minimum")

self.expandable = bool(kwargs.get("expandable", False))

self.marginal_cost = kwargs.get("marginal_cost", 0)
Expand Down Expand Up @@ -848,6 +858,8 @@ class Conversion(Transformer, Facade):
True, if capacity can be expanded within optimization. Default: False.
capacity_potential: numeric
Maximum invest capacity in unit of output capacity.
capacity_minimum: numeric
Minimum invest capacity in unit of output capacity.
input_parameters: dict (optional)
Set parameters on the input edge of the conversion unit
(see oemof.solph for more information on possible parameters)
Expand Down Expand Up @@ -910,6 +922,8 @@ def __init__(self, *args, **kwargs):

self.capacity_potential = kwargs.get("capacity_potential")

self.capacity_minimum = kwargs.get("capacity_minimum")

self.input_parameters = kwargs.get("input_parameters", {})

self.output_parameters = kwargs.get("output_parameters", {})
Expand Down

0 comments on commit cb1ce4d

Please sign in to comment.