[sage-devel] Re: Some quick git tips

2016-05-12 Thread Arpit Merchant
Hi, I was wondering... So, I have my local install of Sage 7.1 from source. I > didn't get the source using git, I downloaded it from the website. I've > made a local repository for Sage on my computer, and also made a remote > repository for it on my github. However, I don't think it is

[sage-devel] Re: copying MixedIntegerLinearProgram problem

2016-05-12 Thread Matthias Koeppe
Please see http://trac.sagemath.org/ticket/20461 Comments welcome. On Thu, May 12, 2016 at 1:02 AM, Dima Pasechnik wrote: > Hi, > Matthias Koeppe did a lot of work on MILPs recently, in particular on > copying LPs, see e.g. > http://trac.sagemath.org/ticket/20414 > and the

Re: [sage-devel] Re: How to implement conversion between LaurentPolynomial and Symbolic rings?

2016-05-12 Thread mmarco
> > > var('x') > R=LaurentPolynomialRing(QQ,'x') > R(1+1/x) > > That is the interface that makes sense to me. That is, enable conversion. So, would it make sense to enable it by a `convert_method_name` ? -- You received this message because you are subscribed to the Google Groups

Re: [sage-devel] copying MixedIntegerLinearProgram problem

2016-05-12 Thread 'Martin R' via sage-devel
> So, what is the proper way to do it? As I wrote, it's not really an >> option to solve the whole problem for each new constraint... >> > > add a constraint, and solve again? > > Yes, and then? I don't think I can remove it again, can I? As I wrote, pseudo-code is as follows, and keep in

Re: [sage-devel] copying MixedIntegerLinearProgram problem

2016-05-12 Thread Dima Pasechnik
On Thursday, May 12, 2016 at 4:16:07 PM UTC+1, Martin R wrote: > > So, what is the proper way to do it? As I wrote, it's not really an > option to solve the whole problem for each new constraint... > add a constraint, and solve again? Dima > > Martin > -- You received this message

Re: [sage-devel] copying MixedIntegerLinearProgram problem

2016-05-12 Thread 'Martin R' via sage-devel
So, what is the proper way to do it? As I wrote, it's not really an option to solve the whole problem for each new constraint... Martin -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails

Re: [sage-devel] Re: How to implement conversion between LaurentPolynomial and Symbolic rings?

2016-05-12 Thread Nils Bruin
On Thursday, May 12, 2016 at 4:56:54 AM UTC-7, Ralf Stephan wrote: > > On Thu, May 12, 2016 at 10:48 AM mmarco > wrote: > >> But even if we implement expression.laurent_polynomial(), it wouldn't >> automatically allow conversion from SR to LaurentPolynomialRing, would it? >>

Re: [sage-devel] copying MixedIntegerLinearProgram problem

2016-05-12 Thread Jeroen Demeyer
On 2016-05-12 15:32, Vincent Delecroix wrote: Hi, The point is that you are not able anymore to use variables from other problems. For good reasons obviously... -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group

Re: [sage-devel] copying MixedIntegerLinearProgram problem

2016-05-12 Thread Vincent Delecroix
Hi, The point is that you are not able anymore to use variables from other problems. Namely "assignment" is a variable from "p" not "p_new". Vincent On 12/05/16 02:18, 'Martin R' via sage-devel wrote: Hi there! I am having a severe problem with a program of mine that stopped working, very

Re: [sage-devel] Re: How to implement conversion between LaurentPolynomial and Symbolic rings?

2016-05-12 Thread Ralf Stephan
On Thu, May 12, 2016 at 10:48 AM mmarco wrote: > But even if we implement expression.laurent_polynomial(), it wouldn't > automatically allow conversion from SR to LaurentPolynomialRing, would it? > Right, it's conversion on demand. -- You received this message because you

[sage-devel] Certain warning messages are issued many times

2016-05-12 Thread Johan S . R . Nielsen
Many warning messages are currently being issued every time the offending code is being run, instead of only the first time: sage: C = codes.RandomLinearCode(4, 2, GF(2)) sage: C.decode(C.ambient_space().random_element()) /home/jsrn/local/sage/sage-6.3/src/bin/sage-ipython:1:

[sage-devel] Re: memory management issue: deleted variables not released

2016-05-12 Thread Denis
Sorry for the stupid question - I did not realize that some old sources are to be found among the new sources :) Denis -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an

[sage-devel] Re: memory management issue: deleted variables not released

2016-05-12 Thread Denis
Thanks for the suggestions, I will try to do that. In the meantime, I tried 7.1 on a machine with 100G of RAM. Now it works, but it costs me 4.3 G of RAM the first time round - that is the same calculation which used 1G in 7.0. Re-running it a few times with or without clobbering BIG - I am

Re: [sage-devel] Re: How to implement conversion between LaurentPolynomial and Symbolic rings?

2016-05-12 Thread mmarco
But even if we implement expression.laurent_polynomial(), it wouldn't automatically allow conversion from SR to LaurentPolynomialRing, would it? We would need to populate the conversion list somehow. El jueves, 12 de mayo de 2016, 5:33:50 (UTC+2), Ralf Stephan escribió: > > Then making it

[sage-devel] Re: copying MixedIntegerLinearProgram problem

2016-05-12 Thread Dima Pasechnik
Hi, Matthias Koeppe did a lot of work on MILPs recently, in particular on copying LPs, see e.g. http://trac.sagemath.org/ticket/20414 and the meta-ticket http://trac.sagemath.org/ticket/20302 Not sure whether he reads this, I cc to him. I presume you got one of these updates messing up your code.

[sage-devel] Re: Some quick git tips

2016-05-12 Thread Volker Braun
The developer guide has a lot of material about git: http://doc.sagemath.org/html/en/developer/index.html On Thursday, May 12, 2016 at 7:06:36 AM UTC+2, saad khalid wrote: > > Hey guys: > > I was wondering... So, I have my local install of Sage 7.1 from source. I > didn't get the source using

[sage-devel] copying MixedIntegerLinearProgram problem

2016-05-12 Thread 'Martin R' via sage-devel
Hi there! I am having a severe problem with a program of mine that stopped working, very likely after upgrading to 7.2.beta5, but I'm afraid I don't know from which version. (I believe something after 7.1) The error I get is: ValueError: Variable MIPVariable of dimension 1 is a variable from