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, the scheduling system comprising: a multi-agent scheduling system; at least a part of a behavior of agents in said multi-agent scheduling system being customizable by visually defined scheduling rules; a definition and execution environment, shared by the scheduling system and manufacturing execution system, the definition and execution environment including: an editor operable to visually define 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.