highs 0.1.4 → 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: 4f91fd7c597e063d070b5ad454f0b1912325753280165435653ce6124661e8a2
4
- data.tar.gz: a8a0e59f821cd5b688c1f3181143731adaa4e54b71b55d3a056993bcf56ba0a2
3
+ metadata.gz: 4190e2098b9e425450d833ec7a5374e929e00580c0d42e582605af9e480b45ee
4
+ data.tar.gz: '029ec011250ca3586aceca942ae0ac0b5e4370d2b99bdbec10b42173eca003a5'
5
5
  SHA512:
6
- metadata.gz: 14d09517251bcf48d3326da0939da9079dd361bd5796643835218446aba8c73621ce99dc449041ff21d2d0c58707c207b943839f635464e0c7b59a4000ab7fb6
7
- data.tar.gz: 1b3e7f53a2f855eee94fc202ca37a983dd6a43c6a3a95647f64f79e6b13ea755fbc5397bb7f7ad46083a12a32cb7a59322196167acc7e8975e39769b2f406fdd
6
+ metadata.gz: be1c4d95c68e0e6e7183acd09f1559af32d1d3b8926ad7de0e90746c0158b2a206c0112fba8897ed4463250cf4a1e11b168c2507680af8340920e91b5119db40
7
+ data.tar.gz: e5c4cd16159b3a3445a9eb15f8097220cd03129b5488c2ea535ba1d3b7ad058f2839ce2a6da15fdd6dd5ffb9ef0b29e6ed815fc7b2248b5a75a1d6d75137a03b
data/CHANGELOG.md CHANGED
@@ -1,3 +1,13 @@
1
+ ## 0.2.0 (2024-07-31)
2
+
3
+ - Updated HiGHS to 1.7.2
4
+ - Dropped support for Ruby < 3.1
5
+
6
+ ## 0.1.5 (2023-06-07)
7
+
8
+ - Updated HiGHS to 1.5.1
9
+ - Fixed error with `dup` and `clone`
10
+
1
11
  ## 0.1.4 (2022-12-08)
2
12
 
3
13
  - Updated HiGHS to 1.4.1
data/LICENSE.txt CHANGED
@@ -1,7 +1,7 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2022 HiGHS
4
- Copyright (c) 2022 Andrew Kane
3
+ Copyright (c) 2022-2024 HiGHS
4
+ Copyright (c) 2022-2024 Andrew Kane
5
5
 
6
6
  Permission is hereby granted, free of charge, to any person obtaining a copy
7
7
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -2,7 +2,9 @@
2
2
 
3
3
  [HiGHS](https://www.maths.ed.ac.uk/hall/HiGHS/) - linear optimization software - for Ruby
4
4
 
5
- [![Build Status](https://github.com/ankane/highs-ruby/workflows/build/badge.svg?branch=master)](https://github.com/ankane/highs-ruby/actions)
5
+ Check out [Opt](https://github.com/ankane/opt) for a high-level interface
6
+
7
+ [![Build Status](https://github.com/ankane/highs-ruby/actions/workflows/build.yml/badge.svg)](https://github.com/ankane/highs-ruby/actions)
6
8
 
7
9
  ## Installation
8
10
 
data/lib/highs/model.rb CHANGED
@@ -2,7 +2,7 @@ module Highs
2
2
  class Model
3
3
  def initialize
4
4
  @ptr = FFI.Highs_create
5
- ObjectSpace.define_finalizer(self, self.class.finalize(@ptr))
5
+ @ptr.free = FFI["Highs_destroy"]
6
6
 
7
7
  check_status FFI.Highs_setBoolOptionValue(@ptr, "output_flag", 0)
8
8
  end
@@ -45,11 +45,6 @@ module Highs
45
45
  @ptr
46
46
  end
47
47
 
48
- def self.finalize(ptr)
49
- # must use proc instead of stabby lambda
50
- proc { FFI.Highs_destroy(ptr) }
51
- end
52
-
53
48
  private
54
49
 
55
50
  def check_status(status)
data/lib/highs/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Highs
2
- VERSION = "0.1.4"
2
+ VERSION = "0.2.0"
3
3
  end
data/lib/highs.rb CHANGED
@@ -2,10 +2,10 @@
2
2
  require "fiddle/import"
3
3
 
4
4
  # modules
5
- require "highs/array"
6
- require "highs/methods"
7
- require "highs/model"
8
- require "highs/version"
5
+ require_relative "highs/array"
6
+ require_relative "highs/methods"
7
+ require_relative "highs/model"
8
+ require_relative "highs/version"
9
9
 
10
10
  module Highs
11
11
  class Error < StandardError; end
@@ -0,0 +1,70 @@
1
+ ================================================================================
2
+ FilereaderLP
3
+ ================================================================================
4
+
5
+ Copyright (c) 2020 Michael Feldmeier
6
+
7
+ Permission is hereby granted, free of charge, to any person obtaining a copy
8
+ of this software and associated documentation files (the "Software"), to deal
9
+ in the Software without restriction, including without limitation the rights
10
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
+ copies of the Software, and to permit persons to whom the Software is
12
+ furnished to do so, subject to the following conditions:
13
+
14
+ The above copyright notice and this permission notice shall be included in all
15
+ copies or substantial portions of the Software.
16
+
17
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
+ SOFTWARE.
24
+
25
+ ================================================================================
26
+ pdqsort
27
+ ================================================================================
28
+
29
+ Copyright (c) 2021 Orson Peters <orsonpeters@gmail.com>
30
+
31
+ This software is provided 'as-is', without any express or implied warranty. In no event will the
32
+ authors be held liable for any damages arising from the use of this software.
33
+
34
+ Permission is granted to anyone to use this software for any purpose, including commercial
35
+ applications, and to alter it and redistribute it freely, subject to the following restrictions:
36
+
37
+ 1. The origin of this software must not be misrepresented; you must not claim that you wrote the
38
+ original software. If you use this software in a product, an acknowledgment in the product
39
+ documentation would be appreciated but is not required.
40
+
41
+ 2. Altered source versions must be plainly marked as such, and must not be misrepresented as
42
+ being the original software.
43
+
44
+ 3. This notice may not be removed or altered from any source distribution.
45
+
46
+ ================================================================================
47
+ zstr 1.0.5
48
+ ================================================================================
49
+
50
+ The MIT License (MIT)
51
+
52
+ Copyright (c) 2015 Matei David, Ontario Institute for Cancer Research
53
+
54
+ Permission is hereby granted, free of charge, to any person obtaining a copy
55
+ of this software and associated documentation files (the "Software"), to deal
56
+ in the Software without restriction, including without limitation the rights
57
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
58
+ copies of the Software, and to permit persons to whom the Software is
59
+ furnished to do so, subject to the following conditions:
60
+
61
+ The above copyright notice and this permission notice shall be included in all
62
+ copies or substantial portions of the Software.
63
+
64
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
65
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
66
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
67
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
68
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
69
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
70
+ SOFTWARE.
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2022 HiGHS
3
+ Copyright (c) 2024 HiGHS
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
Binary file
Binary file
Binary file
Binary file
data/vendor/libhighs.so CHANGED
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: highs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
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: 2022-12-09 00:00:00.000000000 Z
11
+ date: 2024-08-01 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: andrew@ankane.org
@@ -25,9 +25,11 @@ files:
25
25
  - lib/highs/methods.rb
26
26
  - lib/highs/model.rb
27
27
  - lib/highs/version.rb
28
- - vendor/LICENSE
28
+ - vendor/LICENSE-THIRD-PARTY.txt
29
+ - vendor/LICENSE.txt
29
30
  - vendor/libhighs.arm64.dylib
30
31
  - vendor/libhighs.arm64.so
32
+ - vendor/libhighs.dll
31
33
  - vendor/libhighs.dylib
32
34
  - vendor/libhighs.so
33
35
  homepage: https://github.com/ankane/highs-ruby
@@ -42,14 +44,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
42
44
  requirements:
43
45
  - - ">="
44
46
  - !ruby/object:Gem::Version
45
- version: '2.7'
47
+ version: '3.1'
46
48
  required_rubygems_version: !ruby/object:Gem::Requirement
47
49
  requirements:
48
50
  - - ">="
49
51
  - !ruby/object:Gem::Version
50
52
  version: '0'
51
53
  requirements: []
52
- rubygems_version: 3.4.0.dev
54
+ rubygems_version: 3.5.11
53
55
  signing_key:
54
56
  specification_version: 4
55
57
  summary: Linear optimization for Ruby