Module: Clp

Defined in:
lib/clp.rb,
lib/clp/ffi.rb,
lib/clp/model.rb,
lib/clp/version.rb

Defined Under Namespace

Modules: FFI Classes: Error, Model

Constant Summary collapse

VERSION =
"0.2.0"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.ffi_libObject

Returns the value of attribute ffi_lib.



12
13
14
# File 'lib/clp.rb', line 12

def ffi_lib
  @ffi_lib
end

Class Method Details

.lib_versionObject



34
35
36
# File 'lib/clp.rb', line 34

def self.lib_version
  FFI.Clp_Version.to_s
end

.load_problem(**options) ⇒ Object



44
45
46
47
48
# File 'lib/clp.rb', line 44

def self.load_problem(**options)
  model = Model.new
  model.load_problem(**options)
  model
end

.read_mps(filename) ⇒ Object



38
39
40
41
42
# File 'lib/clp.rb', line 38

def self.read_mps(filename)
  model = Model.new
  model.read_mps(filename)
  model
end