Implemented greedy heuristics for prerampup and postrampup phases