-
-
Notifications
You must be signed in to change notification settings - Fork 572
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
Issue 1015 algebraic solver #1059
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #1059 +/- ##
========================================
Coverage 97.73% 97.74%
========================================
Files 242 242
Lines 12476 12528 +52
========================================
+ Hits 12193 12245 +52
Misses 283 283
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great Tino, thanks! I assume that, apart from the solver getting stuck in a local minimum, the rest works fine, right?
It all works fine, yes, but I haven't yet found a case where rootfinding fails and minimization works instead. At least the bounds functionality is implemented, in case someone thinks of a hacky way to implement bounds for the rootfinder (e.g. artificially extending the function outside of the bounds) |
Description
I couldn't really get this working but thought I would merge what I have so far as it might be useful for another effort down the line (will require a better example)
bounds
attribute to theVariable
object, to allow these constraintsThe main problem is that the solvers tend to find local minima instead of roots.
Fixes #1015
Type of change
Please add a line in the relevant section of CHANGELOG.md to document the change (include PR #) - note reverse order of PR #s. If necessary, also add to the list of breaking changes.
Key checklist:
$ flake8
$ python run-tests.py --unit
$ cd docs
and then$ make clean; make html
You can run all three at once, using
$ python run-tests.py --quick
.Further checks: