Fractional bivalent programming