Repository navigation
Conversation
elenya-grant
self-requested a review
September 1, 2026 17:50
cfrontin
marked this pull request as ready for review
September 8, 2026 19:13
Collaborator
Author
|
I think this should be good to go- one last piece for the devs is where should I add documentation so that ppl can find these capabilities? |
…eature/statistical
Collaborator
It's a fun question because this is a fully new capability and it's not tied to any one technology. |
…eature/statistical
cfrontin
marked this pull request as draft
September 22, 2026 19:15
cfrontin
marked this pull request as ready for review
September 22, 2026 19:15
… statistical components that have conflicting/irrelevant defaults
Collaborator
Author
|
currently this PR is held up by #872. the new input-input connection required by the threshold statistics component requires a hotfix in the run scripts, like so: # build the H2I model
h2i = h2integrate.H2IntegrateModel(case_to_run)
# HOTFIX: this is a change necessitated by issues documented in #872 re: input-input connections
# this *should* be actuated by the technology_interconnections (see commented line in plant_config.yaml)
# but right now it is effectuated by a very manual OpenMDAO connection as a hotfix
h2i.model.connect("electrical_load_demand.electricity_demand", "interconnect_counts.electricity_threshold")
# setup and run the H2I model
h2i.setup() |
This reverts commit fa3af57.
…eature/statistical
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Statistical reduction components
For the purposes of optimization, it is frequently the case that objectives and constraints are set by probabilistic summary or threshold statistics: e.g. 99.9% of the time, some output should be greater than a threshold or demand variable.
These components take 8760 (or other simulation length) inputs and produce either summary statistics (mean, median, percentiles, etc.) or threshold statistics (net commodity deficit/surplus, fractions of timestep in deficit/surplus) as outputs, which can be used as objectives or constraints.
Section 1: Type of Contribution
Section 2: Draft PR Checklist
TODO:
Type of Reviewer Feedback Requested (on Draft PR)
Structural feedback:
I think these should exist as components that are perhaps distinguished in some sense from traditional commodity streams since they are effectively fictitious consumers and may break some checking and flows.
Implementation feedback:
Other feedback:
Section 3: General PR Checklist
docs/files are up-to-date, or added when necessaryCHANGELOG.md"A complete thought. [PR XYZ]((https://github.com/NatLabRockies/H2Integrate/pull/XYZ)", where
XYZshould be replaced with the actual number.Section 4: Related Issues
Section 5: Impacted Areas of the Software
Section 5.1: New Files
path/to/file.extensionmethod1: What and why something was changed in one sentence or less.Section 5.2: Modified Files
path/to/file.extensionmethod1: What and why something was changed in one sentence or less.Section 6: Additional Supporting Information
Section 7: Test Results, if applicable
Section 8 (Optional): New Model Checklist
docs/developer_guide/coding_guidelines.mdattrsclass to define theConfigto load in attributes for the modelBaseConfigorCostModelBaseConfiginitialize()method,setup()method,compute()methodCostModelBaseClass__init__.pyfile to ensure it is properly imported and used insupported_models.pysupported_models.pycreate_financial_modelinh2integrate_model.pytest_all_examples.pydocs/user_guide/model_overview.mddocs/section<model_name>.mdis added to the_toc.ymlgenerate_class_hierarchy.pyto update the class hierarchy diagram indocs/developer_guide/class_structure.md