Control device for a machine with at least one axis, wherein the control device is programmed with a system program, wherein the control device is embodied such that - in a first step it accepts first parameters by way of a human/machine interface, - in a second step on the basis of the first parameters it renders a first general technological problem in concrete terms as a specific technological problem, - in a third step on the basis of the first specific technological problem, it determines a first parameterization of an optimization problem, - on the basis of the optimization problem parameterized with the first parameterization, it determines within the control device by means of an optimizer for a sequence of values of a location or a temporal derivation of the location of the axis of the machine, first groups of optimized quantities (gi) and, on the basis of a first group of optimized quantities (gi) in each case, it determines a number of variables assigned to the respective value once in advance, so that when the machine is activated by the control device, the first specific technological problem is solved in an optimum manner in accordance with an optimization criterion, wherein the values are required position values of the axis and the variables assigned to the respective required position values comprise a respective required position value of a further position-regulated axis, - in a fourth step, it stores the assigned variables in a file while assigning them to the respective value, - in a fifth step, after the storage of the assigned variables, it accepts a first execution command from an operator, - in a step, on the basis of the first execution command, the control device reads out the stored, assigned variables V, - in a step, on the basis of the first execution command, the control device outputs the sequence of values to the axis and when outputting the respective value, the control device activates the machine in accordance with the number of variables assigned to the respective value, wherein depending on the specifications of the operator, the output of the sequence of values and the assigned variables - only takes place one, - takes place until a predetermined number of iterations is executed or - takes place until the operator or another device prespecifies an abort command. - in a first step it accepts first parameters by way of a human/machine interface, - in a second step on the basis of the first parameters it renders a first general technological problem in concrete terms as a specific technological problem, - in a third step on the basis of the first specific technological problem, it determines a first parameterization of an optimization problem, - on the basis of the optimization problem parameterized with the first parameterization, it determines within the control device by means of an optimizer for a sequence of values of a location or a temporal derivation of the location of the axis of the machine, first groups of optimized quantities (gi) and, on the basis of a first group of optimized quantities (gi) in each case, it determines a number of variables assigned to the respective value once in advance, so that when the machine is activated by the control device, the first specific technological problem is solved in an optimum manner in accordance with an optimization criterion, wherein the values are required position values of the axis and the variables assigned to the respective required position values comprise a respective required position value of a further position-regulated axis, - in a fourth step, it stores the assigned variables in a file while assigning them to the respective value, - in a fifth step, after the storage of the assigned variables, it accepts a first execution command from an operator, - in a step, on the basis of the first execution command, the control device reads out the stored, assigned variables V, - in a step, on the basis of the first execution command, the control device outputs the sequence of values to the axis and when outputting the respective value, the control device activates the machine in accordance with the number of variables assigned to the respective value, wherein depending on the specifications of the operator, the output of the sequence of values and the assigned variables - only takes place one, - takes place until a predetermined number of iterations is executed or - takes place until the operator or another device prespecifies an abort command.