A configuration for randomizing formulas. The following things can be configured:
- the seed -- use a value
!= 0 to get deterministic results
- the variables -- if
variables is not null this list of variables will be used,
otherwise numVars variables will be generated. The probabilities of being chosen are the
same for all variables.
- weights for different formula types, defining how often a formula type is generated compared to other types
- weights for comparator types in pseudo boolean constraints and cardinality constraints
- maximum numbers of operands for conjunctions, disjunctions, PBCs, and CCs
Note that the weights can only be applied for inner nodes of the generated formula,
since the 'leaves' of a formula in LogicNG are
always literals or PBCs. So the weight of literals and PBCs
will effectively be higher and the weights of all other formula types (especially conjunctions and disjunctions)
will be lower. Similarly, the weight of constants will usually be lower, because they are always reduced in LogicNG
unless they are a single formula.