title: Scipy Minimize: minimize a function over a set of data
body: <p>I am a very new student to both machine learning and python. I got a question when I was trying to minimize my Expected Improvement function. The purpose of minimize EI function is to predict next best X. How can I make it to choose the X in my data set?</p>
  
  <p>For example, x-axis of my data set looks like (0,1,0.2,0.4,0.8,..2.4,2.6), for now my code will predict X at any point in a range such as 0.382727 which I don't have in my data set and don't have a y-value for it. </p>
  
  <p>What should I do in my case? Is it possible to use constraints scipy.minimize to fix this problem or do you have any other suggestion for me?</p>
  
  <p>Thank you so much!</p>