Input variable domains as parameters of a prolog program

Chuang Liu <[email protected]>
Newsgroups gmane.comp.gnu.prolog.general
Message-ID <OF997336AF.5C3EB135-ON85256EF6.0064CB20-85256EF6.0065043F@us.ibm.com>
Hi all: 
I want to solve a CSP problem with several variables a, b, and c, and a 
constraint 'the sum of a, b, and c is less than a constant T'. Because I 
need to solve this CSP problem repeatedly with different  variable 
domains, is it possible to write a prolog program that takes variable 
domains as input and solves the problem accordingly? 
Assume the executable file compiled from the prolog program is 'app'.  I 
would like to run it like "app <input file name>'. The input file contains 
the values of  variable domains. . 

Any suggestions are appreciated.  Thanks 

Chuang

_______________________________________________
Users-prolog mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/users-prolog
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.