Give leftover timber the first cut. See which pieces fit your rack before opening another full board.
All boards must have the same cross-section and grade. Each piece costs its length plus one saw kerf, even for an exact end. Best-fit decreasing is a heuristic. Compare it with planning the same pieces on fresh boards only.