Skip to content

A grid buy price list cannot be assigned after setting up the problem #492

@genevievestarke

Description

@genevievestarke

A grid buy price list cannot be assigned after setting up the problem

If a grid buy price is initialized as a single value (set to one value or not set), then it is given the size of 1. If you then try to assign a list of prices to that variable that you've loaded in, for example, you get an error saying that you cannot assign a variable of length 8760 to a variable of length 1. This means that you can only define a grid buy price list from the yaml file.

How to reproduce

Relevant output

System Information

  • OS: <macOS 12.4>
  • Python version: <3.11.4>
  • H2Integrate version: <0.1.1>
    • <Installed from source using an editable installation with developer tools: pip install -e .[develop]>
    • Commit hash:

Relevant library versions

Package Version
hopp <3.1.1>
numpy <1.26.4>
Pyomo <6.8.0>
scipy <1.14.1>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions