python -sage

asked 2012-11-13 00:23:59 -0600

updated 2012-11-13 01:02:06 -0600

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
edit retag flag offensive close merge delete

Comments

Typically 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.

kcrisman gravatar imagekcrisman ( 2012-11-13 02:06:19 -0600 )edit
1

Also, 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.

kcrisman gravatar imagekcrisman ( 2012-11-13 02:06:51 -0600 )edit
1

I think some timers use KeyboardInterrupt as the signal; maybe that's what's going on.

DSM gravatar imageDSM ( 2012-11-13 02:54:08 -0600 )edit