highs 0.1.4 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4f91fd7c597e063d070b5ad454f0b1912325753280165435653ce6124661e8a2
4
- data.tar.gz: a8a0e59f821cd5b688c1f3181143731adaa4e54b71b55d3a056993bcf56ba0a2
3
+ metadata.gz: d0f83f12e500ca3c875b9e73eaaedd19f8829c4c8c427e34b62cf845d3ef858e
4
+ data.tar.gz: 186a708249b1fe47cca435e2fb856c042f964fde8a8b6d9f0f27b16405f479d6
5
5
  SHA512:
6
- metadata.gz: 14d09517251bcf48d3326da0939da9079dd361bd5796643835218446aba8c73621ce99dc449041ff21d2d0c58707c207b943839f635464e0c7b59a4000ab7fb6
7
- data.tar.gz: 1b3e7f53a2f855eee94fc202ca37a983dd6a43c6a3a95647f64f79e6b13ea755fbc5397bb7f7ad46083a12a32cb7a59322196167acc7e8975e39769b2f406fdd
6
+ metadata.gz: 7314b8197274fe1ad86eb24c86678871ec31a91f7d3b5c36afc01f79112b81167baf62b7ff6e946e225f72bf77dd6b8b89f5486be63e71142573779c14ad1cca
7
+ data.tar.gz: 969937d11d76bdf059ee5343d498ba63e7dbc8f536bae153f544bdd6578515900ea485b582b632e506b0820d32e8ee9dabbfca414f4f657d4240bcc7969cbf4d
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 0.1.5 (2023-06-07)
2
+
3
+ - Updated HiGHS to 1.5.1
4
+ - Fixed error with `dup` and `clone`
5
+
1
6
  ## 0.1.4 (2022-12-08)
2
7
 
3
8
  - 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-2023 HiGHS
4
+ Copyright (c) 2022-2023 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,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.4"
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,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2022 HiGHS
3
+ Copyright (c) 2023 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.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-12-09 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.4.0.dev
53
+ rubygems_version: 3.4.10
53
54
  signing_key:
54
55
  specification_version: 4
55
56
  summary: Linear optimization for Ruby