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 +4 -4
- data/CHANGELOG.md +5 -0
- data/LICENSE.txt +2 -2
- data/README.md +2 -0
- data/lib/highs/model.rb +1 -6
- data/lib/highs/version.rb +1 -1
- data/lib/highs.rb +4 -4
- data/vendor/LICENSE +1 -1
- data/vendor/libhighs.arm64.dylib +0 -0
- data/vendor/libhighs.arm64.so +0 -0
- data/vendor/libhighs.dll +0 -0
- data/vendor/libhighs.dylib +0 -0
- data/vendor/libhighs.so +0 -0
- metadata +4 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d0f83f12e500ca3c875b9e73eaaedd19f8829c4c8c427e34b62cf845d3ef858e
|
|
4
|
+
data.tar.gz: 186a708249b1fe47cca435e2fb856c042f964fde8a8b6d9f0f27b16405f479d6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7314b8197274fe1ad86eb24c86678871ec31a91f7d3b5c36afc01f79112b81167baf62b7ff6e946e225f72bf77dd6b8b89f5486be63e71142573779c14ad1cca
|
|
7
|
+
data.tar.gz: 969937d11d76bdf059ee5343d498ba63e7dbc8f536bae153f544bdd6578515900ea485b582b632e506b0820d32e8ee9dabbfca414f4f657d4240bcc7969cbf4d
|
data/CHANGELOG.md
CHANGED
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
|
[](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
|
-
|
|
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
data/lib/highs.rb
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
require "fiddle/import"
|
|
3
3
|
|
|
4
4
|
# modules
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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
data/vendor/libhighs.arm64.dylib
CHANGED
|
Binary file
|
data/vendor/libhighs.arm64.so
CHANGED
|
Binary file
|
data/vendor/libhighs.dll
ADDED
|
Binary file
|
data/vendor/libhighs.dylib
CHANGED
|
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
|
+
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:
|
|
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.
|
|
53
|
+
rubygems_version: 3.4.10
|
|
53
54
|
signing_key:
|
|
54
55
|
specification_version: 4
|
|
55
56
|
summary: Linear optimization for Ruby
|