Optimizing solution generation algorithm by removing date object handling