Declares one permutation of a program(): size items in size slots,
one item per slot (see perm_var()). perm_var() builds these for you.
Arguments
- size
How many items, at least 2.
- start
The arrangement the search starts from:
start[i]is the slot of itemi, sostartcontains each of the numbers 1 tosizeonce.integer()starts with itemiin sloti.- fixed
Whether the permutation is fixed at
start, which must then be given. This is howevaluate()andresample()keep the arrangement of a solution.- precede
A list of pairs
c(before, after), each requiring itembeforeto be in an earlier slot than itemafter.
Value
A plain list without a class, with the fields
kind = "permutation", size, start, fixed and precede. It is an
element of the named list a program() takes as structures, and the
element's name is the name ir_struct_ref() refers to.