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 +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +2 -2
- data/lib/opt/expression.rb +2 -2
- data/lib/opt/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1ba9bfc6a87fd93e3384d7b04e719f72f0ce199b7975d5eb9efecac46100364e
|
4
|
+
data.tar.gz: 6ee20ed853c5e95fb276cff9d5fe1bc03cd929e91215ed1fc1e7fe3af4cdc5e7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 697252c336f276c895a3bcf5e5aac8b3b851ca3e5870ada417255cad0eb4968bedb0abac340ca6fb1c1498ed19be29a3419b30e18cf721618d34d5aa8f440dc2
|
7
|
+
data.tar.gz: 6bbf7d64e1a915197ce01079cc322d96f396cf03f17500a68d5fea5ef1d5b28253729c3638ce1408372d8f7cccbcc41e11f16db793df10d4f7688e36d6751802
|
data/CHANGELOG.md
CHANGED
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
|
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*
|
66
|
+
MIP with semi-continuous variables - *HiGHS only at the moment*
|
67
67
|
|
68
68
|
```ruby
|
69
69
|
x1 = Opt::SemiContinuous.new(2.., "x1")
|
data/lib/opt/expression.rb
CHANGED
@@ -7,11 +7,11 @@ module Opt
|
|
7
7
|
end
|
8
8
|
|
9
9
|
def +(other)
|
10
|
-
Expression.new([self
|
10
|
+
Expression.new((parts || [self]) + [self.class.to_expression(other)])
|
11
11
|
end
|
12
12
|
|
13
13
|
def -(other)
|
14
|
-
Expression.new([self
|
14
|
+
Expression.new((parts || [self]) + [-self.class.to_expression(other)])
|
15
15
|
end
|
16
16
|
|
17
17
|
def -@
|
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.
|
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:
|
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: '
|
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.
|
62
|
+
rubygems_version: 3.5.16
|
63
63
|
signing_key:
|
64
64
|
specification_version: 4
|
65
65
|
summary: Convex optimization for Ruby
|