I am new to the econometric world. I have a portfolio maximization problem $$ \max \sum_{i}^ n a_{i} x_{i} \quad \text{s.t.} \quad \sum_{i}^n a_{i}=1, a_{i} \geq 0. $$ I solved the problem but I had a corner solution which I don't wish to determine. The whole idea is about the portfolio diversification. What conditions may be added to my objective function to have an interior solution not a corner? I tried tow utility functions(CRRA and exponential utility) in case this may help to make any difference to my final solution but nothing change.
Any advice will be appreciated.