N-period contracts with ordering constraints and total minimum commitments: Optimal and heuristic solutions · Study