idaholab / HERON

Holistic Energy Resource Optimization Network (HERON) is a modeling toolset and plugin for RAVEN to accelerate stochastic technoeconomic assessment of the economic viability of various grid-energy system configurations, especially with application to electrical grids and integrated energy systems (IES).
Apache License 2.0
24 stars 38 forks source link

[DEFECT] Component capacity defined through over component's capacity #180

Open mgarrouste opened 2 years ago

mgarrouste commented 2 years ago

Defect Description

Describe the defect I defined one component capacity ('dependent') using another component capacity ('main').

What did you expect to see happen?

The case running

What did you see instead?

The case crashed, the template driver does not put the dependent capacity in the right spots in the inner and outer files.

Do you have a suggested fix for the development team?

Once the sampler has sampled another capacity for the main component the dependent capacity should be computed from the main one and then written as a constant in the inner file

Describe how to Reproduce Steps to reproduce the behavior:

  1. Run the file attached in HERON

Screenshots and Input Files Please attach the input file(s) that generate this error. The simpler the input, the faster we can find the issue.

dependent_capacity.xml.zip

Platform (please complete the following information):


For Change Control Board: Issue Review

This review should occur before any development is performed as a response to this issue.


For Change Control Board: Issue Closure

This review should occur when the issue is imminently going to be closed.

PaulTalbot-INL commented 2 years ago

To understand, you have one component such as

  <Component name="alpha">
    <capacity>
      <fixed_value>5</fixed_value>
    </capacity>
    ....
  </Component>

and another such as

  <Component name="beta">
    <capacity>
      <variable>alpha_capacity</variable>
    </capacity>
    ....
  </Component>

?

mgarrouste commented 2 years ago

Not exactly the first component capacity is part of the optimization So something like this: `

0,5
....

`

and another such as `

alpha_capacity
....

`

PaulTalbot-INL commented 2 years ago

That is a very challenging pattern. It's definitely possible on the RAVEN side to tie these capacities together, but HERON definitely isn't set up like that. I'll have to think about how we could do this.