Arguments
m
A positive integer value for the number of portfolios
n
A positive integer value for the number of investments in the portfolio
k
A positive integer value for the number of non zero weights
segments
A vector or list of vectors that defines the portfolio segments
x.t
A positive numeric value for the sum of the absolute value of investment weights
x.l
A positive numeric value for the lower bound on the absolute value of investment weights
x.u
A positive numeric value for the upper bound on the absolute value of investment weights
max.iter
A positive integer value for the maximum iterations in the rejection method