Skip to content

Commit 3cb8ba3

Browse files
authored
Merge pull request #10 from dandxy89/main
Chore(): Bump dependency `float_eq`
2 parents 84c7cb1 + 97e8bae commit 3cb8ba3

File tree

2 files changed

+13
-16
lines changed

2 files changed

+13
-16
lines changed

Cargo.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ keywords = ["linear-programming", "optimization", "symbolic", "math", "solver"]
1111
categories = ["mathematics", "algorithms", "science", "api-bindings", "data-structures"]
1212
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1313

14-
1514
[features]
1615
default = ["coin_cbc"]
1716

@@ -25,13 +24,12 @@ fnv = "1"
2524

2625
[dev-dependencies]
2726
criterion = "0.3"
28-
float_eq = "0.5"
27+
float_eq = "0.6"
2928

3029
[[bench]]
3130
name = "benchmark"
3231
harness = false
3332

34-
3533
[package.metadata.docs.rs]
3634
# Display the documentation for all solvers on docs.rs
3735
all-features = true

README.md

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -67,25 +67,25 @@ You can find a resource allocation problem example in
6767
This library offers an abstraction over multiple solvers. By default, it uses [cbc][cbc], but
6868
you can also activate other solvers using cargo features.
6969

70-
| solver feature name | integer variables | no C compiler\*| no additional libs\** | fast |
71-
|---------------------|-------------------|----------------|-----------------------|------|
72-
| [`coin_cbc`][cbc] | ✅ | ✅ | ❌ | ✅
73-
| [`highs`][highs] | ❌ | ❌ | ✅ | ✅
74-
| [`lpsolve`][lpsolve]| ✅ | ❌ | ✅ | ❌
75-
| [`minilp`][minilp] | ❌ | ✅ | ✅ | ❌
76-
| [`lp-solvers`][lps] | ✅ | ✅ | ✅ | ❌
70+
| solver feature name | integer variables | no C compiler\* | no additional libs\*\* | fast |
71+
| -------------------- | ----------------- | --------------- | ---------------------- | ---- |
72+
| [`coin_cbc`][cbc] || | | |
73+
| [`highs`][highs] || | | |
74+
| [`lpsolve`][lpsolve] || | | |
75+
| [`minilp`][minilp] || | | |
76+
| [`lp-solvers`][lps] || | | |
7777

78-
* \* no C compiler: builds with only cargo, without requiring you to install a C compiler
79-
* \** no additional libs: works without additional libraries at runtime, all the dependencies are statically linked
78+
- \* no C compiler: builds with only cargo, without requiring you to install a C compiler
79+
- \*\* no additional libs: works without additional libraries at runtime, all the dependencies are statically linked
8080

8181
To use an alternative solver, put the following in your `Cargo.toml`:
8282

8383
```toml
8484
good_lp = { version = "*", features = ["your solver feature name"], default-features = false }
8585
```
8686

87-
8887
### [cbc][cbc]
88+
8989
Used by default, performant, but requires to have the cbc C library headers available on the build machine,
9090
and the cbc dynamic library available on any machine where you want to run your program.
9191

@@ -103,7 +103,6 @@ brew install cbc
103103

104104
[cbc]: https://www.coin-or.org/Cbc/
105105

106-
107106
### [minilp](https://docs.rs/minilp)
108107

109108
minilp is a pure rust solver, which means it works out of the box without installing anything else.
@@ -121,7 +120,7 @@ written in C and based on the revised simplex method.
121120
good_lp uses the [lpsolve crate](https://docs.rs/lpsolve/) to call lpsolve.
122121
You will need a C compiler, but you won't have to install any additional library.
123122

124-
[lpsolve]:http://lpsolve.sourceforge.net/5.5/
123+
[lpsolve]: http://lpsolve.sourceforge.net/5.5/
125124

126125
### [HiGHS][highs]
127126

@@ -144,7 +143,7 @@ Instead, it calls other solvers at runtime.
144143
It writes the given problem to a `.lp` file, and launches an external solver command
145144
(such as **gurobi**, **cplex**, **cbc**, or **glpk**) to solve it.
146145

147-
There is some overhead associated to this method: it can take a few hundred milliseconds
146+
There is some overhead associated to this method: it can take a few hundred milliseconds
148147
to write the problem to a file, launch the external solver, wait for it to finish, and then parse its solution.
149148
If you are not solving a few large problems but many small ones (in a web server, for instance),
150149
then this method may not be appropriate.

0 commit comments

Comments
 (0)