Skip to content

Commit

Permalink
feat: Add additional COIN-OR bindings for Cbc.
Browse files Browse the repository at this point in the history
This requires adding Cgl and Osi libraries. Currently these
are vendored in the same way as Clp.
  • Loading branch information
jetuk committed Jun 23, 2024
1 parent 6156cb8 commit 6339eb6
Show file tree
Hide file tree
Showing 16 changed files with 1,185 additions and 233 deletions.
13 changes: 11 additions & 2 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
[submodule "clp-sys/vendor/Clp"]
path = clp-sys/vendor/Clp
path = coin-or-sys/vendor/Clp
url = https://github.com/coin-or/Clp
[submodule "clp-sys/vendor/CoinUtils"]
path = clp-sys/vendor/CoinUtils
path = coin-or-sys/vendor/CoinUtils
url = https://github.com/coin-or/CoinUtils.git
[submodule "coin-or-sys/vendor/Cgl"]
path = coin-or-sys/vendor/Cgl
url = https://github.com/coin-or/Cgl.git
[submodule "coin-or-sys/vendor/Cbc"]
path = coin-or-sys/vendor/Cbc
url = https://github.com/coin-or/Cbc.git
[submodule "coin-or-sys/vendor/Osi"]
path = coin-or-sys/vendor/Osi
url = https://github.com/coin-or/Osi
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ members = [
"ipm-common",
"ipm-ocl",
"ipm-simd",
"clp-sys",
"coin-or-sys",
"pywr-core",
"pywr-schema",
"pywr-cli",
Expand All @@ -16,7 +16,7 @@ exclude = [
]
# IPM packages are not default because they require nightly (portable_simd).
default-members = [
"clp-sys",
"coin-or-sys",
"pywr-core",
"pywr-schema",
"pywr-cli",
Expand Down Expand Up @@ -47,5 +47,5 @@ tracing = { version = "0.1", features = ["log"] }
csv = "1.1"
hdf5 = { git = "https://github.com/aldanor/hdf5-rust.git", package = "hdf5", features = ["static", "zlib"] }
pywr-v1-schema = { git = "https://github.com/pywr/pywr-schema/", tag = "v0.13.0", package = "pywr-schema" }
chrono = { version = "0.4.34" }
chrono = { version = "0.4.34", features = ["serde"] }
schemars = { version = "0.8.16", features = ["chrono"] }
195 changes: 0 additions & 195 deletions clp-sys/build.rs

This file was deleted.

28 changes: 0 additions & 28 deletions clp-sys/src/lib.rs

This file was deleted.

4 changes: 2 additions & 2 deletions clp-sys/Cargo.toml → coin-or-sys/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[package]
name = "clp-sys"
name = "coin-or-sys"
version = "0.1.0"
authors = ["James Tomlinson <[email protected]>"]
edition = "2021"
description = "Low-level bindings to COIN-OR CLP (Coin-or linear programming)."
description = "Low-level bindings to COIN-OR CLP (Coin-or linear programming) and CBC (Coin-or branch and cut)."
license = "MIT OR Apache-2.0"
repository = "https://github.com/pywr/pywr-next/"

Expand Down
Loading

0 comments on commit 6339eb6

Please sign in to comment.