# FindFit question - find multiple solutions in one run?

**URL:** <https://community.wolfram.com/t/findfit-question-find-multiple-solutions-in-one-run/713>\
**Category:** Questions\
**Tags:** mathematica, calculus, computable-document-format\
**Created:** [October 15, 2013, 9:28am UTC](https://community.wolfram.com/t/findfit-question-find-multiple-solutions-in-one-run/713 "2013-10-15T09:28:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![merascu](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@merascu](https://community.wolfram.com/u/merascu)\
**Post date:** [October 15, 2013, 9:28am UTC](https://community.wolfram.com/t/findfit-question-find-multiple-solutions-in-one-run/713/1 "2013-10-15T09:28:20Z")

</div>

Dear all,

is there a way that FindFit gives all the possible values for the specified parameters?

For example, in the file at the url [http://www.risc.jku.at/people/merascu/FindFit.nb](http://www.risc.jku.at/people/merascu/FindFit.nb), I should basically have 4 values for each of the parameters a and b (3 for each a and b determining the the curves, and 1 a and 1 b for the isolated point at the left most of the graphic).  
If is not possible with FindFit, is there another way?

Thanks

---

<div class="post-metadata">

**Author:** ![fkampas](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/fkampas/32/41217_2.png) [@fkampas](https://community.wolfram.com/u/fkampas)\
**Post date:** [October 15, 2013, 2:21pm UTC](https://community.wolfram.com/t/findfit-question-find-multiple-solutions-in-one-run/713/2 "2013-10-15T14:21:32Z")

</div>

If you generate the equations describing the fitting parameters, you could try solving them with FindRoot, using multiple starting points. Given the number of data points, I don’t think that NSolve would be able to handle the problem.

---

<div class="post-metadata">

**Author:** ![cfrench](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/cfrench/32/27859_2.png) [@cfrench](https://community.wolfram.com/u/cfrench)\
**Post date:** [October 15, 2013, 4:37pm UTC](https://community.wolfram.com/t/findfit-question-find-multiple-solutions-in-one-run/713/3 "2013-10-15T16:37:52Z")

</div>

In the ListPlot it looks like you have data points falling along several curves. What you really have is a flat list of data points and what looks like curves are not made up of sequential points, but are quite interlaced together. Have a look at the same ListPlot with the option Joined → True

```auto
ListPlot[lstQ, ImageSize -> {1200, 339}, AspectRatio -> Full , Joined -> True, PlotRange -> All]

```

The data list can be split up this way into four separate runs of data. The resulting split is not perfect.

```auto
ListPlot[Transpose[Partition[lstQ, 4, 4]], ImageSize -> {1200, 339}, AspectRatio -> Full , Joined -> True, PlotRange -> All]

```

I think that the fitting functions will not be happy, till the data for a single curve can be isolated out. Then you can fit the three or four separately.
