Overview
The GLSK (Generation and Load Shift Keys) module provides functionality to load and manipulate GLSK documents. GLSK factors define how power injections are distributed across generators and loads in different countries or zones for sensitivity analysis and capacity calculation.Main Classes
GLSKDocument
Represents a loaded GLSK file with access to underlying data.Methods
Get the start time of the GSK time interval.Returns: datetime - Start timestamp of the GLSK factorsExample:
Get the end time of the GSK time interval.Returns: datetime - End timestamp of the GLSK factorsExample:
Get list of countries defined in the GLSK document.Returns: List[str] - List of country codesExample:
Get injection points (generators/loads) for a specific country at a given instant.Parameters:
network(Network): Network objectcountry(str): Country codeinstant(datetime): Time instant for which to get injection points
Get GLSK factors for a specific country at a given instant.GLSK factors define the participation of each injection point in the power shift.Parameters:
network(Network): Network objectcountry(str): Country codeinstant(datetime): Time instant for which to get GLSK factors
Utility Functions
Load a GLSK file.Parameters:
file(str or PathLike): Path to the GLSK file (XML format)
Complete Example
Usage with Flow Decomposition
GLSK documents are commonly used with flow decomposition for capacity calculation:Usage with RAO
GLSK documents can be used with RAO for loop flow computation:GLSK File Format
GLSK files are typically XML files following the ENTSO-E format:Key Concepts
GLSK Factors
GLSK factors are normalized weights that sum to 1.0 for each country/zone. They define how a power shift in a zone is distributed among generators and loads:- A factor of 0.5 means the injection point participates at 50% in the power shift
- Positive factors typically apply to generators (increase production)
- Negative factors typically apply to loads (decrease consumption)
- The sum of absolute values of factors for a zone equals 1.0
Time Resolution
GLSK documents can have different time resolutions:- Hourly: Different GLSK factors for each hour
- Daily: Same factors for an entire day
- Monthly: Same factors for an entire month
Notes
- GLSK files must be in XML format following ENTSO-E standards
- The instant parameter in methods should fall within the valid time interval
- GLSK factors are used for linearized sensitivity calculations
- Factors are country/zone-specific and time-dependent
