1. A method for optimizing in real-time operation of a machine assembly manipulated by a user, said machine assembly comprising plural replaceable devices, each device being operated by a control module, the input-output relationship of which control module is regulated by control parameters, said method comprising the steps of: (a) operating the replaceable devices using control modules; (b) optimizing in real-time the input-output relationship of at least one control module by coding into templates parameters fully or partially regulating the control module, said templates being subjected to heuristic processing, wherein at least one fitted set of parameters is selected by evaluating output of the machine assembly based on the user's ultimate choice or a preselected target; and (c) operating the machine assembly using the optimized control module.