Package: rolloptim 1.0.1

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.1.tar.gz
rolloptim_1.0.1.zip(r-4.7-x86_64)rolloptim_1.0.1.zip(r-4.7-arm64)rolloptim_1.0.1.zip(r-4.6-x86_64)rolloptim_1.0.1.zip(r-4.6-arm64)rolloptim_1.0.1.zip(r-4.5-x86_64)
rolloptim_1.0.1.tgz(r-4.6-x86_64)rolloptim_1.0.1.tgz(r-4.6-arm64)rolloptim_1.0.1.tgz(r-4.5-x86_64)rolloptim_1.0.1.tgz(r-4.5-arm64)
rolloptim_1.0.1.tar.gz(r-4.7-arm64)rolloptim_1.0.1.tar.gz(r-4.7-x86_64)rolloptim_1.0.1.tar.gz(r-4.6-arm64)rolloptim_1.0.1.tar.gz(r-4.6-x86_64)
rolloptim_1.0.1.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.60 score 4 stars 405 downloads 4 exports 3 dependencies

Last updated from:62a97b4550. Checks:15 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK170
linux-devel-x86_64OK207
source / vignettesOK265
linux-release-arm64OK162
linux-release-x86_64OK173
macos-release-arm64OK176
macos-release-x86_64OK363
macos-oldrel-arm64OK157
macos-oldrel-x86_64OK286
windows-devel-arm64OK236
windows-devel-x86_64OK180
windows-release-arm64OK231
windows-release-x86_64OK133
windows-oldrel-x86_64OK139
wasm-releaseOK124

Exports:roll_max_meanroll_max_utilityroll_min_rssroll_min_var

Dependencies:RcppRcppArmadilloRcppParallel