or-tools 0.5.4 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +7 -7
- data/ext/or-tools/constraint.cpp +2 -7
- data/ext/or-tools/vendor.rb +9 -9
- data/lib/or_tools/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1775ae46a18be137ae64fce870d29c17c3ae385c61f295f79d7ded40ed0be0bd
|
4
|
+
data.tar.gz: 28262f8b77a8dd0dc085e16a261005a47e1352d8f9f5c148ed524c348daec8db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 771d9a78ace00ce16d8f5e71f595a4523fd8613c81b8e09691d231cb1e7881ce94e8cdd0e21dd60168a58d40e0135891988cfc47fac33d511b551cf932819bae
|
7
|
+
data.tar.gz: 5231109d9afb080481f608bd784b3e86cdfc0b336f828d9fad714b5fa37eda0c4f02495e3718eeb9b0c05135b5b344a7084df55c7f26674ef2e73653ad7d8a3d
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
# OR-Tools
|
1
|
+
# OR-Tools Ruby
|
2
2
|
|
3
3
|
[OR-Tools](https://github.com/google/or-tools) - operations research tools - for Ruby
|
4
4
|
|
5
|
-
[](https://github.com/ankane/or-tools/actions)
|
5
|
+
[](https://github.com/ankane/or-tools-ruby/actions)
|
6
6
|
|
7
7
|
## Installation
|
8
8
|
|
@@ -2203,22 +2203,22 @@ end
|
|
2203
2203
|
|
2204
2204
|
## History
|
2205
2205
|
|
2206
|
-
View the [changelog](https://github.com/ankane/or-tools/blob/master/CHANGELOG.md)
|
2206
|
+
View the [changelog](https://github.com/ankane/or-tools-ruby/blob/master/CHANGELOG.md)
|
2207
2207
|
|
2208
2208
|
## Contributing
|
2209
2209
|
|
2210
2210
|
Everyone is encouraged to help improve this project. Here are a few ways you can help:
|
2211
2211
|
|
2212
|
-
- [Report bugs](https://github.com/ankane/or-tools/issues)
|
2213
|
-
- Fix bugs and [submit pull requests](https://github.com/ankane/or-tools/pulls)
|
2212
|
+
- [Report bugs](https://github.com/ankane/or-tools-ruby/issues)
|
2213
|
+
- Fix bugs and [submit pull requests](https://github.com/ankane/or-tools-ruby/pulls)
|
2214
2214
|
- Write, clarify, or fix documentation
|
2215
2215
|
- Suggest or add new features
|
2216
2216
|
|
2217
2217
|
To get started with development:
|
2218
2218
|
|
2219
2219
|
```sh
|
2220
|
-
git clone https://github.com/ankane/or-tools.git
|
2221
|
-
cd or-tools
|
2220
|
+
git clone https://github.com/ankane/or-tools-ruby.git
|
2221
|
+
cd or-tools-ruby
|
2222
2222
|
bundle install
|
2223
2223
|
bundle exec rake compile
|
2224
2224
|
bundle exec rake test
|
data/ext/or-tools/constraint.cpp
CHANGED
@@ -287,9 +287,9 @@ void init_constraint(Rice::Module& m) {
|
|
287
287
|
return self.AddModuloEquality(target, var, mod);
|
288
288
|
})
|
289
289
|
.define_method(
|
290
|
-
"
|
290
|
+
"add_multiplication_equality",
|
291
291
|
[](CpModelBuilder& self, IntVar target, std::vector<IntVar> vars) {
|
292
|
-
return self.
|
292
|
+
return self.AddMultiplicationEquality(target, vars);
|
293
293
|
})
|
294
294
|
.define_method(
|
295
295
|
"add_no_overlap",
|
@@ -306,11 +306,6 @@ void init_constraint(Rice::Module& m) {
|
|
306
306
|
[](CpModelBuilder& self, LinearExpr expr) {
|
307
307
|
self.Minimize(expr);
|
308
308
|
})
|
309
|
-
.define_method(
|
310
|
-
"scale_objective_by",
|
311
|
-
[](CpModelBuilder& self, double scaling) {
|
312
|
-
self.ScaleObjectiveBy(scaling);
|
313
|
-
})
|
314
309
|
.define_method(
|
315
310
|
"add_hint",
|
316
311
|
[](CpModelBuilder& self, IntVar var, int64_t value) {
|
data/ext/or-tools/vendor.rb
CHANGED
@@ -3,32 +3,32 @@ require "fileutils"
|
|
3
3
|
require "net/http"
|
4
4
|
require "tmpdir"
|
5
5
|
|
6
|
-
version = "9.
|
6
|
+
version = "9.2.9972"
|
7
7
|
|
8
8
|
if RbConfig::CONFIG["host_os"] =~ /darwin/i
|
9
|
-
filename = "or-tools_MacOsX-
|
10
|
-
checksum = "
|
9
|
+
filename = "or-tools_MacOsX-12.0.1_v#{version}.tar.gz"
|
10
|
+
checksum = "796791a8ef84507d62e193e647cccb1c7725dae4f1474476e1777fe4a44ee3e0"
|
11
11
|
else
|
12
12
|
os = %x[lsb_release -is].chomp rescue nil
|
13
13
|
os_version = %x[lsb_release -rs].chomp rescue nil
|
14
14
|
if os == "Ubuntu" && os_version == "20.04"
|
15
15
|
filename = "or-tools_amd64_ubuntu-20.04_v#{version}.tar.gz"
|
16
|
-
checksum = "
|
16
|
+
checksum = "985e3036eaecacfc8a0258ec2ebef429240491577d4e0896d68fc076e65451ec"
|
17
17
|
elsif os == "Ubuntu" && os_version == "18.04"
|
18
18
|
filename = "or-tools_amd64_ubuntu-18.04_v#{version}.tar.gz"
|
19
|
-
checksum = "
|
19
|
+
checksum = "e36406c4fe8c111e1ace0ede9d0787ff0e98f11afd7db9cc074adfd0f55628a6"
|
20
20
|
elsif os == "Debian" && os_version == "11"
|
21
21
|
filename = "or-tools_amd64_debian-11_v#{version}.tar.gz"
|
22
|
-
checksum = "
|
22
|
+
checksum = "bd49ee916213b2140ab255414d35a28f19dff7caf87632309753d3fc553f85dd"
|
23
23
|
elsif os == "Debian" && os_version == "10"
|
24
24
|
filename = "or-tools_amd64_debian-10_v#{version}.tar.gz"
|
25
|
-
checksum = "
|
25
|
+
checksum = "b152fee584f0c8228fe2ff21b74c789870ff9b7064e42ca26305c6b5653f0064"
|
26
26
|
elsif os == "CentOS" && os_version == "8"
|
27
27
|
filename = "or-tools_amd64_centos-8_v#{version}.tar.gz"
|
28
|
-
checksum = "
|
28
|
+
checksum = "66ed4bb800acf92c672f7e68acdf4ea27bbfdb17bbddc02f8326cd55a97305f6"
|
29
29
|
elsif os == "CentOS" && os_version == "7"
|
30
30
|
filename = "or-tools_amd64_centos-7_v#{version}.tar.gz"
|
31
|
-
checksum = "
|
31
|
+
checksum = "4a5c1b1639a2828cd7e1ba82a574ef37876557b59e8aab8b81811bb750d53035"
|
32
32
|
else
|
33
33
|
platform =
|
34
34
|
if Gem.win_platform?
|
data/lib/or_tools/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: or-tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Kane
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-12-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rice
|
@@ -68,7 +68,7 @@ files:
|
|
68
68
|
- lib/or_tools/var_array_and_objective_solution_printer.rb
|
69
69
|
- lib/or_tools/var_array_solution_printer.rb
|
70
70
|
- lib/or_tools/version.rb
|
71
|
-
homepage: https://github.com/ankane/or-tools
|
71
|
+
homepage: https://github.com/ankane/or-tools-ruby
|
72
72
|
licenses:
|
73
73
|
- MIT
|
74
74
|
metadata: {}
|
@@ -87,7 +87,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
87
87
|
- !ruby/object:Gem::Version
|
88
88
|
version: '0'
|
89
89
|
requirements: []
|
90
|
-
rubygems_version: 3.2.
|
90
|
+
rubygems_version: 3.2.32
|
91
91
|
signing_key:
|
92
92
|
specification_version: 4
|
93
93
|
summary: Operations research tools for Ruby
|