Class: Cbc::Problem::CCS
- Inherits:
-
Struct
- Object
- Struct
- Cbc::Problem::CCS
- Defined in:
- lib/ruby-cbc/problem.rb
Instance Attribute Summary collapse
-
#col_ptr ⇒ Object
Returns the value of attribute col_ptr.
-
#row_idx ⇒ Object
Returns the value of attribute row_idx.
-
#values ⇒ Object
Returns the value of attribute values.
Instance Method Summary collapse
Instance Attribute Details
#col_ptr ⇒ Object
Returns the value of attribute col_ptr
20 21 22 |
# File 'lib/ruby-cbc/problem.rb', line 20 def col_ptr @col_ptr end |
#row_idx ⇒ Object
Returns the value of attribute row_idx
20 21 22 |
# File 'lib/ruby-cbc/problem.rb', line 20 def row_idx @row_idx end |
#values ⇒ Object
Returns the value of attribute values
20 21 22 |
# File 'lib/ruby-cbc/problem.rb', line 20 def values @values end |
Instance Method Details
#nb_vars ⇒ Object
21 22 23 |
# File 'lib/ruby-cbc/problem.rb', line 21 def nb_vars col_ptr.size - 1 end |