Production allocation decision using revenue sharing contract with prior commitments and two-way penalties