Revision history [back]

Error with semi-definite program solver

Hello,

I use sage 7.1 on a debian computer. I am trying to use the sdp solver, but:

p = SemidefiniteProgram()
omega = p.new_variable()
p.set_objective(omega[0])
p.show()


returns an error:

ValueError: need more than 1 value to unpack


What does it mean?

Antoine

Error with semi-definite program solver

Hello,

I use sage 7.1 on a debian computer. I am trying to use the sdp solver, but:

p = SemidefiniteProgram()
omega = p.new_variable()
p.set_objective(omega[0])
p.show()


returns an error:

ValueError: need more than 1 value to unpack


What does it mean?

Antoine

After some tests...

I don't understand what happens but here are some tests I have done:

The sdp solver works when I put all the variables in the objective. So it works with:

p = SemidefiniteProgram()
omega = p.new_variable()
p.set_objective(omega[0] + 0*omega[1])
p.show()


If I put the objective after the constraints I get the error again. For example with

p = SemidefiniteProgram()
omega = p.new_variable()

ValueError: need more than 1 value to unpack