The framework of P systems applied to solve optimal watermarking problem