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 +4 -4
- data/lib/ruby-cbc/problem.rb +5 -1
- data/lib/ruby-cbc/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b7d419ff0ed7b4eae06511c652a73b99bbb1390b
|
4
|
+
data.tar.gz: 686e880ff97889975abc065772633340306ea032
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 33412587b49fbcd5b10ca8d7b551a21a988902ae10b0f6a8c66f8c45c595b367bec6f996cb5109ff146cc6eea23c3db490d7f55f14734022f09ca73ff99225d5
|
7
|
+
data.tar.gz: 9d6caaac6d00c798c7c939d808e1852c2aee74b539fd79602d2c9f82f467f268587939211e8b83975be214fc9b15779d95416c7414c7182fc5940d0f9d1fd7bd
|
data/lib/ruby-cbc/problem.rb
CHANGED
@@ -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
|
-
|
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)
|
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.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
|
+
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.
|
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
|