Exact and Heuristic Solutions for a ShipmentProblem with Given Frequencies