opt-rb 0.1.3 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8adfde8fc1962e5cf69e3bfb6eb1a8b416e5960ed4bfb63c6ffba8a2eff224a4
4
- data.tar.gz: 6d799d6e79b71715ca255bb21d6935c558031b76ea945398d4d153d53c6064ea
3
+ metadata.gz: 1ba9bfc6a87fd93e3384d7b04e719f72f0ce199b7975d5eb9efecac46100364e
4
+ data.tar.gz: 6ee20ed853c5e95fb276cff9d5fe1bc03cd929e91215ed1fc1e7fe3af4cdc5e7
5
5
  SHA512:
6
- metadata.gz: 349ab72435d08d1d58203c616f194b6575c3e3210e21b0e42f23cc2dcd9e7806d1b6837e2574901cd87787432ae61c3b689535cbddf65c41cf62a0b2b49bb990
7
- data.tar.gz: d97fb3c4449fe2d281035dc6312a23ba9bda66c7bf7b2758b293463ce8a93e6a6ec113e1af1cff9d3223b52f243de9dce84d1d6fb3986e13fecc2efcb4aa2868
6
+ metadata.gz: 697252c336f276c895a3bcf5e5aac8b3b851ca3e5870ada417255cad0eb4968bedb0abac340ca6fb1c1498ed19be29a3419b30e18cf721618d34d5aa8f440dc2
7
+ data.tar.gz: 6bbf7d64e1a915197ce01079cc322d96f396cf03f17500a68d5fea5ef1d5b28253729c3638ce1408372d8f7cccbcc41e11f16db793df10d4f7688e36d6751802
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## 0.2.0 (2024-10-22)
2
+
3
+ - Dropped support for Ruby < 3.1
4
+
5
+ ## 0.1.4 (2023-11-28)
6
+
7
+ - Fixed `stack level too deep` error
8
+
1
9
  ## 0.1.3 (2023-06-09)
2
10
 
3
11
  - Fixed error with GLPK and threads
data/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  Supports Cbc, Clp, GLOP, GLPK, HiGHS, OSQP, and SCS
6
6
 
7
- [![Build Status](https://github.com/ankane/opt/workflows/build/badge.svg?branch=master)](https://github.com/ankane/opt/actions)
7
+ [![Build Status](https://github.com/ankane/opt/actions/workflows/build.yml/badge.svg)](https://github.com/ankane/opt/actions)
8
8
 
9
9
  ## Installation
10
10
 
@@ -63,7 +63,7 @@ x1 = Opt::Integer.new(0.., "x1")
63
63
  x2 = Opt::Binary.new("x2")
64
64
  ```
65
65
 
66
- MIP with semi-continuous variables - *HiGHS only at the moment* [unreleased]
66
+ MIP with semi-continuous variables - *HiGHS only at the moment*
67
67
 
68
68
  ```ruby
69
69
  x1 = Opt::SemiContinuous.new(2.., "x1")
@@ -7,11 +7,11 @@ module Opt
7
7
  end
8
8
 
9
9
  def +(other)
10
- Expression.new([self, self.class.to_expression(other)])
10
+ Expression.new((parts || [self]) + [self.class.to_expression(other)])
11
11
  end
12
12
 
13
13
  def -(other)
14
- Expression.new([self, -self.class.to_expression(other)])
14
+ Expression.new((parts || [self]) + [-self.class.to_expression(other)])
15
15
  end
16
16
 
17
17
  def -@
data/lib/opt/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Opt
2
- VERSION = "0.1.3"
2
+ VERSION = "0.2.0"
3
3
  end
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.3
4
+ version: 0.2.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: 2023-06-09 00:00:00.000000000 Z
11
+ date: 2024-10-23 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: andrew@ankane.org
@@ -52,14 +52,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
52
52
  requirements:
53
53
  - - ">="
54
54
  - !ruby/object:Gem::Version
55
- version: '2.7'
55
+ version: '3.1'
56
56
  required_rubygems_version: !ruby/object:Gem::Requirement
57
57
  requirements:
58
58
  - - ">="
59
59
  - !ruby/object:Gem::Version
60
60
  version: '0'
61
61
  requirements: []
62
- rubygems_version: 3.4.10
62
+ rubygems_version: 3.5.16
63
63
  signing_key:
64
64
  specification_version: 4
65
65
  summary: Convex optimization for Ruby