Do this: sage: from cvxopt import solvers sage: from cvxopt.base import matrix sage: RealNumber = float sage: Integer = int sage: c = matrix([-4., -5.])
see here: http://sagenb.org/home/pub/70/ On Fri, Nov 14, 2008 at 2:18 PM, Greg <[EMAIL PROTECTED]> wrote: > > Hi, I'm using Sage 3.2rc0 and trying to get cvxopt to work. The > following works fine > sage: from cvxopt import solvers > sage: from cvxopt.base import matrix > > However, > sage: c = matrix([-4., -5.]) > > gives the error message: > > TypeError Traceback (most recent call > last) > > /home/ggdhines/<ipython console> in <module>() > > TypeError: invalid type in list > ------------------------ > This example is based on what I've been able to find about using > cvxopt with Sage. I was wondering if anyone else has had similar > problems, knows how to deal with this or knows if this is a bug that > should be reported. > > thanks, Greg Hines > > > > -- William Stein Associate Professor of Mathematics University of Washington http://wstein.org --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---