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)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
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

3.48 score 4 stars 4 scripts 4 exports 3 dependencies

Last updated from:ef0a4a8384. Checks:13 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK209
linux-devel-x86_64OK204
source / vignettesOK229
linux-release-arm64OK185
linux-release-x86_64OK162
macos-release-arm64OK98
macos-release-x86_64OK229
macos-oldrel-arm64OK82
macos-oldrel-x86_64OK203
windows-develOK117
windows-releaseOK126
windows-oldrelOK114
wasm-releaseOK140

Exports:roll_max_meanroll_max_utilityroll_min_rssroll_min_var

Dependencies:RcppRcppArmadilloRcppParallel