Description Usage Arguments Details Value
This function generates random portfolios based on an idea by Pat Burns.
1 2 |
portfolio |
an object of type "portfolio" specifying
the constraints for the optimization, see
|
permutations |
integer: number of unique constrained random portfolios to generate |
max_permutations |
integer: maximum number of iterations to try for a valid portfolio, default 200 |
The 'sample' method to generate random portfolios is based on an idea pioneerd by Pat Burns. This is the most flexible method, but also the slowest, and can generate portfolios to satisfy leverage, box, group, and position limit constraints.
a matrix of random portfolio weights
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.