The function you are minimizing is very bizarre. If I evaluate it in symbolic x
I get a continuous function:
In[35]:= f1[fmin, masterfmin, x]
Out[35]= 0.236546 + 1/x^2
The following two inputs give different results:
f1[fmin, masterfmin, 1/2]
f1[fmin, masterfmin, x] /. x -> 1/2
I suppose that Minimize
makes a symbolic evaluation of the function before inserting numbers, and this would explain the output we get.
You may want to redefine f1
so that it does not evaluate unless x
is numerical.