Computerised process-control systems which optimise production - optimising capacity, raw materials usage, energy consumption and the quality of the goods produced