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

Implementation of 23 test cases #149

Merged
merged 2 commits into from
Feb 11, 2023
Merged

Implementation of 23 test cases #149

merged 2 commits into from
Feb 11, 2023

Conversation

Deltadahl
Copy link
Contributor

Implementation of the 23 test cases in https://people.sc.fsu.edu/~jburkardt/m_src/test_nonlin/test_nonlin.html according to #142.
The result of the program looks like this:

nr  Problem                                            n     NewtonRaphson       TrustRegion         LevenbergMarquardt  nlsolve
1   Generalized Rosenbrock function                    10    2.5809e-8           4.9193              4.9193              0.0
2   Powell singular function                           4     7.0435e-16          7.941               0.021633            7.0217e-16
3   Powell badly scaled function                       2     0.0                 26897.0             2.1983e-14          0.0
4   Wood function                                      4     4.1832e-14          19081.0             8550.5              8.2157e-15
5   Helical valley function                            3     6.2775e-30          50.0                50.0                4.3667e-26
6   Watson function                                    2     18860.0             3004.4              129.15              114.89
7   Chebyquad function                                 2     5.5511e-17          0.075044            0.34127             9.4369e-16
8   Brown almost linear function                       10    0.0                 0.01533             16.53               4.4409e-16
10  Discrete integral equation function                10    2.7807e-15          1.9166e-15          9.3334e-15          5.5511e-17
11  Trigonometric function                             10    1.4753e-15          2.2808e-15          0.084117            6.8695e-16
12  Variably dimensioned function                      10    0.0                 3.5707e-311         1.376e-12           0.0
13  Broyden tridiagonal function                       10    1.2803e-15          2.7487e-15          1.1633e-13          6.6613e-16
14  Broyden banded function                            10    1.4002e-15          2.1729e-15          1.6865e-13          5.5511e-16
15  Hammarling 2 by 2 matrix square root problem       4     2.2204e-16          0.32355             0.91487             2.2204e-16
16  Hammarling 3 by 3 matrix square root problem       9     2.2204e-16          0.30203             1.0506              2.2204e-16
17  Dennis and Schnabel 2 by 2 example                 2     0.0                 4.4408e-16          17.262              0.0
18  Sample problem 18                                  2     0.0                 6.2862e-9           2.1951              8.291e-17
19  Sample problem 19                                  2     9.5092e-16          3.4505e-7           76.367              7.7402e-16
20  Scalar problem f(x) = x(x - 5)^2                   1     0.0                 1.8919e-16          2.5564e-18          0.0
21  Freudenstein-Roth function                         2     0.0                 20.012              20.012              4.949
22  Boggs function                                     2     0.0                 1.6031              2.0                 3.9431e-17
23  Chandrasekhar function                             10    6.6613e-16          9.9301e-16          1.0906e-13          2.2204e-16

@codecov
Copy link

codecov bot commented Feb 7, 2023

Codecov Report

Merging #149 (5faa25e) into master (23674fa) will increase coverage by 2.37%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #149      +/-   ##
==========================================
+ Coverage   88.91%   91.28%   +2.37%     
==========================================
  Files           7        7              
  Lines         505      505              
==========================================
+ Hits          449      461      +12     
+ Misses         56       44      -12     
Impacted Files Coverage Δ
src/levenberg.jl 95.86% <0.00%> (+1.37%) ⬆️
src/trustRegion.jl 98.46% <0.00%> (+1.53%) ⬆️
src/jacobian.jl 87.17% <0.00%> (+2.56%) ⬆️
src/utils.jl 66.15% <0.00%> (+9.23%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Member

@YingboMa YingboMa left a comment

Choose a reason for hiding this comment

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

Remember formatting

@Deltadahl
Copy link
Contributor Author

Deltadahl commented Feb 8, 2023

Remember formatting

This file is formatted and the error message points to the file NonlinearSystemSolvers.md

@YingboMa YingboMa merged commit f581c62 into SciML:master Feb 11, 2023
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.

2 participants