rulp 0.0.21 → 0.0.22
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rulp/rulp.rb +3 -0
- data/lib/solvers/solver.rb +8 -0
- 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: 912368647d83dea0e265b19db45e2fd01ca13eae
|
4
|
+
data.tar.gz: 5021fac9d0b62dc4a4160ce43cdf1c085327d632
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 72b4248581c87d1cace2d073667ba70de3b02f9381d16e483454d162422e69f887ea08d4596c0353f7e602c8915f0348af73bd413ec8ea22426153eb2078b25e
|
7
|
+
data.tar.gz: 15b32b970cf4d0404f5c160831f3b2dc08851633d39377be87ffeef3c4506b5a00577f130d52437b47bc224479c76404a9ca266925648467178f0fba637f46fd
|
data/lib/rulp/rulp.rb
CHANGED
@@ -170,6 +170,9 @@ module Rulp
|
|
170
170
|
"Parsing result".log(:info)
|
171
171
|
solver.store_results(@variables)
|
172
172
|
|
173
|
+
solver.remove_lp_file if options[:remove_lp_file]
|
174
|
+
solver.remove_sol_file if options[:remove_sol_file]
|
175
|
+
|
173
176
|
self.result = @objective_expression.evaluate
|
174
177
|
|
175
178
|
"Objective: #{result}\n#{@variables.map{|v|[v.name, "=", v.value].join(' ') if v.value}.compact.join("\n")}".log(:debug)
|
data/lib/solvers/solver.rb
CHANGED
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.22
|
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-01-
|
11
|
+
date: 2016-01-21 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: A simple Ruby LP description DSL
|
14
14
|
email: wc@pico.net.nz
|