Algorithms for the determination of a complex quality number have been developed. A BASIC program using these algorithms enables considerable improvement of the quality of particle boards. The on-line control of the production process based on the quality number Q(p) allows the optimization of the process and reduction of production costs ensuring a high quality level of the end product. The approach proposed for particle board production may also be applied to the production of other types of wood based materials and to other industrial processes.