odys.domain.entities.generator¶
Power generator asset with operational constraints: nominal power, variable cost, ramp rates, startup/shutdown costs, and minimum up/down time.
See Generator in the User Guide for a conceptual walkthrough.
Generator asset implementation.
This module provides the Generator class for modeling electrical generators in energy system optimization problems.
Generator
¶
Bases: Asset
Represents a power generator in the energy system.
This class models generators with various operational constraints
including nominal power, variable costs and ramp rates. How it is switched
on and off (minimum up and down times, startup and shutdown costs) is its
Commitment.
Source code in src/odys/domain/entities/generator.py
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 | |
max_supply(conditions)
¶
Return the available capacity profile if the scenario has one, else the nominal power, in MW.
Source code in src/odys/domain/entities/generator.py
61 62 63 64 65 | |
validate_horizon(horizon)
¶
Check that the minimum up and down times span a whole number of timesteps.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
horizon
|
Horizon
|
The time grid of the optimization. |
required |
Raises:
| Type | Description |
|---|---|
OdysValidationError
|
If a minimum time is not a whole number of timesteps. |
Source code in src/odys/domain/entities/generator.py
67 68 69 70 71 72 73 74 75 76 | |