Dual vector optimization method to compute entropy inequality rules