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:Jason Foster [aut, cre]

rolloptim_1.0.0.tar.gz
rolloptim_1.0.0.zip(r-4.7-x86_64)rolloptim_1.0.0.zip(r-4.7-arm64)rolloptim_1.0.0.zip(r-4.6-x86_64)rolloptim_1.0.0.zip(r-4.6-arm64)rolloptim_1.0.0.zip(r-4.5-x86_64)
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✨
DESCRIPTION |NEWS
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

Uses libs:
  • openblas– Optimized BLAS
  • c++– GNU Standard C++ Library v3
  • openmp– GCC OpenMP (GOMP) support library

On CRAN:

Conda:

algorithmsoptimizationrcppopenblascppopenmp

4.51 score 4 stars 2 scripts 319 downloads 4 exports 3 dependencies

Last updated from:7e7a83e5c7. Checks:15 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK144
linux-devel-x86_64OK125
source / vignettesOK202
linux-release-arm64OK106
linux-release-x86_64OK124
macos-release-arm64OK181
macos-release-x86_64OK318
macos-oldrel-arm64OK184
macos-oldrel-x86_64OK258
windows-devel-arm64OK373
windows-devel-x86_64OK150
windows-release-arm64OK384
windows-release-x86_64OK105
windows-oldrel-x86_64OK112
wasm-releaseOK104

Exports:roll_max_meanroll_max_utilityroll_min_rssroll_min_var

Dependencies:RcppRcppArmadilloRcppParallel