Investment
EnInvestment
¶
Bases: EnBaseModel
Represents an investment model for energy system components.
This class defines the properties and configurations for managing investments in energy system components. The attributes include limits on capacity investment, cost-related parameters, and constraints for both standard and multi-period models. It supports nonconvex investments and custom limits through additional configurations.
Attributes:
Name | Type | Description |
---|---|---|
maximum |
float | None
|
Maximum additional invested capacity; defined per period in a multi-period model. |
minimum |
float
|
Minimum additional invested capacity. Defines the threshold when nonconvex is True; defined per period in a multi-period model. |
ep_costs |
float
|
Equivalent periodical costs or investment expenses per flow capacity in both standard and multi-period models. |
existing |
float
|
Installed capacity without additional investment costs; not applicable if nonconvex is True. |
nonconvex |
bool
|
Flag to enable binary variables for investment status, allowing offset costs independent of invested flow capacity. |
offset |
float
|
Fixed costs for nonconvex investments. |
overall_maximum |
float | None
|
Overall maximum capacity investment, applicable to multi-period models. |
overalL_minimum |
float | None
|
Overall minimum capacity investment, applicable to multi-period models. |
lifetime |
int | None
|
Lifetime of the unit in years, applicable to multi-period models. |
age |
int | None
|
Start age of the unit in years at the beginning of optimization, applicable to multi-period models. |
interest_rate |
float | None
|
Interest rate for annuities calculation in a multi-period model; defaults to the model's discount rate if unspecified. |
fixed_costs |
float | None
|
Fixed costs per period in nominal terms, applicable to multi-period models. |
custom_attributes |
dict
|
Dictionary of custom constraints or attributes for investment. |
Source code in backend/app/ensys/components/investment.py
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 |
|
to_oemof(energysystem)
¶
Converts the object's internal configuration to an oemof.solph Investment object.
This method takes an oemof EnergySystem object and uses the provided system configuration to construct and return an oemof.solph Investment object. The generated Investment object encapsulates investment-related parameters for use in energy system modeling, particularly for optimization.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
energysystem
|
EnergySystem
|
The oemof.solph EnergySystem object containing the necessary system configuration and parameters. |
required |
Returns:
Type | Description |
---|---|
solph.Investment
|
An oemof.solph Investment object constructed based on the internal configuration and the provided EnergySystem object. |