Open johnomotani opened 4 years ago
This is tricky... there are cases when any (or all?) of these methods may fail. Newton in particular is either great or terrible depending on how close to the solution you start. We could use a simple test case where they all should pass, but a proper test (rather than a sanity check) is probably hard to design.
There are now several methods for refining points:
line
,newton
,integrate
,integrate+newton
. Onlyline
is tested intest_equilbrium.py
, and using other methods sometimes fails whereline
passes. I suspect this is because the tests start with points very far from the contour, and were set up in such a way thatline
would find the right contour, so this does not indicate a problem with the other methods. The failure ofintegrate
may just be a question of slightly too tight tolerance (only failstest_refine
), andintegrate+newton
fails to converge, but only on the same test.newton
fails to converge on several tests.