| Author |
Comment/Response |
Maximko
|
06/06/12 08:09am
I have N equations with M unknowns (N<M) plus a few inequalities with these unknowns. Unknowns are non-negative integers. I use FindInstance[expr,domain] with domain "Integers" to find at least one solution. But suppose I know in advance the values that unknowns may take, e.g. {0,1,15,31,57,91,100,107,130}. It would be ideally if I could define my own domain and use it instead of Integers, but that's not gonna work. Of course, it is possible to add into the expression additional stuff like ... && (x==0 || x==1 || x==15 || x==31...) && (y==0 || y==1 || y==15...) && ... and so on for each unknown. But that is too long! Is there another way to make it?
URL: , |
|