pharma batch optimization