Rule based optimization for a bulk handling port operations