highs 0.1.3 → 0.1.5

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: 2e1820b5de1dbc70a3892696ec19873ee45ef2a1169eb581c7b62e64fa2930d4
4
- data.tar.gz: f589846e73041dbd52ad4ac0fae110971f492525b9ad95023b4d20fe203c75b2
3
+ metadata.gz: d0f83f12e500ca3c875b9e73eaaedd19f8829c4c8c427e34b62cf845d3ef858e
4
+ data.tar.gz: 186a708249b1fe47cca435e2fb856c042f964fde8a8b6d9f0f27b16405f479d6
5
5
  SHA512:
6
- metadata.gz: a92aa350070a0870aac19d8e64597ed74b9293bc27ee2d8c1da82e1276e9918bb840b0617341925d7db468d6eb15f3e3bcb60a2efcd2eea6d7500a339cd219a9
7
- data.tar.gz: 0a5780c8dd03a8692dba3c8edec0068c277b95b0521baaab324c950a3d00d8a242f5f9c3b97c673e11ad2e5c4552a376d3b07e80462db6d47bc4f83e39ac9594
6
+ metadata.gz: 7314b8197274fe1ad86eb24c86678871ec31a91f7d3b5c36afc01f79112b81167baf62b7ff6e946e225f72bf77dd6b8b89f5486be63e71142573779c14ad1cca
7
+ data.tar.gz: 969937d11d76bdf059ee5343d498ba63e7dbc8f536bae153f544bdd6578515900ea485b582b632e506b0820d32e8ee9dabbfca414f4f657d4240bcc7969cbf4d
data/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## 0.1.5 (2023-06-07)
2
+
3
+ - Updated HiGHS to 1.5.1
4
+ - Fixed error with `dup` and `clone`
5
+
6
+ ## 0.1.4 (2022-12-08)
7
+
8
+ - Updated HiGHS to 1.4.1
9
+
1
10
  ## 0.1.3 (2022-11-05)
2
11
 
3
12
  - Updated HiGHS to 1.3.0
data/LICENSE.txt CHANGED
@@ -1,10 +1,7 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2021 ERGO-Code
4
- Copyright (c) 2022 Andrew Kane
5
-
6
- IPX and BASICLU, Copyright (c) 2018-2021 ERGO-Code
7
- Used in HiGHS under the MIT license.
3
+ Copyright (c) 2022-2023 HiGHS
4
+ Copyright (c) 2022-2023 Andrew Kane
8
5
 
9
6
  Permission is hereby granted, free of charge, to any person obtaining a copy
10
7
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  [HiGHS](https://www.maths.ed.ac.uk/hall/HiGHS/) - linear optimization software - for Ruby
4
4
 
5
+ Check out [Opt](https://github.com/ankane/opt) for a high-level interface
6
+
5
7
  [![Build Status](https://github.com/ankane/highs-ruby/workflows/build/badge.svg?branch=master)](https://github.com/ankane/highs-ruby/actions)
6
8
 
7
9
  ## Installation
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.3"
2
+ VERSION = "0.1.5"
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
data/vendor/LICENSE CHANGED
@@ -1,9 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2021 ERGO-Code
4
-
5
- IPX and BASICLU, Copyright (c) 2018-2021 ERGO-Code
6
- Used in HiGHS under the MIT license.
3
+ Copyright (c) 2023 HiGHS
7
4
 
8
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
9
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.3
4
+ version: 0.1.5
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-11-05 00:00:00.000000000 Z
11
+ date: 2023-06-08 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: andrew@ankane.org
@@ -28,6 +28,7 @@ files:
28
28
  - vendor/LICENSE
29
29
  - vendor/libhighs.arm64.dylib
30
30
  - vendor/libhighs.arm64.so
31
+ - vendor/libhighs.dll
31
32
  - vendor/libhighs.dylib
32
33
  - vendor/libhighs.so
33
34
  homepage: https://github.com/ankane/highs-ruby
@@ -49,7 +50,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
49
50
  - !ruby/object:Gem::Version
50
51
  version: '0'
51
52
  requirements: []
52
- rubygems_version: 3.3.7
53
+ rubygems_version: 3.4.10
53
54
  signing_key:
54
55
  specification_version: 4
55
56
  summary: Linear optimization for Ruby