Can clp(fd) programs be run under Ciao. I have read through the documentation and see that it supports clp(r) and clp(q) but no mention of fd. I have a simple program as follows I am trying to run.
/* A kid goes into a grocery store and buys four items. The cashier charges $7.11. The kid pays and is about to leave when the cashier calls the kid back, and says "Hold on, I multiplied the four items instead of adding them; I'll try again... Gosh, with adding them the price still comes to $7.11"! What were the prices of the four items? */
go :- cputime(X), Vars=[A,B,C,D], Vars in 1..711, A+B+C+D #= 711, T1 #= (A * B) // 100, T2 #= (C * D) // 100, T1 * T2 #= 711 * 100, labeling(Vars), cputime(Y), T is Y-X, write(Vars), write(' found in '), write(T), write(' milliseconds'),nl.
Thanks,
Rob Dreyfoos ----------------------------- President Photo Electronics Corporation 17280 Woodinville-Redmond Road NE, Suite 805 Woodinville, WA 98072-9088 Voice: 425-806-9500 Fax: 425-806-0503 Email: rwdreyfoos(a)att.net -----------------------------