highs 0.2.4 → 0.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/highs/array.rb +1 -1
- data/lib/highs/methods.rb +1 -1
- data/lib/highs/model.rb +6 -6
- data/lib/highs/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c3d0ceaf922a6504fef534e0f0c3dd6bf180821ca4087461a4c27197b5e4b508
|
4
|
+
data.tar.gz: 8fb06e82193f879b012f96ae53c748ec6c8d1dae22c39fa1af29091f9c2b2049
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 607c3cf811e9b09a62cb23a613a9d8838939f9149bc1ed37ef4014f589f63c38fb549c34c392aecb8544e7f138987aa4098c38f51af2ebfed7541bbe4d771bfb
|
7
|
+
data.tar.gz: d17a5822aa7ff198ec3ced50f0d9dac3e027377dd6200e2f8f1e8417ba5d6a778980ad4dc76f17c4fe499119e65f77df6eea8435594dfd2dfb7483ab769f8ce0
|
data/CHANGELOG.md
CHANGED
data/lib/highs/array.rb
CHANGED
data/lib/highs/methods.rb
CHANGED
data/lib/highs/model.rb
CHANGED
@@ -4,7 +4,7 @@ module Highs
|
|
4
4
|
@ptr = FFI.Highs_create
|
5
5
|
@ptr.free = FFI["Highs_destroy"]
|
6
6
|
|
7
|
-
check_status FFI.Highs_setBoolOptionValue(@ptr, "output_flag", 0)
|
7
|
+
check_status FFI.Highs_setBoolOptionValue(@ptr, +"output_flag", 0)
|
8
8
|
end
|
9
9
|
|
10
10
|
def solve(verbose: false, time_limit: nil)
|
@@ -38,7 +38,7 @@ module Highs
|
|
38
38
|
end
|
39
39
|
|
40
40
|
def write(filename)
|
41
|
-
check_status FFI.Highs_writeModel(@ptr, filename)
|
41
|
+
check_status FFI.Highs_writeModel(@ptr, +filename)
|
42
42
|
end
|
43
43
|
|
44
44
|
def to_ptr
|
@@ -52,12 +52,12 @@ module Highs
|
|
52
52
|
end
|
53
53
|
|
54
54
|
def with_options(verbose:, time_limit:)
|
55
|
-
check_status(FFI.Highs_setBoolOptionValue(@ptr, "output_flag", 1)) if verbose
|
56
|
-
check_status(FFI.Highs_setDoubleOptionValue(@ptr, "time_limit", time_limit)) if time_limit
|
55
|
+
check_status(FFI.Highs_setBoolOptionValue(@ptr, +"output_flag", 1)) if verbose
|
56
|
+
check_status(FFI.Highs_setDoubleOptionValue(@ptr, +"time_limit", time_limit)) if time_limit
|
57
57
|
yield
|
58
58
|
ensure
|
59
|
-
check_status(FFI.Highs_setBoolOptionValue(@ptr, "output_flag", 0)) if verbose
|
60
|
-
check_status(FFI.Highs_setDoubleOptionValue(@ptr, "time_limit", Float::INFINITY)) if time_limit
|
59
|
+
check_status(FFI.Highs_setBoolOptionValue(@ptr, +"output_flag", 0)) if verbose
|
60
|
+
check_status(FFI.Highs_setDoubleOptionValue(@ptr, +"time_limit", Float::INFINITY)) if time_limit
|
61
61
|
end
|
62
62
|
end
|
63
63
|
end
|
data/lib/highs/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: highs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Kane
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date:
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: fiddle
|
@@ -62,7 +62,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
62
62
|
- !ruby/object:Gem::Version
|
63
63
|
version: '0'
|
64
64
|
requirements: []
|
65
|
-
rubygems_version: 3.6.
|
65
|
+
rubygems_version: 3.6.7
|
66
66
|
specification_version: 4
|
67
67
|
summary: Linear optimization for Ruby
|
68
68
|
test_files: []
|