A Continuous Optimization Approach To Protein Design With Structural And Functional Constraints