Method for computer-aided optimization of an occupancy of magazine slots (P) by tools within at least one tool magazine (R) for a machine tool, wherein one or more workpieces of a workpiece type are manufactured by using the tools provided by a magazine device at a supply point, having the following steps: a) detecting a set of magazine slots (P) in at least one tool magazine (R), b) detecting a set of tools , c) detecting permissible tools per magazine slot, d) detecting a sequence of work steps to be performed by the machine tool on a workpiece, wherein a tool envisaged for a work step of the sequence is used to manufacture the workpiece, e) detecting work step times that are each needed to perform an individual work step on the workpiece, f) detecting one or more supply times, on the basis of the sequence of work steps to be performed and the occupancy of the magazine slots, that are each needed by the magazine device at the supply point to provide a tool for the next work step, g) optimizing the occupancy of the magazine slots by tools, so that the overall waiting period is minimized, wherein the overall waiting period is made up of individual waiting periods that each result from the difference between the detected supply time and the detected work step time if the value of the difference is positive, otherwise the individual waiting period assumes the value zero, chatracterized by further steps of: - detecting a set of all half-slots, the half-slots being the locations that can be covered by other tools in adjacent magazine slots, - detecting a subset of half-slots covered whenever there is a tool in one magazine slot, - wherein allowance is made for these sets when optimizing the occupancy, with the aim of no half-slot being covered by multiple tools. a) detecting a set of magazine slots (P) in at least one tool magazine (R), b) detecting a set of tools , c) detecting permissible tools per magazine slot, d) detecting a sequence of work steps to be performed by the machine tool on a workpiece, wherein a tool envisaged for a work step of the sequence is used to manufacture the workpiece, e) detecting work step times that are each needed to perform an individual work step on the workpiece, f) detecting one or more supply times, on the basis of the sequence of work steps to be performed and the occupancy of the magazine slots, that are each needed by the magazine device at the supply point to provide a tool for the next work step, g) optimizing the occupancy of the magazine slots by tools, so that the overall waiting period is minimized, wherein the overall waiting period is made up of individual waiting periods that each result from the difference between the detected supply time and the detected work step time if the value of the difference is positive, otherwise the individual waiting period assumes the value zero, chatracterized by further steps of: - detecting a set of all half-slots, the half-slots being the locations that can be covered by other tools in adjacent magazine slots, - detecting a subset of half-slots covered whenever there is a tool in one magazine slot, - wherein allowance is made for these sets when optimizing the occupancy, with the aim of no half-slot being covered by multiple tools. - detecting a set of all half-slots, the half-slots being the locations that can be covered by other tools in adjacent magazine slots, - detecting a subset of half-slots covered whenever there is a tool in one magazine slot, - wherein allowance is made for these sets when optimizing the occupancy, with the aim of no half-slot being covered by multiple tools. <EOS>