Thanks for your interest in contributing! We welcome contributions of all kinds, including bug fixes, new features, documentation improvements, and suggestions.
This project is licensed under the BSD 3-Clause License.
By contributing to this project, you agree that your contributions will be licensed under the same terms as the project (BSD 3-Clause License).
This is commonly referred to as an "inbound = outbound" licensing model.
By submitting a contribution (pull request, patch, or code submission), you confirm that:
- You have the legal right to submit the contribution.
- The contribution is your original work or properly attributed.
- You grant the project a perpetual, worldwide, non-exclusive license to use, modify, and distribute your contribution.
- Your contribution will be licensed under the same BSD 3-Clause License as the project.
New here? The contributor guides walk through every step below in detail, starting with the setup guide.
Create your own fork of the project (https://github.com/ReduxISU/Redux), then clone your fork. The setup guide shows how, including adding the main repo as a second remote named upstream.
Start from the newest CSharpAPI branch (the main branch; there is no develop branch) and use a descriptive branch name, for example add-reduction-subsetsum-to-partition or fix-clique-verifier-parsing.
- Keep changes focused and minimal
- Follow existing code style and conventions (formatting is enforced automatically, see below)
- Add comments where helpful
- Step-by-step guides: adding a problem, solver, verifier, reduction, and visualization
Run these from the repo root (always name Redux.slnx; a bare dotnet build fails with MSB1011):
dotnet format Redux.slnx
dotnet build Redux.slnx -c Release
dotnet test Redux.slnx -c Release --filter "Category!=Performance"
dotnet test Redux.slnx -c Release --filter "Category=Performance"- The Release build checks formatting and treats compiler warnings as errors, so run
dotnet format Redux.slnxfirst. - Add tests for any solver, verifier, visualization or reduction you add. A problem class on its own doesn't need tests of its own. Details and what to do when a check fails: building-and-testing guide and troubleshooting.
Open the PR against the CSharpAPI branch of ReduxISU/Redux. Include:
- A clear description of what you changed
- Why the change is needed
- Any relevant screenshots or logs (if applicable)
Then wait for a review. Do not merge your own PR before it has been reviewed. After you push, read the rbs report on your PR: the rbs check always shows green, even when gates inside it fail (see the building-and-testing guide).
- Formatting (indentation, spacing) is set in .editorconfig and checked by the Release build. Run
dotnet format Redux.slnxto fix it. - Compiler warnings fail the build, so fix them instead of ignoring them
- Write clear, readable code
- Use meaningful variable and function names
- Keep functions small and focused
- Follow existing project patterns
When reporting bugs, please include:
- Steps to reproduce
- Expected behavior
- Actual behavior
- Environment details (OS, version, etc.)
We welcome ideas! Please:
- Clearly describe the feature
- Explain the use case
- Keep scope reasonable
Be respectful and constructive in all interactions. Harassment or abusive behavior will not be tolerated.
If you have questions, feel free to open an issue for discussion before submitting major changes.
Thanks for contributing!