precede(P, before, after) requires item before to be in an earlier
slot of the permutation P than item after: a pickup before its
delivery, or a job before the job that needs its output. The service only
considers arrangements that meet the requirement, so every solution meets
it.
Arguments
- P
A permutation from
perm_var().- before, after
Items: whole numbers from 1 to the size of the permutation.