title: Scipy minimization with multiple constraints
body: <p>I want to minimize a functional using the scipy module scipy.optimize and I'm struggling to understand how to implement my constraints. The extremal points of my solution must be exactly zero and one, so right now I'm imposing</p>
  
  <pre><code>cons = ({'type': 'eq',
            'fun' : lambda x: x[0]}, #the initial point is 0
          {'type': 'eq',
            'fun' : lambda x: x[-1]-1.}) #the final point is 1
  </code></pre>
  
  <p>but I also need every other point to be strictly higher than 0 and smaller than 1. How can I explicitly add this further constraint for all the other points of my array? </p>