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

1777 optimize decentralized script for speed #2467

Merged
merged 12 commits into from
Dec 4, 2019

Conversation

daren-thomas
Copy link
Member

This PR addresses #1777 but actually goes a bit farther. The calculation in cea.technologies.chiller_absorption.calc_operating_conditions was replaced - the sympy.linsolve method call is not needed if you already have a symbolic solution to the equation. See the docstring for that method on how this was done. The end product is a really long and hairy expression but so much faster.

Execution speed went from:

  • original: 2931.58s
  • using expression: 226.28s
  • smarter use of AbsorptionChiller (less pandas getitem calls): ~180s
  • added multiprocessing, 7 cores: 96.41s

I only worked on the cooling case. Do we need to do the same for heating?

@jimenofonseca
Copy link
Contributor

@daren-thomas awesome!!, yes, the same for heating, please!

@shanshanhsieh
Copy link
Contributor

@daren-thomas , the implementation works well!
i will wait until PR #2478 is merged, so i can run the workflows and tests before merging this branch.

@shanshanhsieh
Copy link
Contributor

@daren-thomas could you please resolve the conflict? thanks

@daren-thomas
Copy link
Member Author

@shanshanhsieh: no conflicts found :) let's merge already!

@daren-thomas daren-thomas merged commit bc44b46 into master Dec 4, 2019
@daren-thomas daren-thomas mentioned this pull request Dec 10, 2019
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.

None yet

3 participants