【发布时间】:2014-04-21 19:54:44
【问题描述】:
我想最大化两个变量之间的差异:
:- use_module(library(clpfd)).
maximize(X) :-
X = [A,B],
X ins 1..5,
% I want to write a constraint to have maximum difference between A and B.
【问题讨论】:
标签: prolog swi-prolog constraint-programming clpfd