Question on Scipy - Minimize. Adding additional constraints
I assume problem is in accessing your columns, elements of the V matrix, since you say:
"it should look like:"

Well to actually write down these constraints, you just need to access your columns in the functions your defined in the cons dictionary.

Lets say you have your data V

&gt; array([[ 0.00749589,  0.01255155,  0.02396251,  0.04750988, 0.09495377]
&gt;        [ 0.01255155,  0.02510441,  0.04794055,  0.09502834,  0.18996269],
&gt;        [ 0.02396251,  0.04794055,  0.09631614,  0.19092151,  0.38165151],
&gt;        [ 0.04750988,  0.09502834,  0.19092151,  0.38341252,  0.7664427 ],
&gt;        [ 0.09495377,  0.18996269,  0.38165151,  0.7664427,   1.53713523]])


You should define your constraints dictionary in the following way (for example):

&gt; cons = ({'type': 'eq', 'fun': lambda x:  x[0] - 2 * x[1] + 2},  
&gt; {'type': 'ineq', 'fun': lambda x: -x[0] - 2 * x[1] + 6},       
&gt; {'type': 'ineq', 'fun': lambda x: -x[0] + 2 * x[1] + 2})


While indexing desired columns inside of the lambda function.