A max-min method for conjunctive goals