[sage-support] add_constraint becomes slow in presence of many constraints

2014-04-21 Thread Nathann Cohen
Hello Peter ! Sorry for my late answer, I am away from everything at the moment, and I am reduced to answer your message with a mobile phone :-) I believe that this thing is slow because we did not inform the LP data structure (which we do not encode ourselves in Sage) or the problem's size.

[sage-support] add_constraint becomes slow in presence of many constraints

2014-04-08 Thread Peter Mueller
While analyzing why a program becomes unexpectedly slow (despite moderate memory usage and no swapping), I found out that the time consumption of the method add_constraint slows down if there are already many constraints. The following simple (and silly) program displays this: P =