There are several concepts of the distance between portfolios. These include the amount of money that it takes to trade from one portfolio to the other, and the sum of absolute differences in weights.
A distance constraint limits the distance between the portfolio (or trade) and some target portfolio.
Portfolio Probe uses the
dist.bounds and related arguments to do this.