Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

generatesequence

create a sequence of possible weights for random or brute force portfolios


Description

This function creates the sequence of min<->max weights for use by random or brute force optimization engines.

Usage

generatesequence(min = 0.01, max = 1, by = min/max, rounding = 3)

Arguments

min

minimum value of the sequence

max

maximum value of the sequence

by

number to increment the sequence by

rounding

integrer how many decimals should we round to

Details

The sequence created is not constrained by asset.

Author(s)

Peter Carl, Brian G. Peterson

See Also


PortfolioAnalytics

Portfolio Analysis, Including Numerical Methods for Optimization of Portfolios

v1.1.0
GPL-2 | GPL-3
Authors
Brian G. Peterson [cre, aut, cph], Peter Carl [aut, cph], Kris Boudt [ctb, cph], Ross Bennett [ctb, cph], Hezky Varon [ctb], Guy Yollin [ctb], R. Douglas Martin [ctb]
Initial release
2018-05-17

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.