Protein design under competing conditions for the availability of amino acids