ruby-cbc 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ruby-cbc/problem.rb +2 -2
- data/lib/ruby-cbc/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 11346df85017e804d90ab3a3ba3f1c8136a22d22
|
4
|
+
data.tar.gz: c58754495c6aafe882fd18c286a71f17eb8f32ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 837a556cd4ea9cc15138a6b0297750cfef78ece27131da25a08ecd906efef3fe76e2cfc01120753bd4d8e8cb556089945352e947c710ffdc47dbc25ff6839caa
|
7
|
+
data.tar.gz: 87ac35759d1de68e3e4764472f84141b6fc48e9e6b1bd90e7851d58293b917467a023bc491af81290b93b9b42393192e62ce46afcc560e6498a79ffdad80d10a
|
data/lib/ruby-cbc/problem.rb
CHANGED
@@ -117,11 +117,11 @@ module Cbc
|
|
117
117
|
end
|
118
118
|
|
119
119
|
def time_limit_reached?
|
120
|
-
Cbc_wrapper.Cbc_isSecondsLimitReached(@cbc_model)
|
120
|
+
Cbc_wrapper.Cbc_isSecondsLimitReached(@cbc_model) == 1
|
121
121
|
end
|
122
122
|
|
123
123
|
def solution_limit_reached?
|
124
|
-
Cbc_wrapper.Cbc_isSolutionLimitReached(@cbc_model)
|
124
|
+
Cbc_wrapper.Cbc_isSolutionLimitReached(@cbc_model) == 1
|
125
125
|
end
|
126
126
|
|
127
127
|
def objective_value
|
data/lib/ruby-cbc/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-cbc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Guillaume Verger
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-01-
|
11
|
+
date: 2016-01-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -153,9 +153,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
153
153
|
version: '0'
|
154
154
|
requirements: []
|
155
155
|
rubyforge_project:
|
156
|
-
rubygems_version: 2.4.
|
156
|
+
rubygems_version: 2.4.6
|
157
157
|
signing_key:
|
158
158
|
specification_version: 4
|
159
159
|
summary: Wrapper around Cbc Linear Programming Solver
|
160
160
|
test_files: []
|
161
|
-
has_rdoc:
|