Portfolio optimization and the random magnet problem · Study