A non-transitory computer readable storage medium having stored thereon a computer program comprising instructions for execution, by at least one data processing device, of a method for applying an optimized processing treatment to items in an industrial treatment line, the industrial treatment line comprising at least one processing module applying a processing treatment to the items, the processing treatment being at least in part parameterized by a current setting of at least one working parameter of the at least one processing module, the method comprising:
- (a) receiving instructions defining, for a set of value ranges of at least one parameter representative of an external property of items in the industrial treatment line, associated settings for a value of the at least one working parameter, each value range being associated with an associated setting and wherein each associated setting corresponds to a setting compatible with an achievement of a target quality of the processing treatment;
- (b) receiving a measurement of a value of the at least one parameter representative of the external property of an item from the industrial treatment line;
- (c) comparing an associated setting for the value of the at least one working parameter associated with a value range from the set of value ranges comprising the measured value of the at least one parameter representative of the external property of the item to the current setting of the at least one working parameter;
- and
- (d) upon detecting a difference between the associated setting and the current setting, outputting an instruction to change the current setting to the associated setting at the at least one processing module.