Other packages > Find by keyword >

rolloptim  

Rolling Optimizations
View on CRAN: Click here


Download and install rolloptim package within the R console
Install from CRAN:
install.packages("rolloptim")

Install from Github:
library("remotes")
install_github("cran/rolloptim")

Install by package version:
library("remotes")
install_version("rolloptim", "1.0.0")



Attach the package and use:
library("rolloptim")
Maintained by
Jason Foster
[Scholar Profile | Author Map]
All associated links for this package
First Published: 2026-07-11
Latest Update: 2026-07-11
Description:
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'.
How to cite:
Jason Foster (2026). rolloptim: Rolling Optimizations. R package version 1.0.0, https://cran.r-project.org/web/packages/rolloptim. Accessed 04 Oct. 2026.
Previous versions and publish date:
No previous versions
Other packages that cited rolloptim R package
View rolloptim citation profile
Other R packages that rolloptim depends, imports, suggests or enhances
Complete documentation for rolloptim
Functions, R codes and Examples using the rolloptim R package
Full rolloptim package functions and examples
Downloads during the last 30 days

Today's Hot Picks in Authors and Packages

r2resize  
In-Text Resize for Images, Tables and Fancy Resize Containers in 'shiny', 'rmarkdown' and 'quarto' Documents
Automatic resizing toolbar for containers, images and tables. Various resizable or expandable contai ...
Download / Learn more Package Citations See dependency  
rWishart  
Random Wishart Matrix Generation
An expansion of R's 'stats' random wishart matrix generation. This package allows the user to gener ...
Download / Learn more Package Citations See dependency  
plotbb  
Grammar of Graphics for 'base' Plot
Proof of concept for implementing grammar of graphics using base plot. The bbplot() function initial ...
Download / Learn more Package Citations See dependency  
skilljaR  
Connect to Your 'Skilljar' Data
Functions that simplify calls to the 'Skilljar' API. See < ...
Download / Learn more Package Citations See dependency  

28,905

R Packages

247,686

Dependencies

76,495

Author Associations

28,906

Publication Badges

© Copyright since 2022. All right reserved, rpkg.net.  Based in Cambridge, Massachusetts, USA