# \#nlsolve

**URL:** https://discourse.julialang.org/tag/nlsolve/441.md?match_all_tags=true&page=1&tags%5B%5D=nlsolve

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

**Page:** 2

---

## [Using NLsolve to find multiple roots](https://discourse.julialang.org/t/using-nlsolve-to-find-multiple-roots/67637)

<div class="topic-metadata">

**Author:** [@roi.holtzman](https://discourse.julialang.org/u/roi.holtzman)\
**Replies:** 8\
**Last updated:** [September 5, 2021, 1:55am UTC](https://discourse.julialang.org/t/using-nlsolve-to-find-multiple-roots/67637 "2021-09-05T01:55:29Z")

</div>

I have two non-linear equations for which I want to find all roots. Using nlsolve only returns one root. How can I configure it to return all roots, say in some range of parameters?

---

## [Using nlsolve inside Turing.jl- ForwardDiff.Dual type error](https://discourse.julialang.org/t/using-nlsolve-inside-turing-jl-forwarddiff-dual-type-error/64986)

<div class="topic-metadata">

**Author:** [@stefan\_petrov\_123](https://discourse.julialang.org/u/stefan_petrov_123)\
**Replies:** 2\
**Last updated:** [July 22, 2021, 11:45pm UTC](https://discourse.julialang.org/t/using-nlsolve-inside-turing-jl-forwarddiff-dual-type-error/64986 "2021-07-22T23:45:46Z")

</div>

Hi, I’m trying to assess if Turing is a good fit for a particular dynamic pricing-type problem I have, and I’m wondering if it’s possible to use nlsolve inside. I’m sure it is, but I can’t figure it out. The code bello…

---

## [\[NLsolve\] Providing the Jacobian of a system when variables are provided in an Array?](https://discourse.julialang.org/t/nlsolve-providing-the-jacobian-of-a-system-when-variables-are-provided-in-an-array/60823)

<div class="topic-metadata">

**Author:** [@dadada\_dadada](https://discourse.julialang.org/u/dadada_dadada)\
**Replies:** 6\
**Last updated:** [May 11, 2021, 5:53am UTC](https://discourse.julialang.org/t/nlsolve-providing-the-jacobian-of-a-system-when-variables-are-provided-in-an-array/60823 "2021-05-11T05:53:41Z")

</div>

When solving systems of equation, sometimes, it’s better to have the variables in Array format, instead of a vector. That said, can we provide multidimensional Jacobians to the solvers of the NLsolve package? For examp…

---

## [Solving for the steady-state of a large nonlinear ODE in SciML](https://discourse.julialang.org/t/solving-for-the-steady-state-of-a-large-nonlinear-ode-in-sciml/50613)

<div class="topic-metadata">

**Author:** [@briochemc](https://discourse.julialang.org/u/briochemc)\
**Replies:** 32\
**Last updated:** [April 19, 2021, 10:01am UTC](https://discourse.julialang.org/t/solving-for-the-steady-state-of-a-large-nonlinear-ode-in-sciml/50613 "2021-04-19T10:01:05Z")

</div>

I have a few questions: What is the difference in scope between NonlinearSolve.jl and NLSolvers.jl/NLsolve.jl? What are the pros/cons of NonlinearSolve.jl vs NLSolvers.jl/NLsolve.jl? Are there any plans to include the …

---

## [How to solve set of nonlinear fixed-point equations using Anderson acceleration in NLsolve.jl?](https://discourse.julialang.org/t/how-to-solve-set-of-nonlinear-fixed-point-equations-using-anderson-acceleration-in-nlsolve-jl/55994)

<div class="topic-metadata">

**Author:** [@liuyxpp](https://discourse.julialang.org/u/liuyxpp)\
**Replies:** 7\
**Last updated:** [March 6, 2021, 1:16pm UTC](https://discourse.julialang.org/t/how-to-solve-set-of-nonlinear-fixed-point-equations-using-anderson-acceleration-in-nlsolve-jl/55994 "2021-03-06T13:16:18Z")

</div>

I have a set of two nonlinear fixed-point equations like x = g1(x, y) y = g2(x, y) where x and y are n-dimensional arrays (n=1,2,3), length(x) and length(y) can be very large, e.g. 128x128x128 for 3D problem. How can I…

---

## [Which Optimization package for large-scale structured nonlinear problems](https://discourse.julialang.org/t/which-optimization-package-for-large-scale-structured-nonlinear-problems/54449)

<div class="topic-metadata">

**Author:** [@egvila](https://discourse.julialang.org/u/egvila)\
**Replies:** 6\
**Last updated:** [February 4, 2021, 6:43pm UTC](https://discourse.julialang.org/t/which-optimization-package-for-large-scale-structured-nonlinear-problems/54449 "2021-02-04T18:43:52Z")

</div>

Hello everyone, As the title says, I would like some insight on what Julia Optimization package would be most appropriate to efficiently solve nonlinear problems with potentially exploitable sparsity structures (e.g. bl…

---

## [Nonlinear systems: NLsolve alternative (non-convergence issue)](https://discourse.julialang.org/t/nonlinear-systems-nlsolve-alternative-non-convergence-issue/53925)

<div class="topic-metadata">

**Author:** [@vjimenezg](https://discourse.julialang.org/u/vjimenezg)\
**Replies:** 3\
**Last updated:** [January 25, 2021, 9:39pm UTC](https://discourse.julialang.org/t/nonlinear-systems-nlsolve-alternative-non-convergence-issue/53925 "2021-01-25T21:39:39Z")

</div>

Hello Julia community I’m having trouble with the convergence of NLsolve when solving a large system of linear equations (the transition between steady states in a heterogeneous-agent model in economics). Even in its si…

---

## [NLsolve not able to render solution](https://discourse.julialang.org/t/nlsolve-not-able-to-render-solution/52319)

<div class="topic-metadata">

**Author:** [@bhaveshshrimali](https://discourse.julialang.org/u/bhaveshshrimali)\
**Replies:** 2\
**Last updated:** [December 24, 2020, 7:41am UTC](https://discourse.julialang.org/t/nlsolve-not-able-to-render-solution/52319 "2020-12-24T07:41:37Z")

</div>

Hi everyone, I am trying to use NLsolve to solve a nonlinear equation and trying to compare it with scipy.optimize.root. However, as usual, the solver isn’t rendering the solution and my guess is that I am not using it …

---

## [NLsolve false convergence](https://discourse.julialang.org/t/nlsolve-false-convergence/50922)

<div class="topic-metadata">

**Author:** [@Maria95](https://discourse.julialang.org/u/Maria95)\
**Replies:** 6\
**Last updated:** [December 1, 2020, 5:16pm UTC](https://discourse.julialang.org/t/nlsolve-false-convergence/50922 "2020-12-01T17:16:15Z")

</div>

Hi, I am a new user of Julia and this may sound like a basic question. I am trying to use NLsolve to find a solution to an equation of the form: f(x)= ∑a0+a1 \*1/(1+x)^(b\[1\])+a2 \*1/(1+x)^(b\[2\])+ a3 \*1/(1+x)^(b\[3\])+⋯ By …

---

## [Using NL solver to find zeros](https://discourse.julialang.org/t/using-nl-solver-to-find-zeros/50323)

<div class="topic-metadata">

**Author:** [@brett\_knoss](https://discourse.julialang.org/u/brett_knoss)\
**Replies:** 9\
**Last updated:** [November 20, 2020, 5:17pm UTC](https://discourse.julialang.org/t/using-nl-solver-to-find-zeros/50323 "2020-11-20T17:17:51Z")

</div>

I was using Roots.jl for this sort of problem, and wanted to use ModelingTookit.jl or NLsolver.jl (the former uses the later). using ModelingToolkit ∂xf(x)=(2 \* x) \* inv(2 \* sqrt(3 + (x ^ 2))) nl\_f = @eval eval(∂xf\[.01\]…

---

## [Solve system of nonlinear equations w/ Newton-Raphson iteration](https://discourse.julialang.org/t/solve-system-of-nonlinear-equations-w-newton-raphson-iteration/44383)

<div class="topic-metadata">

**Author:** [@Albert\_Zevelev](https://discourse.julialang.org/u/Albert_Zevelev)\
**Replies:** 10\
**Last updated:** [August 6, 2020, 5:31am UTC](https://discourse.julialang.org/t/solve-system-of-nonlinear-equations-w-newton-raphson-iteration/44383 "2020-08-06T05:31:00Z")

</div>

Consider a boring system of 4 nonlinear equations in 4 variables: a=bcd a+b=cd a+b+c=d a+b+c+d=1 Solution: (a,b,c,d)=(\\frac{1}{42}, \\frac{1}{7}, \\frac{1}{3}, \\frac{1}{2}) My code: using Zygote; NR(x0) = x0 - (fp(x…

---

## [Correct use of the sparsity pattern in NLsolve.jl for Diagonal Jacobians](https://discourse.julialang.org/t/correct-use-of-the-sparsity-pattern-in-nlsolve-jl-for-diagonal-jacobians/43469)

<div class="topic-metadata">

**Author:** [@mleprovost](https://discourse.julialang.org/u/mleprovost)\
**Replies:** 6\
**Last updated:** [July 24, 2020, 11:34pm UTC](https://discourse.julialang.org/t/correct-use-of-the-sparsity-pattern-in-nlsolve-jl-for-diagonal-jacobians/43469 "2020-07-24T23:34:01Z")

</div>

Hello, I would like to solve \\sim 400 nonlinear equations using NLsolve.jl for which the Jacobian matrix is diagonal, i.e. the components are independent of each other. I would like to use the sparsity pattern to sp…

---

## [Non-linear root-finding: Works in Matlab, but not in Julia](https://discourse.julialang.org/t/non-linear-root-finding-works-in-matlab-but-not-in-julia/14858)

<div class="topic-metadata">

**Author:** [@IljaK91](https://discourse.julialang.org/u/IljaK91)\
**Replies:** 10\
**Last updated:** [September 12, 2018, 3:44pm UTC](https://discourse.julialang.org/t/non-linear-root-finding-works-in-matlab-but-not-in-julia/14858 "2018-09-12T15:44:59Z")

</div>

Hey everyone, I have a small numerical problem here. The main idea is that I try to approximate a univariate function, that needs to satisfy some constraint, with a polynomial. I had this already working with an older v…

[Previous page](https://discourse.julialang.org/tag/nlsolve/441.md?match_all_tags=true&tags%5B%5D=nlsolve)
