Class: Cbc::Problem::CCS

Inherits:
Struct
  • Object
show all
Defined in:
lib/ruby-cbc/problem.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#col_ptrObject

Returns the value of attribute col_ptr

Returns:

  • (Object)

    the current value of col_ptr



20
21
22
# File 'lib/ruby-cbc/problem.rb', line 20

def col_ptr
  @col_ptr
end

#row_idxObject

Returns the value of attribute row_idx

Returns:

  • (Object)

    the current value of row_idx



20
21
22
# File 'lib/ruby-cbc/problem.rb', line 20

def row_idx
  @row_idx
end

#valuesObject

Returns the value of attribute values

Returns:

  • (Object)

    the current value of values



20
21
22
# File 'lib/ruby-cbc/problem.rb', line 20

def values
  @values
end

Instance Method Details

#nb_varsObject



21
22
23
# File 'lib/ruby-cbc/problem.rb', line 21

def nb_vars
  col_ptr.size - 1
end