https://github.com/scipopt/scip.jl
Julia interface to SCIP solver
Science Score: 36.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
✓Committers with academic emails
3 of 23 committers (13.0%) from academic institutions -
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (15.5%) to scientific vocabulary
Keywords
Keywords from Contributors
Repository
Julia interface to SCIP solver
Basic Info
Statistics
- Stars: 111
- Watchers: 10
- Forks: 24
- Open Issues: 8
- Releases: 47
Topics
Metadata Files
README.md
SCIP.jl
SCIP.jl is a Julia interface to the SCIP solver.
It has two components:
- a thin wrapper around the complete C API
- an interface to MathOptInterface
Affiliation
This wrapper is maintained by the SCIP project with the help of the JuMP community.
Getting help
If you need help, please ask a question on the JuMP community forum.
If you have a reproducible example of a bug, please open a GitHub issue.
License
SCIP.jl is licensed under the MIT License.
The underlying solver, scipopt/scip, is licensed under the Apache 2.0 license.
Installation
Install SCIP using Pkg.add:
```julia
julia> import Pkg
julia> Pkg.add("SCIP") ```
In addition to installing the SCIP.jl package, this will also download and install the SCIP binaries. You do not need to install SCIP separately.
Custom installations
If you want a custom SCIP installation, you must manually install the SCIP binaries.
Binaries are available for download at https://www.scipopt.org/#download.
Once the binaries are installed, set the SCIPOPTDIR environment variable to
temporarily point to the installation path (that is, depending on your operating
system, $SCIPOPTDIR/lib/libscip.so, $SCIPOPTDIR/lib/libscip.dylib, or
$SCIPOPTDIR/bin/libscip.dll must exist). Then, install SCIP.jl using Pkg.add
and Pkg.build from the Julia command line:
```julia
julia> ENV["SCIPOPTDIR"] = raw"C:\Program Files\SCIPOptSuite 9.1.1" # for Windows
julia> import Pkg
julia> Pkg.add("SCIP")
julia> Pkg.build("SCIP") ```
Use with JuMP
Use SCIP with JuMP as follows:
julia
using JuMP, SCIP
model = Model(SCIP.Optimizer)
set_attribute(model, "display/verblevel", 0)
set_attribute(model, "limits/gap", 0.05)
Options
See the SCIP documentation for a list of supported options.
MathOptInterface API
The SCIP optimizer supports the following constraints and attributes.
List of supported objective functions:
List of supported variable types:
List of supported constraint types:
MOI.ScalarAffineFunction{Float64}inMOI.EqualTo{Float64}MOI.ScalarAffineFunction{Float64}inMOI.GreaterThan{Float64}MOI.ScalarAffineFunction{Float64}inMOI.Interval{Float64}MOI.ScalarAffineFunction{Float64}inMOI.LessThan{Float64}MOI.ScalarNonlinearFunctioninMOI.EqualTo{Float64}MOI.ScalarNonlinearFunctioninMOI.GreaterThan{Float64}MOI.ScalarNonlinearFunctioninMOI.Interval{Float64}MOI.ScalarNonlinearFunctioninMOI.LessThan{Float64}MOI.ScalarQuadraticFunction{Float64}inMOI.EqualTo{Float64}MOI.ScalarQuadraticFunction{Float64}inMOI.GreaterThan{Float64}MOI.ScalarQuadraticFunction{Float64}inMOI.Interval{Float64}MOI.ScalarQuadraticFunction{Float64}inMOI.LessThan{Float64}MOI.VariableIndexinMOI.EqualTo{Float64}MOI.VariableIndexinMOI.GreaterThan{Float64}MOI.VariableIndexinMOI.IntegerMOI.VariableIndexinMOI.Interval{Float64}MOI.VariableIndexinMOI.LessThan{Float64}MOI.VariableIndexinMOI.ZeroOneMOI.VectorAffineFunction{Float64}inMOI.Indicator{MOI.ACTIVATE_ON_ONE,MOI.LessThan{Float64}}MOI.VectorOfVariablesinMOI.SOS1{Float64}MOI.VectorOfVariablesinMOI.SOS2{Float64}
List of supported model attributes:
Design considerations
Wrapping the public API
All of the public API methods are wrapped and available within the SCIP
package. This includes the scip_*.h and pub_*.h headers that are collected
in scip.h, as well as all default constraint handlers (cons_*.h.)
The wrapped functions do not transform any data structures and work on the raw
pointers (for example, SCIP* in C, Ptr{SCIP_} in Julia). Convenience wrapper
functions based on Julia types are added as needed.
Memory management
Programming with SCIP requires dealing with variable and constraint objects that use reference counting for memory management.
The SCIP.Optimizer wrapper type collects lists of SCIP_VAR* and SCIP_CONS*
under the hood, and it releases all references when it is garbage collected
itself (via finalize).
When adding a variable (add_variable) or a constraint (add_linear_constraint),
an integer index is returned. This index can be used to retrieve the SCIP_VAR*
or SCIP_CONS* pointer via get_var and get_cons respectively.
Supported nonlinear operators
Supported operators in nonlinear expressions are as follows:
+-*/^sqrtexplogabscossin
Owner
- Name: scipopt
- Login: scipopt
- Kind: organization
- Website: scipopt.org
- Repositories: 10
- Profile: https://github.com/scipopt
Collection of software around the SCIP Optimization Suite (scipopt.org)
GitHub Events
Total
- Fork event: 2
- Create event: 41
- Commit comment event: 15
- Issues event: 37
- Release event: 5
- Watch event: 16
- Delete event: 38
- Member event: 1
- Issue comment event: 76
- Push event: 119
- Pull request event: 86
- Pull request review comment event: 12
- Pull request review event: 11
Last Year
- Fork event: 2
- Create event: 41
- Commit comment event: 15
- Issues event: 37
- Release event: 5
- Watch event: 16
- Delete event: 38
- Member event: 1
- Issue comment event: 76
- Push event: 119
- Pull request event: 86
- Pull request review comment event: 12
- Pull request review event: 11
Committers
Last synced: about 1 year ago
Top Committers
| Name | Commits | |
|---|---|---|
| Robert Schwarz | m****l@r****t | 545 |
| Mathieu Besançon | m****n@g****m | 242 |
| Erik Tadewaldt | t****t@z****e | 48 |
| Felipe Serrano | s****o@z****e | 19 |
| Ayush Pandey | a****p@g****m | 16 |
| odow | o****n@g****m | 14 |
| Gennesaret Tjusila | g****a@g****m | 10 |
| Miles Lubin | m****n@g****m | 10 |
| Gnimuc | q****i@g****m | 8 |
| Twan Koolen | k****n@g****m | 7 |
| Johannes Varga | j****a@s****t | 6 |
| Mathieu Besancon | b****n@z****e | 4 |
| GregPlowman | G****n | 3 |
| Lars Hellemo | L****o@s****o | 3 |
| hannahtro | j****e@g****m | 3 |
| Changhyun Kwon | c****n@u****u | 2 |
| Joaquim Garcia | j****a@p****m | 2 |
| Alexis Montoison | a****n@p****a | 1 |
| Julia TagBot | 5****t | 1 |
| Santos Xavier, Alinson | a****r@a****v | 1 |
| Y. Yang | m****t | 1 |
| Yankai Cao | y****o@g****m | 1 |
| femtocleaner[bot] | f****] | 1 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 67
- Total pull requests: 152
- Average time to close issues: 12 months
- Average time to close pull requests: about 1 month
- Total issue authors: 35
- Total pull request authors: 12
- Average comments per issue: 5.58
- Average comments per pull request: 1.59
- Merged pull requests: 130
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 11
- Pull requests: 78
- Average time to close issues: 24 days
- Average time to close pull requests: 4 days
- Issue authors: 7
- Pull request authors: 3
- Average comments per issue: 2.82
- Average comments per pull request: 0.44
- Merged pull requests: 68
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- matbesancon (16)
- rschwarz (8)
- odow (5)
- LebedevRI (3)
- ivborissov (2)
- resmaeilbeigi (2)
- stumarcus314 (2)
- remi-garcia (2)
- joehuchette (1)
- JuliaTagBot (1)
- foreverdyz (1)
- mzy2240 (1)
- karimianfard (1)
- Wimmerer (1)
- mavavilj (1)
Pull Request Authors
- odow (80)
- matbesancon (48)
- gtjusila (10)
- etadewal (6)
- rschwarz (4)
- hellemo (2)
- hannahtro (2)
- metab0t (1)
- jovarga (1)
- amontoison (1)
- sbolusani (1)
- Gnimuc (1)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- julia 527 total
- Total dependent packages: 2
- Total dependent repositories: 0
- Total versions: 44
juliahub.com: SCIP
Julia interface to SCIP solver
- Documentation: https://docs.juliahub.com/General/SCIP/stable/
- License: MIT
-
Latest release: 0.12.7
published 9 months ago
Rankings
Dependencies
- actions/cache v1 composite
- actions/checkout v2 composite
- julia-actions/julia-buildpkg v1 composite
- julia-actions/setup-julia v1 composite
- JuliaRegistries/TagBot v1 composite
- actions/cache v1 composite
- actions/checkout v2 composite
- codecov/codecov-action v1 composite
- julia-actions/julia-buildpkg v1 composite
- julia-actions/julia-processcoverage v1 composite
- julia-actions/julia-runtest v1 composite
- julia-actions/setup-julia v1 composite
- actions/checkout v1 composite
- julia-actions/setup-julia latest composite