Skip to content
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

Optimize: add step size explicity. #110

Merged
merged 2 commits into from
Jul 30, 2024
Merged

Optimize: add step size explicity. #110

merged 2 commits into from
Jul 30, 2024

Conversation

Tom-Szendrey
Copy link
Contributor

@Tom-Szendrey Tom-Szendrey commented Jul 30, 2024

Update optimize request to allow Derek to more easily utilize euler method.

DARPA-ASKEM/terarium#4318

@Tom-Szendrey Tom-Szendrey changed the title add step size explicity. Optimize: add step size explicity. Jul 30, 2024
@Tom-Szendrey Tom-Szendrey marked this pull request as ready for review July 30, 2024 15:30
) # Need to pop this out of extra.
solver_method = extra_options.pop("solver_method")
if step_size is not None and solver_method == "euler":
solver_options = {"step_size": step_size}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Slightly better to not overwrite the entire dict:

solver_options["step_size"] = ...

@Tom-Szendrey Tom-Szendrey merged commit 5893dce into main Jul 30, 2024
2 checks passed
@Tom-Szendrey Tom-Szendrey deleted the TS/107-optimize branch August 15, 2024 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants