opt-rb 0.1.1 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/lib/opt/expression.rb +7 -0
- data/lib/opt/problem.rb +1 -1
- data/lib/opt/product.rb +6 -0
- data/lib/opt/solvers/glpk_solver.rb +1 -0
- data/lib/opt/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8adfde8fc1962e5cf69e3bfb6eb1a8b416e5960ed4bfb63c6ffba8a2eff224a4
|
4
|
+
data.tar.gz: 6d799d6e79b71715ca255bb21d6935c558031b76ea945398d4d153d53c6064ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 349ab72435d08d1d58203c616f194b6575c3e3210e21b0e42f23cc2dcd9e7806d1b6837e2574901cd87787432ae61c3b689535cbddf65c41cf62a0b2b49bb990
|
7
|
+
data.tar.gz: d97fb3c4449fe2d281035dc6312a23ba9bda66c7bf7b2758b293463ce8a93e6a6ec113e1af1cff9d3223b52f243de9dce84d1d6fb3986e13fecc2efcb4aa2868
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,12 @@
|
|
1
|
+
## 0.1.3 (2023-06-09)
|
2
|
+
|
3
|
+
- Fixed error with GLPK and threads
|
4
|
+
|
5
|
+
## 0.1.2 (2023-05-01)
|
6
|
+
|
7
|
+
- Added `value` method for expressions
|
8
|
+
- Fixed error selecting solver
|
9
|
+
|
1
10
|
## 0.1.1 (2023-04-16)
|
2
11
|
|
3
12
|
- Added support for semi-continuous and semi-integer variables
|
data/lib/opt/expression.rb
CHANGED
data/lib/opt/problem.rb
CHANGED
@@ -40,7 +40,7 @@ module Opt
|
|
40
40
|
|
41
41
|
raise Error, "No solvers found" if Opt.available_solvers.empty?
|
42
42
|
|
43
|
-
solver ||= (Opt.default_solvers[type] || Opt.available_solvers.find { |s| s.supports_type?(type) })
|
43
|
+
solver ||= (Opt.default_solvers[type] || Opt.available_solvers.find { |s| Opt.solvers[s].supports_type?(type) })
|
44
44
|
raise Error, "No solvers found for #{type}" unless solver
|
45
45
|
|
46
46
|
# TODO better error message
|
data/lib/opt/product.rb
CHANGED
data/lib/opt/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opt-rb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Kane
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-06-09 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email: andrew@ankane.org
|