Chips-n-Salsa
Chips-n-Salsa: A Java Library of Customizable, Hybridizable, Iterative, Parallel, Stochastic, and Self-Adaptive Local Search Algorithms - Published in JOSS (2020)
Science Score: 98.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
✓DOI references
Found 12 DOI reference(s) in README and JOSS metadata -
✓Academic publication links
Links to: joss.theoj.org, zenodo.org -
○Committers with academic emails
-
○Institutional organization owner
-
✓JOSS paper metadata
Published in Journal of Open Source Software
Keywords
Keywords from Contributors
Repository
A Java library of Customizable, Hybridizable, Iterative, Parallel, Stochastic, and Self-Adaptive Local Search Algorithms
Basic Info
- Host: GitHub
- Owner: cicirello
- License: gpl-3.0
- Language: Java
- Default Branch: master
- Homepage: https://chips-n-salsa.cicirello.org/
- Size: 16 MB
Statistics
- Stars: 68
- Watchers: 1
- Forks: 39
- Open Issues: 0
- Releases: 51
Topics
Metadata Files
README.md
Chips-n-Salsa 
Copyright (C) 2002-2024 Vincent A. Cicirello.
Website: https://chips-n-salsa.cicirello.org/
API documentation: https://chips-n-salsa.cicirello.org/api/
| Publications About the Library |
|
| :--- | :--- |
| Packages and Releases |
|
| Build Status |
|
| JaCoCo Test Coverage |
|
| Security |
|
| DOI |
|
| Other Information |
|
| Support |
|
How to Cite
If you use this library in your research, please cite one or both of the following papers, whichever is relevant. Chips-n-Salsa was introduced in this first article:
Cicirello, V. A., (2020). Chips-n-Salsa: A Java Library of Customizable, Hybridizable, Iterative, Parallel, Stochastic, and Self-Adaptive Local Search Algorithms. Journal of Open Source Software, 5(52), 2448, https://doi.org/10.21105/joss.02448
The following paper covers the evolutionary algorithms of Chips-n-Salsa:
Cicirello, V.A. (2024). Open Source Evolutionary Computation with Chips-n-Salsa. Proceedings of the 16th International Joint Conference on Computational Intelligence (IJCCI 2024), pages 330-337, https://doi.org/10.5220/0013040600003837
Overview
Chips-n-Salsa is a Java library of customizable, hybridizable, iterative, parallel, stochastic, and self-adaptive local search algorithms. The library includes implementations of several stochastic local search algorithms, including simulated annealing, hill climbers, as well as constructive search algorithms such as stochastic sampling. Chips-n-Salsa now also includes genetic algorithms as well as evolutionary algorithms more generally. The library very extensively supports simulated annealing. It includes several classes for representing solutions to a variety of optimization problems. For example, the library includes a BitVector class that implements vectors of bits, as well as classes for representing solutions to problems where we are searching for an optimal vector of integers or reals. For each of the built-in representations, the library provides the most common mutation operators for generating random neighbors of candidate solutions, as well as common crossover operators for use with evolutionary algorithms. Additionally, the library provides extensive support for permutation optimization problems, including implementations of many different mutation operators for permutations, and utilizing the efficiently implemented Permutation class of the JavaPermutationTools (JPT) library.
Chips-n-Salsa is customizable, making extensive use of Java's generic types, enabling using the library to optimize other types of representations beyond what is provided in the library. It is hybridizable, providing support for integrating multiple forms of local search (e.g., using a hill climber on a solution generated by simulated annealing), creating hybrid mutation operators (e.g., local search using multiple mutation operators), as well as support for running more than one type of search for the same problem concurrently using multiple threads as a form of algorithm portfolio. Chips-n-Salsa is iterative, with support for multistart metaheuristics, including implementations of several restart schedules for varying the run lengths across the restarts. It also supports parallel execution of multiple instances of the same, or different, stochastic local search algorithms for an instance of a problem to accelerate the search process. The library supports self-adaptive search in a variety of ways, such as including implementations of adaptive annealing schedules for simulated annealing, such as the Modified Lam schedule, implementations of the simpler annealing schedules but which self-tune the initial temperature and other parameters, and restart schedules that adapt to run length.
Table of Contents
The rest of this README is organized as follows: * Java Requirements: Minimum supported Java version information * Versioning Scheme: Explanation of the library's version numbers * Building the Library (with Maven) * Example Programs: Information on example library usage * Java Modules: Information for those whose projects use Java modules * Importing from Package Repositories * Importing the Library from Maven Central * Importing the Library from GitHub Packages * Downloading Jar Files: Information on where you can download pre-compiled jars * License: Licensing information * Contribute: Information for those who wish to contribute
Java Requirements
Chips-n-Salsa currently supports Java 17+. Our development process utilizes OpenJDK 17, and all jar files released to Maven Central, GitHub Packages, and GitHub Releases are built for a Java 17 target. See the following table for a mapping between library version and minimum supported Java version.
| version | Java requirements | | --- | --- | | 5.w.x to 7.y.z | Java 17+ | | 3.w.x to 4.y.z | Java 11+ | | 1.w.x to 2.y.z | Java 8+ |
Versioning Scheme
Chips-n-Salsa uses Semantic Versioning with version numbers of the form: MAJOR.MINOR.PATCH, where differences in MAJOR correspond to incompatible API changes, differences in MINOR correspond to introduction of backwards compatible new functionality, and PATCH corresponds to backwards compatible bug fixes.
Building the Library (with Maven)
The Chips-n-Salsa library is built using Maven. The root of the
repository contains a Maven pom.xml. To build the library,
execute mvn package at the root of the repository, which
will compile all classes, run all tests, run javadoc, and generate
jar files of the library, the sources, and the javadocs. In addition
to the jar of the library itself, this will also generate a
jar of the library that includes all dependencies. The file names
make this distinction explicit. All build outputs will then
be found in the directory target.
To include generation of a code coverage report during the build,
execute mvn package -Pcoverage at the root of the repository to
enable a Maven profile that executes JaCoCo during the test phase.
To run all static analysis tools (i.e., SpotBugs, Find Security Bugs,
refactor-first), execute mvn package -Panalysis to enable a Maven
profile that executes the various static analysis tools that we are
using. The SpotBugs html report will be found in the target directory,
or you can use the SpotBugs GUI with: mvn spotbugs:gui -Panalysis. The
refactor-first report will be found in the target/site directory.
To run all of the above: mvn package -P "analysis,coverage".
Example Programs
There are several example programs available in a separate repository: cicirello/chips-n-salsa-examples. The examples repository contains example usage of several of the classes of the library. Each of the examples contains detailed comments within the source code explaining the example. Running the examples without reading the source comments is not advised.
Java Modules
This library provides a Java module, org.cicirello.chips_n_salsa. If your Java
project utilizes modules, then add the following to your module-info.java:
Java
module your.module.name.here {
requires org.cicirello.chips_n_salsa;
}
The org.cicirello.chips_n_salsa module, in turn, transitively requires
the org.cicirello.jpt module because the functionality for optimizing
permutational problems uses the Permutation class as both parameters and
return types of methods.
If you are directly utilizing the functionality of the dependencies, then you may instead need some combination of the following:
Java
module your.module.name.here {
requires org.cicirello.chips_n_salsa;
requires org.cicirello.jpt;
requires org.cicirello.rho_mu;
requires org.cicirello.core;
}
Importing from Package Repositories
Prebuilt artifacts are regularly published to Maven Central and GitHub Packages. In most cases, you'll want to use Maven Central. Releases are published to GitHub Packages mainly as a fall-back in the unlikely scenario that Maven Central is unavailable.
Importing the Library from Maven Central
Add this to the dependencies section of your pom.xml, replacing the version number with the version that you want to use.
XML
<dependency>
<groupId>org.cicirello</groupId>
<artifactId>chips-n-salsa</artifactId>
<version>7.0.0</version>
</dependency>
Importing the Library from GitHub Packages
If you'd prefer to import from GitHub Packages, rather than Maven Central, then: (1) add the dependency as indicated in previous section above, and (2) add the following to the repositories section of your pom.xml:
XML
<repository>
<id>github</id>
<name>GitHub cicirello Apache Maven Packages</name>
<url>https://maven.pkg.github.com/cicirello/Chips-n-Salsa</url>
</repository>
Note that GitHub Packages requires authenticating to GitHub (even for public artifacts). Thus, it is likely less convenient than importing from Maven Central. We mainly provide this option as a backup source of artifacts.
Downloading Jar Files
If you don't use a dependency manager that supports importing from Maven Central, or if you simply prefer to download manually, prebuilt jars are also attached to each GitHub Release. If you manually download the library jar file, make sure that you also download the jars of the relevant versions of the dependencies. The easiest way to get this right is to use a dependency manager rather than manually downloading jars.
License
The Chips-n-Salsa library is licensed under the GNU General Public License 3.0.
Contribute
If you would like to contribute to Chips-n-Salsa in any way, such as reporting bugs, suggesting new functionality, or code contributions such as bug fixes or implementations of new functionality, then start by reading the contribution guidelines. This project has adopted the Contributor Covenant Code of Conduct.
Owner
- Name: Vincent A. Cicirello
- Login: cicirello
- Kind: user
- Location: Galloway, NJ
- Company: Stockton University
- Website: https://www.cicirello.org/
- Repositories: 53
- Profile: https://github.com/cicirello
Vincent A. Cicirello is a researcher in AI, evolutionary computation, and swarm intelligence.
JOSS Publication
Chips-n-Salsa: A Java Library of Customizable, Hybridizable, Iterative, Parallel, Stochastic, and Self-Adaptive Local Search Algorithms
Authors
Tags
stochastic local search parallel metaheuristics self-adaptive simulated annealing discrete optimization combinatorial optimizationCitation (CITATION.cff)
cff-version: "1.1.0"
message: "If you use this software, please cite it using these metadata."
authors:
- family-names: "Cicirello"
given-names: "Vincent A"
orcid: "https://orcid.org/0000-0003-1072-8559"
title: "Chips-n-Salsa"
doi: "10.5281/zenodo.3959773"
license: "GPL-3.0-or-later"
url: "https://github.com/cicirello/Chips-n-Salsa"
preferred-citation:
type: article
authors:
- family-names: "Cicirello"
given-names: "Vincent A"
orcid: "https://orcid.org/0000-0003-1072-8559"
doi: "10.21105/joss.02448"
journal: "Journal of Open Source Software"
start: 2448
title: "Chips-n-Salsa: A Java Library of Customizable, Hybridizable, Iterative, Parallel, Stochastic, and Self-Adaptive Local Search Algorithms"
issue: 52
volume: 5
year: 2020
GitHub Events
Total
- Create event: 39
- Release event: 2
- Issues event: 4
- Watch event: 7
- Delete event: 37
- Issue comment event: 4
- Push event: 83
- Pull request review event: 26
- Pull request event: 71
- Fork event: 3
Last Year
- Create event: 39
- Release event: 2
- Issues event: 4
- Watch event: 7
- Delete event: 37
- Issue comment event: 4
- Push event: 83
- Pull request review event: 26
- Pull request event: 71
- Fork event: 3
Committers
Last synced: 5 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| Vincent A. Cicirello | c****o | 1,742 |
| dependabot[bot] | 4****] | 238 |
| Nicholas Nadeau, Ph.D., P.Eng | n****u | 1 |
| Nicholas Nadeau | n****u@g****m | 1 |
Issues and Pull Requests
Last synced: 4 months ago
All Time
- Total issues: 53
- Total pull requests: 294
- Average time to close issues: 19 days
- Average time to close pull requests: about 22 hours
- Total issue authors: 4
- Total pull request authors: 3
- Average comments per issue: 0.08
- Average comments per pull request: 0.5
- Merged pull requests: 277
- Bot issues: 1
- Bot pull requests: 216
Past Year
- Issues: 3
- Pull requests: 93
- Average time to close issues: about 17 hours
- Average time to close pull requests: about 8 hours
- Issue authors: 2
- Pull request authors: 2
- Average comments per issue: 0.0
- Average comments per pull request: 0.14
- Merged pull requests: 85
- Bot issues: 1
- Bot pull requests: 80
Top Authors
Issue Authors
- cicirello (50)
- DarioK98 (1)
- dependabot[bot] (1)
- N-Wouda (1)
Pull Request Authors
- dependabot[bot] (216)
- cicirello (77)
- DarioK98 (1)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 3
- Total downloads: unknown
-
Total dependent packages: 3
(may contain duplicates) -
Total dependent repositories: 5
(may contain duplicates) - Total versions: 144
proxy.golang.org: github.com/cicirello/Chips-n-Salsa
- Documentation: https://pkg.go.dev/github.com/cicirello/Chips-n-Salsa#section-documentation
- License: gpl-3.0
-
Latest release: v7.0.2+incompatible
published 7 months ago
Rankings
proxy.golang.org: github.com/cicirello/chips-n-salsa
- Documentation: https://pkg.go.dev/github.com/cicirello/chips-n-salsa#section-documentation
- License: gpl-3.0
-
Latest release: v7.0.2+incompatible
published 7 months ago
Rankings
repo1.maven.org: org.cicirello:chips-n-salsa
Chips-n-Salsa is a Java library of customizable, hybridizable, iterative, parallel, stochastic, and self-adaptive local search algorithms. The library includes implementations of several stochastic local search algorithms, including simulated annealing, hill climbers, as well as constructive search algorithms such as stochastic sampling. Chips-n-Salsa now also includes genetic algorithms as well as evolutionary algorithms more generally. The library very extensively supports simulated annealing. It includes several classes for representing solutions to a variety of optimization problems. For example, the library includes a BitVector class that implements vectors of bits, as well as classes for representing solutions to problems where we are searching for an optimal vector of integers or reals. For each of the built-in representations, the library provides the most common mutation operators for generating random neighbors of candidate solutions, as well as common crossover operators for use with evolutionary algorithms. Additionally, the library provides extensive support for permutation optimization problems, including implementations of many different mutation operators for permutations, and utilizing the efficiently implemented Permutation class of the JavaPermutationTools (JPT) library. Chips-n-Salsa is customizable, making extensive use of Java's generic types, enabling using the library to optimize other types of representations beyond what is provided in the library. It is hybridizable, providing support for integrating multiple forms of local search (e.g., using a hill climber on a solution generated by simulated annealing), creating hybrid mutation operators (e.g., local search using multiple mutation operators), as well as support for running more than one type of search for the same problem concurrently using multiple threads as a form of algorithm portfolio. Chips-n-Salsa is iterative, with support for multistart metaheuristics, including implementations of several restart schedules for varying the run lengths across the restarts. It also supports parallel execution of multiple instances of the same, or different, stochastic local search algorithms for an instance of a problem to accelerate the search process. The library supports self-adaptive search in a variety of ways, such as including implementations of adaptive annealing schedules for simulated annealing, such as the Modified Lam schedule, implementations of the simpler annealing schedules but which self-tune the initial temperature and other parameters, and restart schedules that adapt to run length.
- Homepage: https://chips-n-salsa.cicirello.org/
- Documentation: https://appdoc.app/artifact/org.cicirello/chips-n-salsa/
- License: GPL-3.0-or-later
-
Latest release: 7.0.2
published 7 months ago
Rankings
Dependencies
- org.cicirello:core 2.2.2
- org.cicirello:jpt 4.0.0
- org.cicirello:rho-mu 2.3.2
- org.junit.jupiter:junit-jupiter 5.8.2 test
- actions/checkout v3 composite
- actions/setup-java v3 composite
- actions/upload-artifact v3 composite
- cicirello/jacoco-badge-generator v2 composite
- actions/checkout v3 composite
- actions/setup-java v3 composite
- github/codeql-action/analyze v2 composite
- github/codeql-action/autobuild v2 composite
- github/codeql-action/init v2 composite
- actions/checkout v3 composite
- actions/setup-java v3 composite
- cicirello/generate-sitemap v1 composite
- cicirello/javadoc-cleanup v1 composite
- actions/checkout v3 composite
- actions/setup-java v3 composite
- actions/checkout v3 composite
- actions/setup-java v3 composite
- actions/checkout v3 composite
- actions/setup-java v3 composite

