Skip to content

Revise golden mean search convergence #1606

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

Merged
merged 6 commits into from
Dec 9, 2022
Merged

Revise golden mean search convergence #1606

merged 6 commits into from
Dec 9, 2022

Conversation

cwhanse
Copy link
Member

@cwhanse cwhanse commented Dec 7, 2022

  • Closes golden-section search fails when upper and lower bounds are equal #1603
  • I am familiar with the contributing guidelines
  • Tests added
  • Updates entries in docs/sphinx/source/reference for API changes.
  • Adds description and name entries in the appropriate "what's new" file in docs/sphinx/source/whatsnew for all changes. Includes link to the GitHub Issue with :issue:`num` or this Pull Request with :pull:`num`. Includes contributor name and/or GitHub username (link with :ghuser:`user`).
  • New code is fully documented. Includes numpydoc compliant docstrings, examples, and comments where necessary.
  • Pull request is nearly complete and ready for detailed review.
  • Maintainer: Appropriate GitHub Labels (including remote-data) and Milestone are assigned to the Pull Request and linked Issue.

Adjusts convergence criteria for tools._golden_sect_DataFrame to handle edge case when upper and lower bounds are equal (which can occur when e.g. v_oc =0 is returned by pvsystem.singlediode.

Ditched the limit on iterations as duplicative of testing the width of the test point interval. Moved the optimum from the left test point to the average of the two test points.

@cwhanse cwhanse added this to the 0.9.4 milestone Dec 7, 2022
(:issue:`1565`, :pull:`1567`)
* Add optional ``return_components`` parameter to :py:func:`pvlib.irradiance.haydavies` to return
individual diffuse irradiance components (:issue:`1553`, :pull:`1568`)
individual diffuse irradiance components. (:issue:`1553`, :pull:`1568`)
Copy link
Member

Choose a reason for hiding this comment

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

Thank you for cleaning up our negligence

@kandersolar kandersolar mentioned this pull request Dec 9, 2022
9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

golden-section search fails when upper and lower bounds are equal
2 participants