Please help me to find out where is the mistake of the following code. I've seen that there is a thread with a similar problem, but the solution provided there does not solve my problem, unfortunately.
code:
A_ub=[[0, 0, 0, 0, 0, 0, 1, 0, 0, 0, -1], [0, 0, 0, 0, 0, 0, 0, 1, 0, 0, -1], [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, -1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 1, -1]]
b_ub=[0, 0, 0, 0]
A_eq=[[0, -0.7092198581560284, 0.7092198581560284, 0, 0, 0, 0, 0, 0, 0, 0], [-1, -0.7092198581560284, -0.7092198581560284, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, -1, 1, 0, 0, 0, 0, 0, 0], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0.7092198581560284, 0, 1, 0, 1, 1, 0, 0, 0, 0], [0, 0.7092198581560284, 0, 0, 0, 0, 0, 1, 0, 0, 0], [0, 0, -0.7092198581560284, 0, -1, -1, 0, 0, 1, 0, 0], [0, 0, 0.7092198581560284, 0, 0, 0, 0, 0, 0, 1, 0]]
b_eq=[0, 1, 0, 1, 0, 0, 0, 0]
c=[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1]
res = linprog(c, A_ub, b_ub,A_eq, b_eq)
print res
I obtain the following error:
fun: 2.0
message: 'Optimization failed. Unable to find a feasible starting point.'
nit: 5
status: 2
success: False
x: nan