Skip to content

Conversation

@Anselmoo
Copy link
Owner

@Anselmoo Anselmoo commented Mar 28, 2025

Add Himmelblau and 2D Rosenbrock functions to 2D optimization functions.

  • Himmelblau Function:

    • Implement HimmelblauFunction class in umf/functions/optimization/special.py.
    • Add HimmelblauFunction to __all__ list.
    • Add corresponding doctest for HimmelblauFunction.
  • 2D Rosenbrock Function:

    • Implement Rosenbrock2DFunction class in umf/functions/optimization/valley_shaped.py.
    • Add Rosenbrock2DFunction to __all__ list.
    • Add corresponding doctest for Rosenbrock2DFunction.
  • Documentation:

    • Update docs/modules/api/optimization.md to include HimmelblauFunction and Rosenbrock2DFunction.
    • Update README.md with usage instructions for HimmelblauFunction and Rosenbrock2DFunction.

For more details, open the Copilot Workspace session.

Add Himmelblau and 2D Rosenbrock functions to 2D optimization functions.

* **Himmelblau Function:**
  - Implement `HimmelblauFunction` class in `umf/functions/optimization/special.py`.
  - Add `HimmelblauFunction` to `__all__` list.
  - Add corresponding doctest for `HimmelblauFunction`.

* **2D Rosenbrock Function:**
  - Implement `Rosenbrock2DFunction` class in `umf/functions/optimization/valley_shaped.py`.
  - Add `Rosenbrock2DFunction` to `__all__` list.
  - Add corresponding doctest for `Rosenbrock2DFunction`.

* **Documentation:**
  - Update `docs/modules/api/optimization.md` to include `HimmelblauFunction` and `Rosenbrock2DFunction`.
  - Update `README.md` with usage instructions for `HimmelblauFunction` and `Rosenbrock2DFunction`.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/Anselmoo/useful-math-functions?shareId=XXXX-XXXX-XXXX-XXXX).
@codecov
Copy link

codecov bot commented Mar 28, 2025

Codecov Report

Attention: Patch coverage is 84.00000% with 4 lines in your changes missing coverage. Please review.

Project coverage is 84.12%. Comparing base (d4e3a2f) to head (95a98f7).
Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
umf/functions/optimization/special.py 83.33% 2 Missing ⚠️
umf/functions/optimization/valley_shaped.py 84.61% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #95      +/-   ##
==========================================
- Coverage   84.12%   84.12%   -0.01%     
==========================================
  Files          28       28              
  Lines        2388     2413      +25     
==========================================
+ Hits         2009     2030      +21     
- Misses        379      383       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Anselmoo Anselmoo merged commit 4eaab73 into main Mar 28, 2025
5 of 6 checks passed
@Anselmoo Anselmoo deleted the add-2d-optimization-functions branch March 28, 2025 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant