Positive transfer functions and convex optimization 1