rulp 0.0.39 → 0.0.40
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/solvers/gurobi.rb +3 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb89b749b9947f5cd3b2f1801592f95ee53f07e7
|
4
|
+
data.tar.gz: f0bc7c0eb5d39b9de9362c671d53da2270c99d71
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c69a393ff29a7e80834299262c008c896ad5ee9efcd05536fff2a8eff67f2d23c25b03d141a9e4f8dad10bc992dbd6e0f45e207ab47113349ec94bb76c91739
|
7
|
+
data.tar.gz: 486215cf943802025908fe3c3b3b65743f18ec970c93b680acabcfeed31931acde660372a515e64fc016e57799e06c776d70b02071f44db4fdda6c39cc08171c
|
data/lib/solvers/gurobi.rb
CHANGED
@@ -1,9 +1,10 @@
|
|
1
1
|
class Gurobi < Solver
|
2
2
|
def solve
|
3
|
-
command = "#{executable} ResultFile=#{@outfile} %s %s #{@filename}"
|
3
|
+
command = "#{executable} ResultFile=#{@outfile} %s %s %s #{@filename}"
|
4
4
|
command %= [
|
5
5
|
options[:gap] ? "MipGap=#{options[:gap]}":"",
|
6
|
-
options[:node_limit] ? "NodeLimit=#{options[:node_limit]}":""
|
6
|
+
options[:node_limit] ? "NodeLimit=#{options[:node_limit]}":"",
|
7
|
+
ENV['RULP_GUROBI_CMD_ARGS'] ? ENV['RULP_GUROBI_CMD_ARGS'] : ''
|
7
8
|
]
|
8
9
|
exec(command)
|
9
10
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rulp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.40
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Wouter Coppieters
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-11-
|
11
|
+
date: 2016-11-04 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: A simple Ruby LP description DSL
|
14
14
|
email: wc@pico.net.nz
|