The choice of the optimal portfolio (the market portfolio) is made by all investors and is separate from the risk/return choice which is determined by the extent to which the invester lends or borrows at the risk-free rate. Applied to the capital asset pricing model.