}
List<FuzzyLiteral> res = new ArrayList();
for (int i = 0; i < numberOfConstraints; i++) {
FuzzyExpression exp = getRandomMixedExpression(variables, pNegation, pMinimum, nrVariablesPerClause);
while (exp.getVariables().size() != nrVariablesPerClause)
exp = getRandomMixedExpression(variables, pNegation, pMinimum, nrVariablesPerClause);
double upperbound = 1;
double lowerbound;
if (rand.nextDouble() < 0.5)
lowerbound = floor(exp.eval(interpretation1));
else
lowerbound = floor(exp.eval(interpretation2));
res.add(new FuzzyLiteral(lowerbound, upperbound, exp));
}
return res;
}