55[ ![ Build Status] ( https://github.com/jump-dev/Cbc.jl/workflows/CI/badge.svg?branch=master )] ( https://github.com/jump-dev/Cbc.jl/actions?query=workflow%3ACI )
66[ ![ codecov] ( https://codecov.io/gh/jump-dev/Cbc.jl/branch/master/graph/badge.svg )] ( https://codecov.io/gh/jump-dev/Cbc.jl )
77
8- ` Cbc.jl ` is a Julia wrapper for the [ COIN-OR Branch and Cut (Cbc)] ( https://projects.coin-or.org/Cbc )
9- solver.
8+ ` Cbc.jl ` is a wrapper for the [ COIN-OR Branch and Cut (Cbc)] ( https://projects.coin-or.org/Cbc )
9+ solver.
1010
1111The wrapper has two components:
1212 * a thin wrapper around the complete C API
@@ -23,9 +23,7 @@ import Pkg; Pkg.add("Cbc")
2323```
2424
2525In addition to installing the Cbc.jl package, this will also download and
26- install the Cbc binaries. (You do not need to install Cbc separately.) If you
27- require a custom build of Cbc, see the ** Custom Installation** instructions
28- below.
26+ install the Cbc binaries. (You do not need to install Cbc separately.)
2927
3028## Use with JuMP
3129
@@ -73,36 +71,10 @@ The following options are likely to be the most useful:
7371The complete list of parameters can be found by running the ` cbc ` executable and
7472typing ` ? ` at the prompt.
7573
76- On Julia 1.3 and above, you can start the ` cbc ` executable from Julia as follows:
74+ You can start the ` cbc ` executable from Julia as follows:
7775``` julia
7876using Cbc_jll
7977Cbc_jll. cbc () do exe
8078 run (` $(exe) ` )
8179end
8280```
83-
84- ## Custom Installation
85-
86- To install custom built Cbc binaries, use the environmental variable
87- ` JULIA_CBC_LIBRARY_PATH ` to point to the path at which you installed Cbc (the
88- folder containing ` libCbcSolver ` ).
89-
90- For example, on Mac, after installing Cbc with ` brew install cbc ` , use:
91- ``` julia
92- ENV [" JULIA_CBC_LIBRARY_PATH" ] = " /usr/local/Cellar/cbc/2.10.5/lib"
93- import Pkg
94- Pkg. add (" Cbc" )
95- Pkg. build (" Cbc" )
96- ```
97- Replace ` "/usr/local/Cellar/cbc/2.10.5/lib" ` with a different path as
98- appropriate.
99-
100- ** You must have ` JULIA_CBC_LIBRARY_PATH ` set _ every_ time you run ` using Cbc ` ,
101- not just when you install it.**
102-
103- Switch back to the default binaries as follows:
104- ``` julia
105- delete! (ENV , " JULIA_CBC_LIBRARY_PATH" )
106- import Pkg
107- Pkg. build (" Cbc" )
108- ```
0 commit comments