ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Tue, 13 Nov 2012 09:54:08 +0100python -sagehttps://ask.sagemath.org/question/9529/python-sage/Hi
I am have an optimization problem, when I run it for small amount of input it is ok , but for large input, It give : KeyboardInterrupt
I will appreciate if one can help me ?
the error is
Traceback (most recent call last):
File "final2.py", line 181, in <module>
scheduling.add_constraint(Sum(A[s][d][k][o][p][t] for p in range (_sage_const_0 ,V)) <=_sage_const_1 )
File "mip.pyx", line 2168, in sage.numerical.mip.Sum (sage/numerical/mip.c:12041)
File "final2.py", line 181, in <genexpr>
scheduling.add_constraint(Sum(A[s][d][k][o][p][t] for p in range (_sage_const_0 ,V)) <=_sage_const_1 )
KeyboardInterrupt
Tue, 13 Nov 2012 07:23:59 +0100https://ask.sagemath.org/question/9529/python-sage/Comment by kcrisman for <p>Hi </p>
<p>I am have an optimization problem, when I run it for small amount of input it is ok , but for large input, It give : KeyboardInterrupt
I will appreciate if one can help me ?</p>
<p>the error is</p>
<pre><code>Traceback (most recent call last):
File "final2.py", line 181, in <module>
scheduling.add_constraint(Sum(A[s][d][k][o][p][t] for p in range (_sage_const_0 ,V)) <=_sage_const_1 )
File "mip.pyx", line 2168, in sage.numerical.mip.Sum (sage/numerical/mip.c:12041)
File "final2.py", line 181, in <genexpr>
scheduling.add_constraint(Sum(A[s][d][k][o][p][t] for p in range (_sage_const_0 ,V)) <=_sage_const_1 )
KeyboardInterrupt
</code></pre>
https://ask.sagemath.org/question/9529/python-sage/?comment=18716#post-id-18716Also, if you can either post or put a link to the full code, or construct a small example, that would really help; at this point it's very hard to tell what is wrong, if anything.Tue, 13 Nov 2012 09:06:51 +0100https://ask.sagemath.org/question/9529/python-sage/?comment=18716#post-id-18716Comment by DSM for <p>Hi </p>
<p>I am have an optimization problem, when I run it for small amount of input it is ok , but for large input, It give : KeyboardInterrupt
I will appreciate if one can help me ?</p>
<p>the error is</p>
<pre><code>Traceback (most recent call last):
File "final2.py", line 181, in <module>
scheduling.add_constraint(Sum(A[s][d][k][o][p][t] for p in range (_sage_const_0 ,V)) <=_sage_const_1 )
File "mip.pyx", line 2168, in sage.numerical.mip.Sum (sage/numerical/mip.c:12041)
File "final2.py", line 181, in <genexpr>
scheduling.add_constraint(Sum(A[s][d][k][o][p][t] for p in range (_sage_const_0 ,V)) <=_sage_const_1 )
KeyboardInterrupt
</code></pre>
https://ask.sagemath.org/question/9529/python-sage/?comment=18714#post-id-18714I think some timers use KeyboardInterrupt as the signal; maybe that's what's going on.Tue, 13 Nov 2012 09:54:08 +0100https://ask.sagemath.org/question/9529/python-sage/?comment=18714#post-id-18714Comment by kcrisman for <p>Hi </p>
<p>I am have an optimization problem, when I run it for small amount of input it is ok , but for large input, It give : KeyboardInterrupt
I will appreciate if one can help me ?</p>
<p>the error is</p>
<pre><code>Traceback (most recent call last):
File "final2.py", line 181, in <module>
scheduling.add_constraint(Sum(A[s][d][k][o][p][t] for p in range (_sage_const_0 ,V)) <=_sage_const_1 )
File "mip.pyx", line 2168, in sage.numerical.mip.Sum (sage/numerical/mip.c:12041)
File "final2.py", line 181, in <genexpr>
scheduling.add_constraint(Sum(A[s][d][k][o][p][t] for p in range (_sage_const_0 ,V)) <=_sage_const_1 )
KeyboardInterrupt
</code></pre>
https://ask.sagemath.org/question/9529/python-sage/?comment=18717#post-id-18717Typically a `KeyboardInterrupt` is just that. Did you do `Ctrl-C` or something? Just asking, as presumably you wouldn't have asked if that was the case. Tue, 13 Nov 2012 09:06:19 +0100https://ask.sagemath.org/question/9529/python-sage/?comment=18717#post-id-18717