给定 9 个变量 x1 x2 x3 x4 x5 x6 x7 x8 x9,我想给它们分配实数,这样:
exactly 1 pair among them sums to 2
exactly 2 pairs among them sum to 3
exactly 3 pairs among them sum to 4
exactly 4 pairs among them sum to 5
exactly 5 pairs among them sum to 6
exactly 6 pairs among them sum to 7
exactly 5 pairs among them sum to 8
exactly 4 pairs among them sum to 9
exactly 3 pairs among them sum to 10
exactly 2 pairs among them sum to 11
and exactly 1 pair among them sums to 12
这是否可以以某种方式建模为约束满足问题?或者如何解决这个问题?
谢谢,