{"id":20196274,"url":"https://github.com/gpavanb1/fcontin","last_synced_at":"2025-04-10T10:43:02.258Z","repository":{"id":37652539,"uuid":"269999863","full_name":"gpavanb1/FContin","owner":"gpavanb1","description":"Numerical Continuation using just the residual. 9k+ downloads","archived":false,"fork":false,"pushed_at":"2023-07-06T22:00:42.000Z","size":10,"stargazers_count":7,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T09:38:23.273Z","etag":null,"topics":["arc-length","automatic-differentiation","jax","nonlinear-equations","numerical-continuation","numerical-methods","python"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/FContin/0.1/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gpavanb1.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-06-06T14:07:02.000Z","updated_at":"2025-02-13T19:24:26.000Z","dependencies_parsed_at":"2024-11-14T07:15:21.739Z","dependency_job_id":null,"html_url":"https://github.com/gpavanb1/FContin","commit_stats":{"total_commits":9,"total_committers":2,"mean_commits":4.5,"dds":"0.11111111111111116","last_synced_commit":"519b65e19a27956911850520c5c8be0b7d6f553c"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gpavanb1%2FFContin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gpavanb1%2FFContin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gpavanb1%2FFContin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gpavanb1%2FFContin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gpavanb1","download_url":"https://codeload.github.com/gpavanb1/FContin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248199988,"owners_count":21063800,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["arc-length","automatic-differentiation","jax","nonlinear-equations","numerical-continuation","numerical-methods","python"],"created_at":"2024-11-14T04:23:00.383Z","updated_at":"2025-04-10T10:43:02.230Z","avatar_url":"https://github.com/gpavanb1.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FContin\n\n![Made with Love in India](https://madewithlove.org.in/badge.svg) [![Downloads](https://pepy.tech/badge/fcontin)](https://pepy.tech/project/fcontin)\n\nSolve F(**u**, λ) = 0 over λ with just F!\n\nThis repository contains [natural](https://en.wikipedia.org/wiki/Numerical_continuation#Natural_parameter_continuation) and [pseudo-arclength/Euler-Newton](https://en.wikipedia.org/wiki/Numerical_continuation#Pseudo-arclength_continuation) continuation library using [JAX](https://github.com/google/jax) for automatic differentiation, [numdifftools](https://pypi.org/project/numdifftools/) for numerical differentiation using real or complex derivatives, and [Pacopy](https://github.com/nschloe/pacopy)\n\nThis enables automatic/numerical differentiation to obtain the Jacobian and derivative with respect to the parameter. GPU/TPU support is packaged as part of JAX.\n\n# How to install and execute?\n\nTested on Python 3.6.2 and [pacopy 0.1.0](https://github.com/sigma-py/pacopy/tree/branch-switching)\n\nJust run \n```\npip install fcontin\n```\n\nThe following program illustrates a basic example\n```python\nfrom fcontin.ContProblem import ContProblem\n\n###\n# Output record\n###\nlmbda_list = []\nvalues_list = []\n\ndef callback(k, lmbda, sol):\n    # Use the callback for plotting, writing data to files etc.\n    lmbda_list.append(lmbda)\n    values_list.append(sol)\n\n###\n# Define problem\n###\n\ndef f(u, lmbda):\n    \"\"\"The evaluation of the function to be solved\n    \"\"\"\n    return [\n        u[0] + u[1] - (lmbda + 1.), u[0] - u[1] - lmbda\n    ]\n\n###\n# Solving and Plotting\n###\n\n# Initial guess\nu0 = [0., 0.]\n# Initial parameter value\nlmbda0 = 1.0\n\n# Creating the problem\n# Natural or Euler-Newton for cont_method\n# Forward, Reverse, Numerical, Complex for jac_mode\nproblem = ContProblem(f, u0, lmbda0,\ncont_method='Euler-Newton', \njac_mode='Forward',\nmax_steps=10,\nnewton_tol=1e-10,\ncallback=callback\n)\n\nproblem.solve()\n```\n\n## Whom to contact?\n\nPlease direct your queries to [gpavanb1](http://github.com/gpavanb1)\nfor any questions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgpavanb1%2Ffcontin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgpavanb1%2Ffcontin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgpavanb1%2Ffcontin/lists"}