或者可以将约束变量绑定到另一个变量(参见下面的示例)?
?- use_module(library(clpr)).
true.
% this works
?- {X >= 5.0, X =< 10.0}, minimize(X).
X = 5.0 .
% but I do not know why this fails
?- C = {X >= 5.0, X =< 10.0}, minimize(X).
false.
% and this also fails consequently
?- C = {X >= 5.0, X =< 10.0}, term_variables(C, [Var]), minimize(Var).
false.