Module: Cbc
- Defined in:
- lib/cbc.rb,
lib/cbc/ffi.rb,
lib/cbc/model.rb,
lib/cbc/version.rb
Defined Under Namespace
Modules: FFI
Classes: Error, Model
Constant Summary
collapse
- VERSION =
"0.1.0"
Class Attribute Summary collapse
Class Method Summary
collapse
Class Attribute Details
.ffi_lib ⇒ Object
Returns the value of attribute ffi_lib.
12
13
14
|
# File 'lib/cbc.rb', line 12
def ffi_lib
@ffi_lib
end
|
Class Method Details
.lib_version ⇒ Object
30
31
32
|
# File 'lib/cbc.rb', line 30
def self.lib_version
FFI.Cbc_getVersion.to_s
end
|
.load_problem(**options) ⇒ Object
46
47
48
49
50
|
# File 'lib/cbc.rb', line 46
def self.load_problem(**options)
model = Model.new
model.load_problem(**options)
model
end
|
.read_lp(filename) ⇒ Object
34
35
36
37
38
|
# File 'lib/cbc.rb', line 34
def self.read_lp(filename)
model = Model.new
model.read_lp(filename)
model
end
|
.read_mps(filename) ⇒ Object
40
41
42
43
44
|
# File 'lib/cbc.rb', line 40
def self.read_mps(filename)
model = Model.new
model.read_mps(filename)
model
end
|