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

Add user-defined pre-modification of unknowns as well as update and check functions in Newton-Rhapson iterations #6

Open
3 tasks
adtzlr opened this issue Jul 13, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@adtzlr
Copy link
Owner

adtzlr commented Jul 13, 2021

This should involve

  • preprocess the unknowns y = pre(x) and by consequence, calculate f as f(y, *args); this defaults to pre = lambda x: x
  • update the solution x = update(x, dx); this defaults to lambda x, dx: x + dx
  • check if success success = check(dx, x, f); this defaults to check = lambda dx, x, f, tol=np.finfo(float).eps: np.linalg.norm(dx) < tol

With this modifications it should be possible to combine contique and felupe. The resulting newtonrhapson function should be very abstract and hence, the code should have good readability.

@adtzlr adtzlr added the enhancement New feature or request label Jul 13, 2021
@adtzlr adtzlr changed the title [Enhancement] Add optional [Enhancement] Add optional preprocessing of unknowns as well as user-defined update and check functions Jul 13, 2021
@adtzlr adtzlr changed the title [Enhancement] Add optional preprocessing of unknowns as well as user-defined update and check functions [Enhancement] Add user-defined pre-modification of unknowns as well as update and check functions in Newton-Rhapson iterations Jul 13, 2021
@adtzlr adtzlr changed the title [Enhancement] Add user-defined pre-modification of unknowns as well as update and check functions in Newton-Rhapson iterations Add user-defined pre-modification of unknowns as well as update and check functions in Newton-Rhapson iterations Jul 13, 2021
@adtzlr adtzlr self-assigned this Jul 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant