glpk 0.2.1 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +2 -2
- data/lib/glpk/problem.rb +1 -1
- data/lib/glpk/version.rb +1 -1
- metadata +19 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 562dd3b6bbfbe501c454ab80f9a44ecadbc20035a0e52542dbeb03ebac763056
|
4
|
+
data.tar.gz: c56673b4b51e15e6657d35e813473ec192fff0f5d03f2bc3ebf1a5e99b97abe8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d09999eea8b64cb9b432bffd60620e4b7aab27e578593f0489152525f62a125529c122a3a74a9d06874e141bd50a26b79a984148705f555cdfc06007cf7fdbb8
|
7
|
+
data.tar.gz: e6b556121291fcf6c6bc0a41a06f38910990dcdc74808c85c38b45ce65c19661a547ca52712c95f09bd389124c50f2f265e4105d9ffbc9b3557f88f719c8442b
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
Check out [Opt](https://github.com/ankane/opt) for a high-level interface
|
6
6
|
|
7
|
-
[![Build Status](https://github.com/ankane/glpk-ruby/workflows/build/badge.svg
|
7
|
+
[![Build Status](https://github.com/ankane/glpk-ruby/actions/workflows/build.yml/badge.svg)](https://github.com/ankane/glpk-ruby/actions)
|
8
8
|
|
9
9
|
## Installation
|
10
10
|
|
@@ -76,7 +76,7 @@ problem = Glpk.read_lp("hello.lp")
|
|
76
76
|
problem = Glpk.read_mps("hello.mps")
|
77
77
|
```
|
78
78
|
|
79
|
-
Free the problem (
|
79
|
+
Free the problem (required in multi-threaded environments)
|
80
80
|
|
81
81
|
```ruby
|
82
82
|
problem.free
|
data/lib/glpk/problem.rb
CHANGED
@@ -123,7 +123,7 @@ module Glpk
|
|
123
123
|
row_primal: num_rows.times.map { |i| FFI.glp_get_row_prim(model, i + 1) },
|
124
124
|
col_primal: num_cols.times.map { |i| FFI.glp_get_col_prim(model, i + 1) },
|
125
125
|
row_dual: num_rows.times.map { |i| FFI.glp_get_row_dual(model, i + 1) },
|
126
|
-
col_dual: num_cols.times.map { |i| FFI.glp_get_col_dual(model, i + 1) }
|
126
|
+
col_dual: num_cols.times.map { |i| FFI.glp_get_col_dual(model, i + 1) }
|
127
127
|
}
|
128
128
|
end
|
129
129
|
|
data/lib/glpk/version.rb
CHANGED
metadata
CHANGED
@@ -1,15 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: glpk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Kane
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
12
|
-
dependencies:
|
11
|
+
date: 2024-10-23 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: fiddle
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
13
27
|
description:
|
14
28
|
email: andrew@ankane.org
|
15
29
|
executables: []
|
@@ -35,14 +49,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
35
49
|
requirements:
|
36
50
|
- - ">="
|
37
51
|
- !ruby/object:Gem::Version
|
38
|
-
version: '
|
52
|
+
version: '3.1'
|
39
53
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
40
54
|
requirements:
|
41
55
|
- - ">="
|
42
56
|
- !ruby/object:Gem::Version
|
43
57
|
version: '0'
|
44
58
|
requirements: []
|
45
|
-
rubygems_version: 3.
|
59
|
+
rubygems_version: 3.5.16
|
46
60
|
signing_key:
|
47
61
|
specification_version: 4
|
48
62
|
summary: Linear programming kit for Ruby
|