Optimization Modeling of Fixed-Length Duties