-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Hyperplane Tree #20
Merged
Merged
Conversation
This file contains 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
* Change terminal storage amounts to input parameters Move terminal storage amounts (days) for compressed and liquid hydrogen to dictionary of input parameters for the "calcs" function. Update "input_params" Excel file. * Update s2a_systems_functions.py Remove unused parameter. * Update s2a_systems_functions.py Set energy, cost, and emissions for CO2 recycling and downstream gas separation (precooling for PSA) to zero if no CO2 is used or produced for a given LOHC. * Update s2a_systems_functions.py Remove list() from argument to 2D interpolation function so that return value is array of number (instead of array of list). * Fix electrolyzer fixed costs and energy Use terminal LOHC mass flowrate (instead of molar flowrate) as the target flowrate for scaling LOHC electrolyzer area and energy. Fix both code and input Excel file. (Note: Previously mixed up molar and mass flowrates. Formic acid results were not impacted because of a similar mismatch in input Excel file.) --------- Co-authored-by: Mengyao Yuan <[email protected]> Co-authored-by: Mengyao Yuan <[email protected]>
* Change terminal storage amounts to input parameters Move terminal storage amounts (days) for compressed and liquid hydrogen to dictionary of input parameters for the "calcs" function. Update "input_params" Excel file. * Update s2a_systems_functions.py Remove unused parameter. * Update s2a_systems_functions.py Set energy, cost, and emissions for CO2 recycling and downstream gas separation (precooling for PSA) to zero if no CO2 is used or produced for a given LOHC. * Update s2a_systems_functions.py Remove list() from argument to 2D interpolation function so that return value is array of number (instead of array of list). * Fix electrolyzer fixed costs and energy Use terminal LOHC mass flowrate (instead of molar flowrate) as the target flowrate for scaling LOHC electrolyzer area and energy. Fix both code and input Excel file. (Note: Previously mixed up molar and mass flowrates. Formic acid results were not impacted because of a similar mismatch in input Excel file.) --------- Co-authored-by: Mengyao Yuan <[email protected]> Co-authored-by: Mengyao Yuan <[email protected]>
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.
This PR introduces Hyperplane Trees, a powerful tool for building piecewise linear surrogate models from data. This was initially a fork of Marco Cerliani's Linear-Tree, but it has since grown to include a new implementation of the training algorithm in pytorch, as well as feature engineering tools for linear and quadratic combinations. For more details about this code, please see the Readme for the appropriate module.
This code is the main work of the S2A Surrogates team for Year 2 of the project. We are pushing this into the main branch now as we plan to submit this work for publication in the coming days.