-
Notifications
You must be signed in to change notification settings - Fork 49
Add problems 5-13 except 9,10 #375
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
base: main
Are you sure you want to change the base?
Add problems 5-13 except 9,10 #375
Conversation
|
@tmigot please review this pr. |
|
Hi @arnavk23 Do you need any help finishing up this one? |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #375 +/- ##
==========================================
- Coverage 99.80% 99.80% -0.01%
==========================================
Files 1084 1105 +21
Lines 12319 12761 +442
==========================================
+ Hits 12295 12736 +441
- Misses 24 25 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@tmigot All test are passing. |
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.
Thanks @arnavk23 ! I started having a look, but I am not sure to understand where does these problems come from? They do not match the PDF
Co-authored-by: Tangi Migot <[email protected]>
Co-authored-by: Tangi Migot <[email protected]>
Co-authored-by: Tangi Migot <[email protected]>
Co-authored-by: Tangi Migot <[email protected]>
Co-authored-by: Tangi Migot <[email protected]>
Co-authored-by: Tangi Migot <[email protected]>
Co-authored-by: Tangi Migot <[email protected]>
Co-authored-by: Tangi Migot <[email protected]>
Co-authored-by: Tangi Migot <[email protected]>
Co-authored-by: Tangi Migot <[email protected]>
Co-authored-by: Tangi Migot <[email protected]>
Co-authored-by: Tangi Migot <[email protected]>
Co-authored-by: Tangi Migot <[email protected]>
Co-authored-by: Tangi Migot <[email protected]>
Co-authored-by: Tangi Migot <[email protected]>
Co-authored-by: Tangi Migot <[email protected]>
Co-authored-by: Tangi Migot <[email protected]>
Co-authored-by: Tangi Migot <[email protected]>
Co-authored-by: Tangi Migot <[email protected]>
| function F!(r, x; n = length(x)) | ||
| s = one(T) | ||
| nb = div(n, 2) - 1 | ||
| @inbounds for i = 1:nb | ||
| i1 = 2 * i - 1 | ||
| i2 = 2 * i | ||
| i3 = 2 * i + 1 | ||
| i4 = 2 * i + 2 | ||
| s += 100 * (x[i2] - x[i1]^2)^2 | ||
| s += (one(T) - x[i1])^2 | ||
| s += 90 * (x[i4] - x[i3]^2)^2 | ||
| s += (one(T) - x[i3])^2 | ||
| s += 10 * (x[i2] + x[i4] - T(2))^2 | ||
| s += (one(T) / T(10)) * (x[i2] - x[i4])^2 | ||
| end | ||
| r[1] = sqrt(s) | ||
| @inbounds for i = 2:n | ||
| r[i] = zero(T) | ||
| end | ||
| return r | ||
| end |
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.
f(x) = sum(F(x)[i].^2) so we should see all the terms that are squared in the function F(x) for the NLS-variant, like you did for the others
Co-authored-by: Tangi Migot <[email protected]>
Co-authored-by: Tangi Migot <[email protected]>
Co-authored-by: Tangi Migot <[email protected]>
Co-authored-by: Tangi Migot <[email protected]>
Co-authored-by: Tangi Migot <[email protected]>
Co-authored-by: Tangi Migot <[email protected]>
Co-authored-by: Tangi Migot <[email protected]>
#116
| Problem 5. Generalized Broyden tridiagonal function [22]. (OP)
| Problem 6. Generalized Broyden banded function [22]. (OP)
| Problem 7. Seven-diagonal generalization of the Broyden tridiagonal function [7]. (OP)
| Problem 8. Sparse modification of the Nazareth trigonometric function. (NLS)
| Problem 11. Augmented Lagrangian function [7]. (OP)
| Problem 12. Generalization of the Brown function 1 [7]. (OP)
| Problem 13. Generalization of the Brown function 2 [7]. (OP)