Abstract-This paper considers a matrix-based discrete event control approach for a warehouse. The control system is organized in two modules: a dynamic model and a controller. The model provides a complete description of the discrete event dynamics of the warehouse, and is used as a means to track the stock-keeping units, and identify and inhibit control actions that violate system's constraints. The controller has several functions. At the supervisory level, it is in charge of inhibiting operations that may lead to deadlocks, commanding the actual start of the task, and the release of the resources once a task is completed. At the operational level, it is in charge of performing decisions regarding the order in which allowable tasks waiting for service should be performed. All the modules are implemented using the same matrix-based formalism, and thus integrated with each other. The main advantages of the approach are the inherent modularity (the matrix-based control is obtained by assembling individual atomic components), and the integration between the various modules, which permits a better overall resource utilization. Simulation examples describing an actual industrial warehouse are finally provided to emphasize the main advantages of the proposed approach.Note to Practitioners-This paper illustrates the application of a discrete-event modeling and control framework based on a matrix notation to an automated warehouse. The material handling equipment must continuously transfer stock-keeping units between various buffers using a network of interconnected rail guided vehicles. Since transfer requests are issued at random times, the role of the control system is extremely challenging, as it must handle low level tasks (synchronizing hardware, avoiding conflicts) and high level ones (allocating the rail guided vehicles efficiently to avoid congestions and long service times). Giving a complete mathematical characterization of such a system is challenging, due to its inherently turbulent and discrete-event nature. The proposed original approach allows one to attack the problem from a modular, divide-and-conquer perspective. In fact, the complete model of the system is achieved by a sequence of simple modeling steps, starting from the description of the atomic components of the system, and progressively specifying constraints, objectives and control rules to obtain a complete characterization of the entire system within a unified formalism based on binary matrices. Since the final model integrates supervisory and operational functions, it permits to perform the allocation of rail guided vehicles more effectively, using in- formation that is generally unavailable to the dispatching modules. Examples and numerical results based on the equipment actually operating in the warehouse are also provided to illustrate the potential of the approach.