ruby-cbc 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 11346df85017e804d90ab3a3ba3f1c8136a22d22
4
- data.tar.gz: c58754495c6aafe882fd18c286a71f17eb8f32ac
3
+ metadata.gz: b7d419ff0ed7b4eae06511c652a73b99bbb1390b
4
+ data.tar.gz: 686e880ff97889975abc065772633340306ea032
5
5
  SHA512:
6
- metadata.gz: 837a556cd4ea9cc15138a6b0297750cfef78ece27131da25a08ecd906efef3fe76e2cfc01120753bd4d8e8cb556089945352e947c710ffdc47dbc25ff6839caa
7
- data.tar.gz: 87ac35759d1de68e3e4764472f84141b6fc48e9e6b1bd90e7851d58293b917467a023bc491af81290b93b9b42393192e62ce46afcc560e6498a79ffdad80d10a
6
+ metadata.gz: 33412587b49fbcd5b10ca8d7b551a21a988902ae10b0f6a8c66f8c45c595b367bec6f996cb5109ff146cc6eea23c3db490d7f55f14734022f09ca73ff99225d5
7
+ data.tar.gz: 9d6caaac6d00c798c7c939d808e1852c2aee74b539fd79602d2c9f82f467f268587939211e8b83975be214fc9b15779d95416c7414c7182fc5940d0f9d1fd7bd
@@ -101,7 +101,11 @@ module Cbc
101
101
  def value_of(var)
102
102
  idx = @variables[var]
103
103
  return nil if idx.nil?
104
- @solution[idx]
104
+ if var.kind == Ilp::Var::CONTINUOUS_KIND
105
+ @solution[idx]
106
+ else
107
+ @solution[idx].round
108
+ end
105
109
  end
106
110
 
107
111
  def set_time_limit(seconds)
@@ -1,3 +1,3 @@
1
1
  module Cbc
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
3
3
  end
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.3
4
+ version: 0.2.4
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 00:00:00.000000000 Z
11
+ date: 2016-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -153,7 +153,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
153
153
  version: '0'
154
154
  requirements: []
155
155
  rubyforge_project:
156
- rubygems_version: 2.4.6
156
+ rubygems_version: 2.4.5.1
157
157
  signing_key:
158
158
  specification_version: 4
159
159
  summary: Wrapper around Cbc Linear Programming Solver