Skip to content

Results are different when specifying utilization factor at the timeslice level #512

@tsmbland

Description

@tsmbland

Looking at the Qatar model, I've found that the results are very different when you specify utilization factor at the timeslice level with a TechnodataTimeslices.csv file, even if all the values are the same, compared to just specifying a single value in the Technodata.csv file to apply to all timeslices. In the former case the results don't make any sense at all (supply values exceeding capacity).

Digging a bit through the code in debug mode, the main difference I've found is that the technologies xarray (which is used in many, many places throughout the code) has an additional timeslice dimension, but I currently have no idea why this is causing the discrepancy in the results

UPDATE

I can recreate this with a much simpler model. This is the default model with a single UF value specified in the Technodata.csv file, compared to timeslice-level values specified in the TechnodataTimeslices.csv file. In all cases UF=1 in all timeslices, so there shouldn't be any difference between the two scenarios, however this isn't the case:

StandardUF
TimesliceUF

In the standard case the results make sense. Capacity is higher than overall supply across the year, but this is reasonable because capacity needs to match supply in the peak timeslice. In the second case however, supply actually exceeds capacity across all years (at least for wind turbines), which doesn't make any sense

UPDATE 2

This is specifically to do with the convert_timeslice operation in the max_production constraint (or at least partially to do with that).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions