Production optimization through advanced and detailed scheduling