Module: Glpk
- Defined in:
- lib/glpk.rb,
lib/glpk/ffi.rb,
lib/glpk/problem.rb,
lib/glpk/version.rb
Defined Under Namespace
Modules: FFI Classes: Error, Problem
Constant Summary collapse
- VERSION =
"0.1.0"
Class Attribute Summary collapse
-
.ffi_lib ⇒ Object
Returns the value of attribute ffi_lib.
Class Method Summary collapse
- .lib_version ⇒ Object
- .load_problem(**options) ⇒ Object
- .read_lp(filename) ⇒ Object
- .read_mps(filename) ⇒ Object
Class Attribute Details
.ffi_lib ⇒ Object
Returns the value of attribute ffi_lib.
12 13 14 |
# File 'lib/glpk.rb', line 12 def ffi_lib @ffi_lib end |
Class Method Details
.lib_version ⇒ Object
28 29 30 |
# File 'lib/glpk.rb', line 28 def self.lib_version FFI.glp_version.to_s end |
.load_problem(**options) ⇒ Object
44 45 46 47 48 |
# File 'lib/glpk.rb', line 44 def self.load_problem(**) problem = Problem.new problem.load_problem(**) problem end |