The Energy Optimizer for Electric Locomotives (EOEL) is an advanced onboard advisory system designed to help train operators conserve energy and maintain scheduled travel times. Utilizing optimal control theory, EOEL generates and adjusts driving profiles in real-time based on route, topography, and track conditions, ensuring efficient operations and punctual arrivals for both freight and passenger trains.