In[1]:= int = Interpolation[Table[{i, (i - 5)^2}, {i, 10}]]
Out[1]= InterpolatingFunction[{{1, 10}}, {
5, 3, 0, {10}, {4}, 0, 0, 0, 0, Automatic, {}, {},
False}, {{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}}, {{16}, {9}, {4}, {1}, \
{0}, {1}, {4}, {9}, {16}, {25}}, {Automatic}]
In[5]:= NMinimize[{o, o == int[x]}, {x, 1, 10}]
During evaluation of In[5]:= InterpolatingFunction::dmval: Input value {0.652468} lies outside the range of data in the interpolating function. Extrapolation will be used.
During evaluation of In[5]:= NMinimize::bcons: The following constraints are not valid: {o==InterpolatingFunction[{{1,10}},{5,3,0,{10},{4},0,0,0,0,Automatic,{},{},False},{{1,2,3,4,5,6,7,8,9,10}},{{16},{9},{4},{1},{0},{1},{4},{9},{16},{25}},{Automatic}][x]}. Constraints should be equalities, inequalities, or domain specifications involving the variables.
Out[5]= NMinimize[{o,
o == InterpolatingFunction[{{1, 10}}, {
5, 3, 0, {10}, {4}, 0, 0, 0, 0, Automatic, {}, {}, False}, {{1,
2, 3, 4, 5, 6, 7, 8, 9, 10}}, {{16}, {9}, {4}, {1}, {0}, {1}, {
4}, {9}, {16}, {25}}, {Automatic}][x]}, {x, 1, 10}]