My code is not executing the fitting command and return an empty plot. Appreciate any pointers. Thanks
You are using the syntax of FindMinimum in NMinimize.
NMinimize does not use starting points.
Here is a simple code that uses “starting points” NMinimize[{x^2 + (y - .5)^2, y >= 0 && y >= x + 1}, {x, y}]
Starting points are entered like this:
NMinimize[{x^2 + (y - .5)^2, y >= 0 && y >= x + 1}, {{x, stargingPointX},{y,startingPointY}}]
Below shows a simple example of how to specify “starting points” in NMinimize[]. The methods used by NMinimize[] usually need several starting points, at least n+1, where n is the number of variables.
NMinimize[{x^2 + (y - .5)^2, y >= 0 && y >= x + 1}, {x, y},
Method -> {Automatic, "InitialPoints" -> {{0, 1}, {0, 4}, {2, 4}}}]
I believe NMinimize[] will add extra points if needed. A specific method instead of Automatic may be used.