Package: rolloptim 1.0.0
rolloptim: Rolling Optimizations
Analytical computation of rolling optimization for time-series data. The 'rolloptim' package solves constrained quadratic and linear programs in closed form by applying Lagrangian multipliers and the Karush-Kuhn-Tucker conditions (Kuhn and Tucker, 1951, <doi:10.1525/9780520411586-036>) to perform mean-variance portfolio optimization (Markowitz, 1952, <doi:10.1111/j.1540-6261.1952.tb01525.x>) over rolling windows. For each window, the analytical solution computes the optimal weights that minimize variance, maximize expected return, minimize residual sum of squares, or maximize quadratic utility, subject to a total-weight equality constraint and box bounds on each weight. Use cases include mean-variance portfolio optimization, expected-return maximization, and constrained regression. The package supports rolling optimizations with constraints via the total, lower, and upper arguments. The implementation accepts rolling moments computed via the 'roll' package and uses 'RcppArmadillo' for linear algebra, with parallelism across windows provided by 'RcppParallel'.
Authors:
rolloptim_1.0.0.tar.gz
rolloptim_1.0.0.zip(r-4.7)rolloptim_1.0.0.zip(r-4.6)rolloptim_1.0.0.zip(r-4.5)
rolloptim_1.0.0.tgz(r-4.6-x86_64)rolloptim_1.0.0.tgz(r-4.6-arm64)rolloptim_1.0.0.tgz(r-4.5-x86_64)rolloptim_1.0.0.tgz(r-4.5-arm64)
rolloptim_1.0.0.tar.gz(r-4.7-arm64)rolloptim_1.0.0.tar.gz(r-4.7-x86_64)rolloptim_1.0.0.tar.gz(r-4.6-arm64)rolloptim_1.0.0.tar.gz(r-4.6-x86_64)
rolloptim_1.0.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
card.svg |card.png
rolloptim/json (API)
| # Install 'rolloptim' in R: |
| install.packages('rolloptim', repos = c('https://jasonjfoster.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/jasonjfoster/rolloptim/issues
algorithmsoptimizationrcppopenblascppopenmp
Last updated from:2bab81546f. Checks:13 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-arm64 | OK | 147 | ||
| linux-devel-x86_64 | OK | 121 | ||
| source / vignettes | OK | 180 | ||
| linux-release-arm64 | OK | 146 | ||
| linux-release-x86_64 | OK | 133 | ||
| macos-release-arm64 | OK | 105 | ||
| macos-release-x86_64 | OK | 217 | ||
| macos-oldrel-arm64 | OK | 88 | ||
| macos-oldrel-x86_64 | OK | 212 | ||
| windows-devel | OK | 116 | ||
| windows-release | OK | 106 | ||
| windows-oldrel | OK | 112 | ||
| wasm-release | OK | 114 |
Exports:roll_max_meanroll_max_utilityroll_min_rssroll_min_var
Dependencies:RcppRcppArmadilloRcppParallel
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Rolling Optimizations | rolloptim-package rolloptim |
| Rolling Optimizations to Maximize Mean | roll_max_mean |
| Rolling Optimizations to Maximize Utility | roll_max_utility |
| Rolling Optimizations to Minimize Residual Sum of Squares | roll_min_rss |
| Rolling Optimizations to Minimize Variance | roll_min_var |
