[sage-support] using cpickle to store matrix object

2013-02-20 Thread akhil
Hello, I want to use cpickle to store a matrix object in a text file. Sample code is as follows: A = matrix(GF(2),2,3) #creating a 2 * 3 matrix having all entries zero import cpickle as pickle pickle.dump(A,open(testpickle.txt,'w')) sage: Traceback (most recent call last): File

Re: [sage-support] using cpickle to store matrix object

2013-02-20 Thread Robert Bradshaw
It's cPickle with a capital P. On Wed, Feb 20, 2013 at 2:30 AM, akhil lalwani.ak...@gmail.com wrote: Hello, I want to use cpickle to store a matrix object in a text file. Sample code is as follows: A = matrix(GF(2),2,3) #creating a 2 * 3 matrix having all entries zero import

Re: [sage-support] using cpickle to store matrix object

2013-02-20 Thread akhil
Thanks a lot for your prompt help. Regards, AKHIL. -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this

[sage-support] set Gurobi parameters in MixedIntegerLinearProgram?

2013-02-20 Thread Daniel Friedan
The Gurobi and CPLEX backends for MixedIntegerLinearProgram() are extremely convenient. Is there any prospect of solver_parameter() being implemented in the Gurobi backend? At present, when I use MixedIntegerLinearProgram() with solver=Gurobi and try to set a Gurobi parameter using

Re: [sage-support] set Gurobi parameters in MixedIntegerLinearProgram?

2013-02-20 Thread Raniere Silva
Hi Daniel, The Gurobi and CPLEX backends for MixedIntegerLinearProgram() are extremely convenient. Is there any prospect of solver_parameter() being implemented in the Gurobi backend? No. Nathann work in the parameters for GLPK (http://trac.sagemath.org/sage_trac/ticket/12736) and

[sage-support] Re: set Gurobi parameters in MixedIntegerLinearProgram?

2013-02-20 Thread Nathann Cohen
Hell !!! The Gurobi and CPLEX backends for MixedIntegerLinearProgram() are extremely convenient. Glad to learn it :-) Is there any prospect of solver_parameter() being implemented in the Gurobi backend? None from me ! I use CPLEX at the moment but I never mess

[sage-support] problem with parallel decorator

2013-02-20 Thread mmarco
I am writing some complicated code to compute braid monodromy of plane curves. In order to do so, i am using a @parallel decorator on some function. But i am finding some strange behaviour: the first time that i run it, it works ok. But after that, if i try to re-run the same computation, i

Re: [sage-support] problem with parallel decorator

2013-02-20 Thread William Stein
On Wed, Feb 20, 2013 at 11:27 AM, mmarco mma...@unizar.es wrote: I am writing some complicated code to compute braid monodromy of plane curves. In order to do so, i am using a @parallel decorator on some function. But i am finding some strange behaviour: the first time that i run it, it works

Re: [sage-support] problem with parallel decorator

2013-02-20 Thread mmarco
I have opened ticket #14154 with a more detailed description, and the code that triggers the problem (eventually). El miércoles, 20 de febrero de 2013 22:21:22 UTC+1, William escribió: On Wed, Feb 20, 2013 at 11:27 AM, mmarco mma...@unizar.es javascript: wrote: I am writing some