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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e88bfc983ea525a514082c15ad21c53f9e35f8b1d291d55f6810a0c47c7a2fa8
4
- data.tar.gz: d3101dceed98ebd35f788c1cd5df122078cd435f5bceb21cf4e7a1b13dd2ac04
3
+ metadata.gz: 1775ae46a18be137ae64fce870d29c17c3ae385c61f295f79d7ded40ed0be0bd
4
+ data.tar.gz: 28262f8b77a8dd0dc085e16a261005a47e1352d8f9f5c148ed524c348daec8db
5
5
  SHA512:
6
- metadata.gz: a12e68f45b7829f76d77e107c14cb072158bc956348b07dc93bc0bcb4a91f6fff8a22389d88bd8102a3c7d6eec86e25e4aeca4043cd4b2b560575f8d5dde8578
7
- data.tar.gz: 1448aa409c1664ce15e859a5ad115b4ba975f4b976ad522cc95db4699c65c9356a5b78f05507db166a46fd60cc80e0907a85b625fc2150bdaa591fe3aa7b13db
6
+ metadata.gz: 771d9a78ace00ce16d8f5e71f595a4523fd8613c81b8e09691d231cb1e7881ce94e8cdd0e21dd60168a58d40e0135891988cfc47fac33d511b551cf932819bae
7
+ data.tar.gz: 5231109d9afb080481f608bd784b3e86cdfc0b336f828d9fad714b5fa37eda0c4f02495e3718eeb9b0c05135b5b344a7084df55c7f26674ef2e73653ad7d8a3d
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 0.6.0 (2021-12-16)
2
+
3
+ - Updated OR-Tools to 9.2
4
+ - Renamed `add_product_equality` to `add_multiplication_equality`
5
+ - Removed `scale_objective_by`
6
+
1
7
  ## 0.5.4 (2021-10-01)
2
8
 
3
9
  - Updated OR-Tools to 9.1
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
- [![Build Status](https://github.com/ankane/or-tools/workflows/build/badge.svg?branch=master)](https://github.com/ankane/or-tools/actions)
5
+ [![Build Status](https://github.com/ankane/or-tools-ruby/workflows/build/badge.svg?branch=master)](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
@@ -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
- "add_product_equality",
290
+ "add_multiplication_equality",
291
291
  [](CpModelBuilder& self, IntVar target, std::vector<IntVar> vars) {
292
- return self.AddProductEquality(target, vars);
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) {
@@ -3,32 +3,32 @@ require "fileutils"
3
3
  require "net/http"
4
4
  require "tmpdir"
5
5
 
6
- version = "9.1.9490"
6
+ version = "9.2.9972"
7
7
 
8
8
  if RbConfig::CONFIG["host_os"] =~ /darwin/i
9
- filename = "or-tools_MacOsX-11.6_v#{version}.tar.gz"
10
- checksum = "97a2b113806c1b2d17f9b3f30571c9ee82722eb22e06bd124d94118f3a84da2c"
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 = "cf82e5c343ab74bef320b240a2c3937b07df945e60b91bbc771b477c0856c1bd"
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 = "b641677cc3e1095b7e8efd9c5c948698f5e2c238d10d06f1abf0b0ee240addf2"
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 = "de7e63988fc62c64718d8f8f37f98a1c589c89ebc46fc1f378da4b66ad385ff1"
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 = "80411caeccac079fe8ee6018ceae844f5f04d2deecacd3406d51354dea5435e4"
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 = "fe23b04dd7a20c5902fbf89bb626080296489a05e0bfb39225e71be5e9cee1ac"
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 = "ef48363b27591c25f8702e085024aa7b5f5190ad94c859481116538f04c124f9"
31
+ checksum = "4a5c1b1639a2828cd7e1ba82a574ef37876557b59e8aab8b81811bb750d53035"
32
32
  else
33
33
  platform =
34
34
  if Gem.win_platform?
@@ -1,3 +1,3 @@
1
1
  module ORTools
2
- VERSION = "0.5.4"
2
+ VERSION = "0.6.0"
3
3
  end
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.5.4
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-10-01 00:00:00.000000000 Z
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.22
90
+ rubygems_version: 3.2.32
91
91
  signing_key:
92
92
  specification_version: 4
93
93
  summary: Operations research tools for Ruby