Harbor tugs with coaxial parallel diesel-electric hybrid propulsion must switch among operating modes under rapidly varying loads. Conventional threshold-based strategies select modes from current conditions without optimizing future mode sequences. This study develops a receding-horizon method based on Dijkstra's algorithm. A three-layer Modelica model integrates the physical system, supervisory strategy, and execution logic. With a 10 s update interval and a 40 s prediction horizon, candidate power take-in, power take-home, and power take-off sequences are represented as a layered weighted directed graph. Four 3600 s scenarios with different load profiles and initial battery states of charge (SOC) are evaluated. In the composite harbor-operation cycle, task fuel consumption decreases by 12.82%, mode switches decrease from 12 to 7, and battery energy throughput decreases by 21.13% relative to the threshold-based strategy. The clutch engagement wear index and economic cost index decrease by 47.52% and 31.26%, respectively. Terminal SOC is 0.6648 for the optimized strategy and 0.8945 for the baseline. Thus, the fuel reduction accompanies greater net battery energy use and does not establish an efficiency improvement at equal terminal stored energy. The results characterize trade-offs among task fuel consumption, storage utilization, and switching performance.