Generalized minimal principle for rotor filaments.