The partition package provides a collection of functions for a R student project. The goal is to select the best algorithm for solving the partition problem with racing methods. The implementation of racing methods is provided by the package race. The partition problem consists in finding a bi-partition of a set of integers which minimizes the difference between their sums.
You must choose between installing the package from github or from source (for more advanced users).
This project works on 32 bits and 64 bits environment. This project requires:
- R 3.2+
- LpSolve (optional)
dnf install lpsolve lpsolve-devel
- Downloaded and installed via the R function
Install directly from github without downloading a local copy the project.
install.packages("devtools") # if needed library(devtools) devtools::install_github("arnaud-m/partition")
Download a local copy of the project, open a R session in the project directory, and execute.
install.packages("devtools") # if needed library(devtools) devtools::install()
Check the devtools Cheat Sheet.
Once the project has been installed (see “Installing”), execute the example of the main function
If lpSolve is installed, it is possible to solve optimally small instances using mixed integer linear programming.
Look for general information about the package in the R console.
Look for the package documentation in the R console.
- Arnaud Malapert: Associate professor, Université Côte d’Azur, CNRS, I3S, France.
Copyright (c) 2016, Arnaud Malapert, Université Côte d’Azur, CNRS, I3S, France
This software is distributed under a MIT License.