Added a variables tag in criteriaLinearConstraints to declare variables which will be used in the constraints later. Also changed the variable tag in constraint to variableID, as it only needs to reference one of the variables defined earlier.