| Author |
Comment/Response |
jf
|
07/28/12 2:51pm
The constraints may be overdone or inconsistent.
You can try specifying small starting ranges for the parameters. For example, {p, low, high}.
In[1]:= NMinimize[-x Sin[x] + 3 Cos[x] + x/1000, x]
Out[1]= {-3.91085, {x -> 2.57025}}
In[2]:= NMinimize[-x Sin[x] + 3 Cos[x] + x/1000, {x, -100, 100}]
Out[2]= {-221.74, {x -> -221.5}}
URL: , |
|