Scheduling with Two Types of Penalties Under Uncertainty and Its Application to Maintenance Planning