An approach to control automated warehouse systems