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.2.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/cbc.rb', line 12 def ffi_lib @ffi_lib end |
Class Method Details
.lib_version ⇒ Object
35 36 37 |
# File 'lib/cbc.rb', line 35 def self.lib_version FFI.Cbc_getVersion.to_s end |
.load_problem(**options) ⇒ Object
51 52 53 54 55 |
# File 'lib/cbc.rb', line 51 def self.load_problem(**) model = Model.new model.load_problem(**) model end |