adding wrapper around patsopt for external constraint solver