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

Expose option to set precision for variables #103

Open
wants to merge 74 commits into
base: dev
Choose a base branch
from

Conversation

schmoelder
Copy link
Contributor

@schmoelder schmoelder commented Mar 2, 2024

This PR allows two things:

  • Exposing a precision attribute of the OptimizationVariable which can be used to round its value (which can be useful when dealing with floating point issues of even for termination criteria.
  • Passing this precision to the transform functions when determining bounds of the variables. This could maybe help with the issues we're experiencing with COBYLA.

To do

  • Check if this helps with COBYLA
  • Clean up code (e.g. what does validate_x do?)
  • Finish tests

schmoelder and others added 30 commits January 24, 2024 09:52
- Fix caching
- Update Python versions
- Test on MacOS
@schmoelder schmoelder force-pushed the dev branch 4 times, most recently from b3c1d2f to bd5cccc Compare March 22, 2024 07:00
@schmoelder schmoelder force-pushed the expose-option-to-set-precision-for-variables branch from 8cacd9c to 8f624bb Compare March 22, 2024 07:05
@schmoelder schmoelder force-pushed the dev branch 4 times, most recently from d10f69b to cd4c8ee Compare March 26, 2024 15:33
@schmoelder schmoelder force-pushed the dev branch 11 times, most recently from 35e0c67 to d97cf31 Compare December 4, 2024 16:47
@schmoelder schmoelder added this to the v0.11.0 milestone Dec 5, 2024
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.

4 participants