Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

search in a narrow range of values using IntergerListsLex

Hello everyone,

I am having trouble finding solutions to a system of equations because the search involves so many variables that the computation time is large. I am using

for A in IntegerListsLex(length=30, min_part=0, max_part=100, min_slope=0): 

     if...(properties of A):

          print(A)

The problem is it is searching through a bunch of values that I know don't need to be there. How can I get rid of particular search values, like say I want to avoid ever using the numbers 7,11,13 can I somehow remove them from the search parameters?

Thank you all so much!!!

click to hide/show revision 2
None

search in a narrow range of values using IntergerListsLex

Hello everyone,

I am having trouble finding solutions to a system of equations because the search involves so many variables that the computation time is large. I am using

for A in IntegerListsLex(length=30, min_part=0, max_part=100, min_slope=0): 

     if...(properties of A):

          print(A)

The problem is it is searching through a bunch of values that I know don't need to be there. How can I get rid of particular search values, like say I want to avoid ever using the numbers 7,11,13 can I somehow remove them from the search parameters?

Thank you all so much!!!