Bayesian approach for feasibility determination and spatiotemporal scheduling