Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Is it possible to define non-standard domain?' topicStudent Support Forum > General > "Is it possible to define non-standard domain?"

Next Comment >Help | Reply To Topic
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: ,

Subject (listing for 'Is it possible to define non-standard domain?')
Author Date Posted
Is it possible to define non-standard domain? Maximko 06/06/12 08:09am
Re: Is it possible to define non-standard domain? Michael 06/06/12 6:35pm
Next Comment >Help | Reply To Topic