A method for operating a numerically controlled
machine is proposed, comprising: receiving a sequence of control commands which, when executed by the numerically controlled
machine, cause the numerically controlled
machine to machine a workpiece to obtain a predetermined workpiece geometry, wherein the sequence of control commands comprises information about a discretized
tool path defined by a sequence of support points, information about a simulated value of a first interaction parameter describing an interaction of a tool of the numerically controlled machine with the workpiece for each
support point, information about a simulated value of at least a second interaction parameter describing an interaction of the tool of the numerically controlled machine with the workpiece for each
support point, measuring a value of the first interaction parameter for a first position of the tool when
machining the workpiece based on the received sequence of control commands, comparing the measured value of the first interaction parameter for the first position of the tool with the simulated value of the first interaction parameter for the first position of the tool, determining an adapted value of the second interaction parameter for a subsequent position of the tool based on a result of the comparison.