-
Notifications
You must be signed in to change notification settings - Fork 294
Add Various Startup Types Support to the Price-taker Class #1713
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
Open
Xinhe-Chen
wants to merge
23
commits into
IDAES:main
Choose a base branch
from
Xinhe-Chen:various_startup
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+472
−3
Open
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
9675afa
add multiple startup types
Xinhe-Chen 646ef8c
complete multistage startup
Xinhe-Chen 03da2ab
update startup_type variables to the op_blocks
Xinhe-Chen 4b88d2d
update
Xinhe-Chen 09107e3
fix variable name bug
Xinhe-Chen 94006ff
update the transition time format
Xinhe-Chen 67f307f
update docstrings
Xinhe-Chen 48da942
Merge branch 'main' of https://github.com/IDAES/idaes-pse into variou…
Xinhe-Chen 94f7729
update various startup codes and add tests
Xinhe-Chen 4448f13
fix bugs and add more tests
Xinhe-Chen 43e5c1b
use black to reformulate
Xinhe-Chen e65d980
further reformat using black
Xinhe-Chen dff41ef
Merge branch 'main' into various_startup
ksbeattie 4a47164
Merge branch 'main' of https://github.com/IDAES/idaes-pse into variou…
Xinhe-Chen 5948e75
revome an unsed variable
Xinhe-Chen 38947cc
Merge branch 'various_startup' of https://github.com/Xinhe-Chen/idaes…
Xinhe-Chen 8bac610
update to address comments from PR
Xinhe-Chen c32e950
use black to format codes
Xinhe-Chen 3938e1f
update and fix errors in the tests
Xinhe-Chen 4ec1457
update the functions and remove unnecessary lines
Xinhe-Chen 50b68c1
update tests
Xinhe-Chen ac54a12
update tests
Xinhe-Chen cbe6eb9
foramt
Xinhe-Chen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Based on your tests, I'm wondering if we should change this to
if len(data) <= 1:. This method must be used only when there is more than one startup type. If you have only startup type, then this feels unnecessary (Also, we will have to check the minimum uptime and startup time values to make sure they are consistent). Thoughts?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I think the suggestion makes sense to me. Eq. 54 in Ben's paper once confused me until I asked for clarification from him. If {"hot": 4, "warm": 8, "cold": 12}, when the downtime is between 4 to 8, it is a hot start; 8 to 12, warm start and 12 to infinity, a cold start. This is important to understand eq54, if only one startup_transition_time is given, eq54 will break down.
I will add this example to the comments.