Generation of fixed-length duties by GP formulation