Exception: type 'sage.rings.real_mpfr.RealLiteral' is not a valid type for a Constant value.
I added cvxpy and ecos to my Sage installation. When I run the following code for the first time, I get the exception in the title. However, the second time the code runs fine.
from pylab import *
from cvxopt import matrix as m
from cvxpy import *
x = Variable(1)
y = Variable(1)
constraints = [ x+y >= -1.0, x+y <= 10.0]
objective = Maximize(x+y)
p = Problem(objective, constraints)
result = p.solve()
The optimal value