idaholab / TEAL

TEAL is a financial performance calculator plugin for the RAVEN code, framework, resolving around the computation of Net Present Value and associated financial metrics.
Apache License 2.0
9 stars 21 forks source link

Yoshiurr/pyomoexpression #43

Closed yoshiurr-INL closed 2 years ago

yoshiurr-INL commented 2 years ago

Pull Request Description

What issue does this change request address?

Issue #42

What are the significant changes in functionality due to this change request?

When triggered, TEAL will accept pyomo expression as an acceptable format and vprints are changed accordingly. In that case, the output should be equation expressions instead of float values.


For Change Control Board: Change Request Review

The following review must be completed by an authorized member of the Change Control Board.

PaulTalbot-INL commented 2 years ago

@worseliz this is the PR looking at adding pyomo-compatible cash flow analysis. The need comes from the DISPATCHES project requiring TEAL as a source for CashFlow expression constructions in their pyomo environment. We can have a chat about details if you want.

PaulTalbot-INL commented 2 years ago

@yoshiurr-INL for the test, you can use required_libraries = 'pyomo' to cause the system to skip the test if pyomo isn't detected in the python env. For example, for a test in RAVEN that uses the optional imageio library:

  [./votingRegressor_plotting]
    type = 'RavenFramework'
    input = 'votingRegressor_plotting.xml'
    csv = 'data/outVotingRegressor_plotting.csv'
    image = 'data/votingRegressor_scatter-scatter-scatter-scatter-scatter.png'
    required_libraries = 'imageio'
    rel_err = 0.1
  [../]
PaulTalbot-INL commented 2 years ago

Any progress on the test for this?