A Deterministic Approach to the Protein Design Problem