1. A scheduling system for planning and scheduling production in an industrial production system, which scheduled production is to be executed by the production system under control of a manufacturing execution system, wherein: said scheduling system is a multi-agent scheduling system; at least a part of a behavior of agents in said multi-agent system is customizable by means of visually defined scheduling rules; said scheduling system and manufacturing execution system share a definition and execution environment comprising: editor means for visually defining both said scheduling rules and control rules of the manufacturing execution system, and an execution engine for executing said scheduling rules and control rules and making scheduling decisions based on an execution of said scheduling rules and control rules.