Stochastic approach for power generation optimal design and scheduling on ships