-
Notifications
You must be signed in to change notification settings - Fork 37
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
Workshop March 2022 Examples #139
Merged
Merged
Changes from 1 commit
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
13675b2
stash
PaulTalbot-INL 1af85ce
updated to devel
PaulTalbot-INL a6bb212
stash
PaulTalbot-INL f19dd48
Merge branch 'devel' into htse_case
PaulTalbot-INL 8275bf2
stash
PaulTalbot-INL ff5e047
first test case - simple
PaulTalbot-INL 97e47ab
small gitignore update
PaulTalbot-INL 94a6adc
removing unfinished full HTSE case that doesn't run yet
PaulTalbot-INL a9b0fee
mergefixes
PaulTalbot-INL e67fd6e
regolded because new default opt options get to solution faster
PaulTalbot-INL 94940c0
regolded because diff default opt options get to soln faster
PaulTalbot-INL c3be4bd
removed glpk solver choice
PaulTalbot-INL 830e5e8
review comments addressed; warning added for over-requesting parallel…
PaulTalbot-INL 78f0f6a
fixed missing dictionary
PaulTalbot-INL 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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -303,7 +303,6 @@ def dispatch_window(self, time, time_offset, | |
attempts += 1 | ||
print(f'DEBUGG solve attempt {attempts} ...:') | ||
# solve | ||
solve_options = {'threads': 2} | ||
soln = pyo.SolverFactory(self._solver).solve(m, options=solve_options) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm pretty sure this is what is causing the automated tests to fail. Removing the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. whoops! fixed. |
||
# check solve status | ||
if soln.solver.status == SolverStatus.ok and soln.solver.termination_condition == TerminationCondition.optimal: | ||
|
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
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
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.
Just a comment for consideration:
On my Windows machine, requesting more cores than you have available results in an error and RAVEN will not run, not sure what the behavior is on Mac or Linux. We could raise an error here or raise a warning and wait for RAVEN to throw an error later, either way is probably fine. I think the important thing is to inform the user that they requested more cores than the machine has available. If that particular error is thrown later, the user will have an idea as to why the simulations were not run.
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.
Yeah, I don't love how this is handled generally speaking; I think handling it better in RAVEN may lead to sensible error messages so we don't duplicate that effort in HERON.