Learn more at: https://hudsonthames.org/portfoliolab/ The purpose of the Nested Clustered Optimization(NCO) algorithm is to introduce hierarchy logic into the Mean-Variance Optimization algorithm and tackle unstable solutions when the number of columns in a covariance matrix is relatively large.