Factorial Design in Optimization of PHAs Processing