Package: rolloptim 1.0.0

Jason Foster

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.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://cran.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:

openblascppopenmp

1.70 score 4 scripts 4 exports 3 dependencies

Last updated from:70c2a43936. Checks:6 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK478
linux-devel-x86_64OK484
source / vignettesOK212
linux-release-arm64OK174
linux-release-x86_64OK182
wasm-releaseOK120

Exports:roll_max_meanroll_max_utilityroll_min_rssroll_min_var

Dependencies:RcppRcppArmadilloRcppParallel